From efd483c1384dd8734e7bedeed2a941ad92fb535a Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Mon, 18 Aug 2025 07:49:10 -0600 Subject: [PATCH] Schema added to components --- app/components/Footer.js | 233 +++++++++++++++++--------------- app/components/Header.js | 168 +++++++++++++---------- app/components/HeaderTab.js | 2 +- app/components/HomeHeader.js | 180 +++++++++++++----------- app/components/NumberedCards.js | 96 +++++++------ 5 files changed, 379 insertions(+), 300 deletions(-) diff --git a/app/components/Footer.js b/app/components/Footer.js index d9bfcbf..cc7b60d 100644 --- a/app/components/Footer.js +++ b/app/components/Footer.js @@ -2,10 +2,28 @@ import Logo from "./Logo"; import Separator from "./Separator"; export default function Footer() { + // Schema markup for organization information + const schemaData = { + "@context": "https://schema.org", + "@type": "Organization", + name: "Media Economies Design Lab", + email: "medlab@colorado.edu", + url: "https://communityrule.com", + sameAs: [ + "https://bsky.app/profile/medlabboulder", + "https://gitlab.com/medlabboulder", + ], + }; + return ( - + ); } diff --git a/app/components/Header.js b/app/components/Header.js index ef622a0..d8ef688 100644 --- a/app/components/Header.js +++ b/app/components/Header.js @@ -6,6 +6,18 @@ import AvatarContainer from "./AvatarContainer"; import Avatar from "./Avatar"; export default function Header({ onToggle }) { + // Schema markup for site navigation + const schemaData = { + "@context": "https://schema.org", + "@type": "WebSite", + name: "CommunityRule", + url: "https://communityrule.com", + potentialAction: { + "@type": "SearchAction", + target: "https://communityrule.com/search?q={search_term_string}", + "query-input": "required name=search_term_string", + }, + }; const navigationItems = [ { href: "#", text: "Use cases", extraPadding: true }, { href: "#", text: "Learn" }, @@ -88,96 +100,104 @@ export default function Header({ onToggle }) { }; return ( -
-