From 59224abf68a95c877f622617597ef2db75457f9e Mon Sep 17 00:00:00 2001 From: Kimberlee Johnson Date: Wed, 15 Sep 2021 19:02:06 -0700 Subject: [PATCH] Updated broader README and moved Header to shared component --- .../public/components/Header/Header.js | 95 +++++++++++++++++++ .../public/components/Header/index.js | 1 + prebuilt-ui/README.md | 6 ++ 3 files changed, 102 insertions(+) create mode 100644 custom/text-chat/public/components/Header/Header.js create mode 100644 custom/text-chat/public/components/Header/index.js diff --git a/custom/text-chat/public/components/Header/Header.js b/custom/text-chat/public/components/Header/Header.js new file mode 100644 index 0000000..595d93d --- /dev/null +++ b/custom/text-chat/public/components/Header/Header.js @@ -0,0 +1,95 @@ +import React from 'react'; +import PropTypes from 'prop-types'; + +export const Header = ({ demoTitle, repoLink }) => ( +
+
+ Daily +
{demoTitle}
+
+
+
+ + API docs + +
+ + + Ocotocat + +
+ +
+); + +Header.propTypes = { + demoTitle: PropTypes.string, + repoLink: PropTypes.string, +}; + +export default Header; diff --git a/custom/text-chat/public/components/Header/index.js b/custom/text-chat/public/components/Header/index.js new file mode 100644 index 0000000..a70ad39 --- /dev/null +++ b/custom/text-chat/public/components/Header/index.js @@ -0,0 +1 @@ +export { Header as default } from './Header'; diff --git a/prebuilt-ui/README.md b/prebuilt-ui/README.md index 951f93f..24acd13 100644 --- a/prebuilt-ui/README.md +++ b/prebuilt-ui/README.md @@ -8,6 +8,12 @@ These examples demonstrate how to customise and extend the prebuilt UI. ## Examples +### [✅ Basic embed](./basic-embed) +Embeds [Daily Prebuilt](https://docs.daily.co/prebuilt), a ready-to-use video chat interface, into a Next.js app. + +### [💬 Chat overlay](./chat-overlay) +Uses the Daily [sendAppMessage()](https://docs.daily.co/reference/daily-js/instance-methods/send-app-message#main) method to add a custom chat around a Daily Prebuilt call. + ### [🤙 iOS WebView](./ios-webview) Shows how to wrap the prebuilt UI in a native iOS application (using WKWebView)