From 8b1ac2c827946a82f9f5a4a9e70738cdb14cef91 Mon Sep 17 00:00:00 2001 From: SitecoreAdmin Date: Thu, 13 Jul 2023 06:49:50 +0000 Subject: [PATCH] chore() : Banner Component Enhancement - Added varaint - Added styles for edit mode - Renamed available rendering folder - Added Thumbnail Image --- .../{EspireDemo.yml => Espire Components.yml} | 2 +- .../Banner.yml | 9 ++--- .../Home/Test Pages/HomePage Banner.yml | 14 +++++-- .../HomePage Banner/Data/Home Page Banner.yml | 7 ++-- .../Test Pages/HomePage Banner/Data/test.yml | 38 +++++++++++++++++++ .../Headless Variants/Banner/Default.yml | 36 ++++++++++++++++++ .../{banner-with-cta.scss => default.scss} | 5 ++- .../assets/sass/variants/banner/index.scss | 2 +- 8 files changed, 98 insertions(+), 15 deletions(-) rename src/items/EspireDemo.Layout/layout/Renderings/Project/{EspireDemo.yml => Espire Components.yml} (93%) rename src/items/EspireDemo.Layout/layout/Renderings/Project/{EspireDemo => Espire Components}/Banner.yml (86%) create mode 100644 src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/test.yml create mode 100644 src/items/EspireDemo.Site/EspireDemo/Espire/Presentation/Headless Variants/Banner/Default.yml rename src/sxastarter/src/assets/sass/variants/banner/{banner-with-cta.scss => default.scss} (97%) diff --git a/src/items/EspireDemo.Layout/layout/Renderings/Project/EspireDemo.yml b/src/items/EspireDemo.Layout/layout/Renderings/Project/Espire Components.yml similarity index 93% rename from src/items/EspireDemo.Layout/layout/Renderings/Project/EspireDemo.yml rename to src/items/EspireDemo.Layout/layout/Renderings/Project/Espire Components.yml index 99dc5df69..d83147eac 100644 --- a/src/items/EspireDemo.Layout/layout/Renderings/Project/EspireDemo.yml +++ b/src/items/EspireDemo.Layout/layout/Renderings/Project/Espire Components.yml @@ -2,7 +2,7 @@ ID: "5dbf5d75-2915-427f-aa88-72e557858fa0" Parent: "1995806f-0a84-42b5-93b0-88f0e2ff872c" Template: "840d4a46-5503-49ec-bf9d-bd090946c63d" -Path: /sitecore/layout/Renderings/Project/EspireDemo +Path: /sitecore/layout/Renderings/Project/Espire Components Languages: - Language: en Versions: diff --git a/src/items/EspireDemo.Layout/layout/Renderings/Project/EspireDemo/Banner.yml b/src/items/EspireDemo.Layout/layout/Renderings/Project/Espire Components/Banner.yml similarity index 86% rename from src/items/EspireDemo.Layout/layout/Renderings/Project/EspireDemo/Banner.yml rename to src/items/EspireDemo.Layout/layout/Renderings/Project/Espire Components/Banner.yml index cfaea2328..908755c33 100644 --- a/src/items/EspireDemo.Layout/layout/Renderings/Project/EspireDemo/Banner.yml +++ b/src/items/EspireDemo.Layout/layout/Renderings/Project/Espire Components/Banner.yml @@ -2,7 +2,7 @@ ID: "9238df1f-68a3-4b83-8e8f-828ca2d5b9f2" Parent: "5dbf5d75-2915-427f-aa88-72e557858fa0" Template: "04646a89-996f-4ee7-878a-ffdbf1f0ef0d" -Path: /sitecore/layout/Renderings/Project/EspireDemo/Banner +Path: /sitecore/layout/Renderings/Project/Espire Components/Banner SharedFields: - ID: "037fe404-dd19-4bf7-8e30-4dadf68b27b0" Hint: componentName @@ -18,8 +18,7 @@ SharedFields: Value: /sitecore/content/EspireDemo/Espire/Data/Banner - ID: "c7c26117-dbb1-42b2-ab5e-f7223845cca3" Hint: __Thumbnail - Value: | - + Value: Languages: - Language: en Versions: @@ -38,11 +37,11 @@ Languages: sitecore\raman.gupta@espire.com - ID: "8cdc337e-a112-42fb-bbb4-4143751e123f" Hint: __Revision - Value: "aeebc41b-d484-4374-8fd4-9cf2ed8f9e5d" + Value: "07a05dec-c22b-4c74-87de-c4680166a54f" - ID: "badd9cf9-53e0-4d0c-bcc0-2d784c282f6a" Hint: __Updated by Value: | sitecore\raman.gupta@espire.com - ID: "d9cf14b1-fa16-4ba6-9288-e8a174d4d522" Hint: __Updated - Value: 20230712T131847Z + Value: 20230713T060126Z diff --git a/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner.yml b/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner.yml index a6e342c91..7b5e668f4 100644 --- a/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner.yml +++ b/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner.yml @@ -26,11 +26,19 @@ Languages: p:p="1"> + @@ -50,11 +58,11 @@ Languages: sitecore\raman.gupta@espire.com - ID: "8cdc337e-a112-42fb-bbb4-4143751e123f" Hint: __Revision - Value: "3feca3b7-0a94-4d4d-af8c-e507055758a8" + Value: "ab69d932-cd23-49b2-b088-b3164cb5471a" - ID: "badd9cf9-53e0-4d0c-bcc0-2d784c282f6a" Hint: __Updated by Value: | sitecore\raman.gupta@espire.com - ID: "d9cf14b1-fa16-4ba6-9288-e8a174d4d522" Hint: __Updated - Value: 20230712T094455Z + Value: 20230713T064047Z diff --git a/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/Home Page Banner.yml b/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/Home Page Banner.yml index 58eec5b58..b340446a8 100644 --- a/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/Home Page Banner.yml +++ b/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/Home Page Banner.yml @@ -13,8 +13,7 @@ Languages: Value: - ID: "1c617420-bd69-4bf8-8777-0dc380756ea1" Hint: Image - Value: | - + Value: - ID: "25bed78c-4957-4165-998a-ca1b52f67497" Hint: __Created Value: 20230712T075121Z @@ -32,14 +31,14 @@ Languages: sitecore\raman.gupta@espire.com - ID: "8cdc337e-a112-42fb-bbb4-4143751e123f" Hint: __Revision - Value: "57e25d54-2e39-4e5e-949c-c58bfdfc1f74" + Value: "5d41595f-da3f-48bf-9ad7-c182c85eef62" - ID: "badd9cf9-53e0-4d0c-bcc0-2d784c282f6a" Hint: __Updated by Value: | sitecore\raman.gupta@espire.com - ID: "d9cf14b1-fa16-4ba6-9288-e8a174d4d522" Hint: __Updated - Value: 20230712T161849Z + Value: 20230713T063039Z - ID: "e276cdf5-5ab3-4cda-9872-1eb17f6eabfc" Hint: Description Value: Serving Maricopa County and the Phoenix Metropolitan community through justice and integrity. diff --git a/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/test.yml b/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/test.yml new file mode 100644 index 000000000..37196c0b5 --- /dev/null +++ b/src/items/EspireDemo.Site/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/test.yml @@ -0,0 +1,38 @@ +--- +ID: "7313d0d9-b6d8-41d3-8b90-1122d3d350c3" +Parent: "7a3ae2e0-6b73-48e3-98be-6a718a42a054" +Template: "7a59538f-43bb-41a8-88f8-3a9adc3d1b80" +Path: /sitecore/content/EspireDemo/Espire/Home/Test Pages/HomePage Banner/Data/test +Languages: +- Language: en + Versions: + - Version: 1 + Fields: + - ID: "001dd393-96c5-490b-924a-b0f25cd9efd8" + Hint: __Lock + Value: + - ID: "1c617420-bd69-4bf8-8777-0dc380756ea1" + Hint: Image + Value: | + + - ID: "25bed78c-4957-4165-998a-ca1b52f67497" + Hint: __Created + Value: 20230713T055926Z + - ID: "52807595-0f8f-4b20-8d2a-cb71d28c6103" + Hint: __Owner + Value: | + sitecore\raman.gupta@espire.com + - ID: "5dd74568-4d4b-44c1-b513-0af5f4cda34f" + Hint: __Created by + Value: | + sitecore\raman.gupta@espire.com + - ID: "8cdc337e-a112-42fb-bbb4-4143751e123f" + Hint: __Revision + Value: "1ddc0653-a4a5-4308-b913-40c0fb84bcae" + - ID: "badd9cf9-53e0-4d0c-bcc0-2d784c282f6a" + Hint: __Updated by + Value: | + sitecore\raman.gupta@espire.com + - ID: "d9cf14b1-fa16-4ba6-9288-e8a174d4d522" + Hint: __Updated + Value: 20230713T063947Z diff --git a/src/items/EspireDemo.Site/EspireDemo/Espire/Presentation/Headless Variants/Banner/Default.yml b/src/items/EspireDemo.Site/EspireDemo/Espire/Presentation/Headless Variants/Banner/Default.yml new file mode 100644 index 000000000..8349a745f --- /dev/null +++ b/src/items/EspireDemo.Site/EspireDemo/Espire/Presentation/Headless Variants/Banner/Default.yml @@ -0,0 +1,36 @@ +--- +ID: "e7124b53-0fc6-4d05-935b-947d97a9852a" +Parent: "347585d5-5117-44d8-aed7-1784b679ce11" +Template: "4d50cdae-c2d9-4de8-b080-8f992bfb1b55" +Path: /sitecore/content/EspireDemo/Espire/Presentation/Headless Variants/Banner/Default +SharedFields: +- ID: "c7c26117-dbb1-42b2-ab5e-f7223845cca3" + Hint: __Thumbnail + Value: | + +Languages: +- Language: en + Versions: + - Version: 1 + Fields: + - ID: "25bed78c-4957-4165-998a-ca1b52f67497" + Hint: __Created + Value: 20230713T061354Z + - ID: "52807595-0f8f-4b20-8d2a-cb71d28c6103" + Hint: __Owner + Value: | + sitecore\raman.gupta@espire.com + - ID: "5dd74568-4d4b-44c1-b513-0af5f4cda34f" + Hint: __Created by + Value: | + sitecore\raman.gupta@espire.com + - ID: "8cdc337e-a112-42fb-bbb4-4143751e123f" + Hint: __Revision + Value: "743b7eb4-5fa7-4831-9052-54b070a0cda3" + - ID: "badd9cf9-53e0-4d0c-bcc0-2d784c282f6a" + Hint: __Updated by + Value: | + sitecore\raman.gupta@espire.com + - ID: "d9cf14b1-fa16-4ba6-9288-e8a174d4d522" + Hint: __Updated + Value: 20230713T061518Z diff --git a/src/sxastarter/src/assets/sass/variants/banner/banner-with-cta.scss b/src/sxastarter/src/assets/sass/variants/banner/default.scss similarity index 97% rename from src/sxastarter/src/assets/sass/variants/banner/banner-with-cta.scss rename to src/sxastarter/src/assets/sass/variants/banner/default.scss index 06c4726bf..678c75962 100644 --- a/src/sxastarter/src/assets/sass/variants/banner/banner-with-cta.scss +++ b/src/sxastarter/src/assets/sass/variants/banner/default.scss @@ -1,4 +1,3 @@ -// @import "../../abstracts/vars/espire-color.scss"; @import "../../abstracts/espire-mixin"; .banner { &.banner-with-cta { @@ -83,4 +82,8 @@ } } + + &.scEnabledChrome{ + width: 100%; + } } diff --git a/src/sxastarter/src/assets/sass/variants/banner/index.scss b/src/sxastarter/src/assets/sass/variants/banner/index.scss index fe18fff14..548347d25 100644 --- a/src/sxastarter/src/assets/sass/variants/banner/index.scss +++ b/src/sxastarter/src/assets/sass/variants/banner/index.scss @@ -1 +1 @@ -@import "./banner-with-cta.scss" \ No newline at end of file +@import "./default.scss" \ No newline at end of file