diff --git a/src/assets/images/content/DSCF0211-Edit.jpg b/public/assets/content/DSCF0211-Edit.jpg similarity index 100% rename from src/assets/images/content/DSCF0211-Edit.jpg rename to public/assets/content/DSCF0211-Edit.jpg diff --git a/src/assets/images/clipboard-copy.svg b/public/assets/content/clipboard-copy.svg similarity index 100% rename from src/assets/images/clipboard-copy.svg rename to public/assets/content/clipboard-copy.svg diff --git a/src/assets/images/content/ARM1692_Morello_Wordmark_logoST4_BLK_V1 (1).png b/src/assets/images/content/ARM1692_Morello_Wordmark_logoST4_BLK_V1 _1.png similarity index 100% rename from src/assets/images/content/ARM1692_Morello_Wordmark_logoST4_BLK_V1 (1).png rename to src/assets/images/content/ARM1692_Morello_Wordmark_logoST4_BLK_V1 _1.png diff --git a/src/assets/images/social-media-image.png b/src/assets/images/social-media-image.png new file mode 100644 index 0000000..35fc2cd Binary files /dev/null and b/src/assets/images/social-media-image.png differ diff --git a/src/components/body/DevSection.astro b/src/components/body/DevSection.astro index 03cfb49..fd96df3 100644 --- a/src/components/body/DevSection.astro +++ b/src/components/body/DevSection.astro @@ -11,7 +11,7 @@ const { dev_section } = Astro.props!;
icon -

+

{card.title}

diff --git a/src/components/footer/Footer.astro b/src/components/footer/Footer.astro index da3d85b..7ecde77 100644 --- a/src/components/footer/Footer.astro +++ b/src/components/footer/Footer.astro @@ -14,19 +14,14 @@ import Icon from "astro-icon"; Report an Issue - - Edit on Github + View on Github
-

Copyright @ 2022 Linaro Limited

+

Copyright @ 2023 Linaro Limited

@@ -34,7 +36,7 @@ const { basic: { title: title, type: type, - image: "https://www.openampproject.org/images/social-media-image.png", + image: "../../assets/images/social-media-image.png", }, }} twitter={{ @@ -51,8 +53,7 @@ const { meta: [ { name: "twitter:image", - content: - "https://www.openampproject.org/images/openAMP_share_image.png", + content: { social_image }, }, { name: "twitter:title", content: title }, { name: "twitter:description", content: description }, diff --git a/src/components/hero/HeroCards.astro b/src/components/hero/HeroCards.astro index 4524aac..30bd745 100644 --- a/src/components/hero/HeroCards.astro +++ b/src/components/hero/HeroCards.astro @@ -8,10 +8,10 @@ const markdown_text = (text: any) => { }; --- -
+
{ card_section.map((card: any) => ( -
+
-
+
{ - background_image && title ? ( -

+ background_image && title && card_section ? ( +

{title}

) : background_image && dark_title ? ( -

+

{dark_title}

) : ( @@ -54,7 +53,7 @@ const { ) } - {description &&

{description}

} + {description &&

{description}

} { buttons && ( @@ -92,10 +91,38 @@ const { background-position: center; background-size: cover; background-repeat: no-repeat; - height: max-content; + height: 300px; + position: relative; + z-index: 1; } .hero-background::before { + content: ""; + position: absolute; + z-index: -1; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: rgba(0, 0, 0, 84%); + color: dark; + + height: 350px; + } + .hero-background-home { + background-image: linear-gradient( + to bottom, + rgba(75, 85, 99, 0.62), + rgba(255, 255, 255, 1) + ), + var(--backgroundUrl); + background-position: center; + background-size: cover; + background-repeat: no-repeat; + height: max-content; + } + + .hero-background-home::before { content: ""; position: absolute; top: 0; diff --git a/src/components/nav/NavBar.astro b/src/components/nav/NavBar.astro index 22df79d..e3dc7c2 100644 --- a/src/components/nav/NavBar.astro +++ b/src/components/nav/NavBar.astro @@ -8,7 +8,7 @@ import { getEntry } from "astro:content"; const navData = await getEntry("data", "nav"); --- -
+
diff --git a/src/components/resources/CheriseedPortEffortlesslyToCheri/DropdownMenu.astro b/src/components/resources/CheriseedPortEffortlesslyToCheri/DropdownMenu.astro new file mode 100644 index 0000000..20f357e --- /dev/null +++ b/src/components/resources/CheriseedPortEffortlesslyToCheri/DropdownMenu.astro @@ -0,0 +1,56 @@ +--- +const { titles } = Astro.props; +--- + + + diff --git a/src/components/resources/CheriseedPortEffortlesslyToCheri/Navigation.astro b/src/components/resources/CheriseedPortEffortlesslyToCheri/Navigation.astro index 50eb2e8..fa15cd6 100644 --- a/src/components/resources/CheriseedPortEffortlesslyToCheri/Navigation.astro +++ b/src/components/resources/CheriseedPortEffortlesslyToCheri/Navigation.astro @@ -1,4 +1,6 @@ --- +import DropdownMenu from './DropdownMenu.astro'; + const titles: { title: string; url: string; children?: any }[] = [ { title: "CHERI - Overview", url: "cheri---overview" }, { title: "CHERIseed - Introduction", url: "cheriseed--introduction" }, @@ -23,9 +25,10 @@ const titles: { title: string; url: string; children?: any }[] = [ ]; --- + +
+ +