From dbc0468e63159e491b7a2230506b0e494466c6d2 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Thu, 4 Aug 2022 15:56:31 -0400 Subject: [PATCH] ISTWCMS-5724: adding social intents --- .../04-components/social-intents/social-intents.md | 9 +++++++++ .../04-components/social-intents/social-intents.twig | 5 +++++ .../04-components/social-intents/social-intents.yml | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 src/patterns/04-components/social-intents/social-intents.md create mode 100644 src/patterns/04-components/social-intents/social-intents.twig create mode 100644 src/patterns/04-components/social-intents/social-intents.yml diff --git a/src/patterns/04-components/social-intents/social-intents.md b/src/patterns/04-components/social-intents/social-intents.md new file mode 100644 index 00000000..baf9f49a --- /dev/null +++ b/src/patterns/04-components/social-intents/social-intents.md @@ -0,0 +1,9 @@ +--- +el: .uw-social-intents +title: Social Intents +--- + +__Variables:__ +* social-intents: [array] Variables for social-intents. + * username: [string] Social Intents username. + * uniqueid: [string] Unique id of the social-intents component. diff --git a/src/patterns/04-components/social-intents/social-intents.twig b/src/patterns/04-components/social-intents/social-intents.twig new file mode 100644 index 00000000..71a5017c --- /dev/null +++ b/src/patterns/04-components/social-intents/social-intents.twig @@ -0,0 +1,5 @@ +<div id="uw-social-intents-{{ social_intents.uniqueid }}" class="uw-social-intents"> + <div class="uw-social-intents__wrapper {{ width }}"> + <iframe src="https://chat.socialintents.com/c/{{ social_intents.username }}" width="100%" height="540"></iframe> + </div> +</div> diff --git a/src/patterns/04-components/social-intents/social-intents.yml b/src/patterns/04-components/social-intents/social-intents.yml new file mode 100644 index 00000000..fca6ff83 --- /dev/null +++ b/src/patterns/04-components/social-intents/social-intents.yml @@ -0,0 +1,3 @@ +social-intents: + username: 'livechatsi' + uniqueid: '1111111' -- GitLab