-
-
Notifications
You must be signed in to change notification settings - Fork 34
Add Projects section and new AppShell/Navbar components for new home … #885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,78 @@ | ||||||||||||||||||||||||||||||||||
| import * as React from "react"; | ||||||||||||||||||||||||||||||||||
| import { Grommet, Box } from "grommet"; | ||||||||||||||||||||||||||||||||||
| import { Helmet } from "react-helmet"; | ||||||||||||||||||||||||||||||||||
| import { Theme } from "../atoms/UliCore"; | ||||||||||||||||||||||||||||||||||
| import NavBarNew from "./NavBarNew"; | ||||||||||||||||||||||||||||||||||
| import FooterNew from "./FooterNew"; | ||||||||||||||||||||||||||||||||||
| import { useTranslation } from "react-i18next"; | ||||||||||||||||||||||||||||||||||
| import { useLocation } from "@reach/router"; | ||||||||||||||||||||||||||||||||||
| import Projects from "./Projects"; | ||||||||||||||||||||||||||||||||||
| import UpdatesSection from "./UpdatesSection"; | ||||||||||||||||||||||||||||||||||
| import ResourcesSection from "./ResourcesSection"; | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| export default function AppShellNew({ children }) { | ||||||||||||||||||||||||||||||||||
| const { i18n } = useTranslation(); | ||||||||||||||||||||||||||||||||||
| const location = useLocation(); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| /* ---------- Set language from localStorage ---------- */ | ||||||||||||||||||||||||||||||||||
| React.useEffect(() => { | ||||||||||||||||||||||||||||||||||
| const lang = localStorage.getItem("uli-lang"); | ||||||||||||||||||||||||||||||||||
| if (lang) { | ||||||||||||||||||||||||||||||||||
| i18n.changeLanguage(lang); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| }, []); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| /* ---------- Page title ---------- */ | ||||||||||||||||||||||||||||||||||
| let fullPath = location.pathname; | ||||||||||||||||||||||||||||||||||
| if (fullPath.endsWith("/")) { | ||||||||||||||||||||||||||||||||||
| fullPath = fullPath.slice(0, -1); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| let title = fullPath.split("/").at(-1); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| if (["hi", "en", "ta", "ma"].includes(title)) { | ||||||||||||||||||||||||||||||||||
| title = "Uli"; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| title = title | ||||||||||||||||||||||||||||||||||
| .split("-") | ||||||||||||||||||||||||||||||||||
| .map((w) => w.charAt(0).toUpperCase() + w.slice(1)) | ||||||||||||||||||||||||||||||||||
| .join(" "); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||
| <Grommet theme={Theme}> | ||||||||||||||||||||||||||||||||||
| <main | ||||||||||||||||||||||||||||||||||
| style={{ | ||||||||||||||||||||||||||||||||||
| display: "flex", | ||||||||||||||||||||||||||||||||||
| flexDirection: "column", | ||||||||||||||||||||||||||||||||||
| minHeight: "100vh", | ||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <Helmet> | ||||||||||||||||||||||||||||||||||
| <meta charSet="utf-8" /> | ||||||||||||||||||||||||||||||||||
| <title>{title}</title> | ||||||||||||||||||||||||||||||||||
| <link rel="stylesheet" href="/layout.css" /> | ||||||||||||||||||||||||||||||||||
| <link rel="stylesheet" href="https://use.typekit.net/twt1ywc.css" /> | ||||||||||||||||||||||||||||||||||
| <meta property="og:title" content={title} /> | ||||||||||||||||||||||||||||||||||
| <meta name="icon" href="images/favicon-32x32.png" /> | ||||||||||||||||||||||||||||||||||
| <script | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+51
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use ✅ Suggested fix- <meta name="icon" href="images/favicon-32x32.png" />
+ <link rel="icon" href="images/favicon-32x32.png" />📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
| defer | ||||||||||||||||||||||||||||||||||
| data-domain="uli.tattle.co.in" | ||||||||||||||||||||||||||||||||||
| src="https://plausible.io/js/plausible.js" | ||||||||||||||||||||||||||||||||||
| ></script> | ||||||||||||||||||||||||||||||||||
| </Helmet> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {/* NEW NAVBAR */} | ||||||||||||||||||||||||||||||||||
| <NavBarNew /> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| {/* PAGE CONTENT */} | ||||||||||||||||||||||||||||||||||
| <Box flex="grow">{children}</Box> | ||||||||||||||||||||||||||||||||||
| <Projects/> | ||||||||||||||||||||||||||||||||||
| <UpdatesSection/> | ||||||||||||||||||||||||||||||||||
| <ResourcesSection/> | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+69
to
+72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Page-specific sections are hardcoded inside the app shell.
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
| {/* FOOTER */} | ||||||||||||||||||||||||||||||||||
| <FooterNew/> | ||||||||||||||||||||||||||||||||||
| </main> | ||||||||||||||||||||||||||||||||||
| </Grommet> | ||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,95 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import React from "react"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import { Box, Text } from "grommet"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const FooterNew = () => { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| as="footer" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background="#2b2b2b" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pad={{ vertical: "xlarge", horizontal: "large" }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gap="large" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Stay Updated Section */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box align="center" gap="medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| size="48px" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| weight="bold" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| style={{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| color: "#ffffff" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Stay Updated | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| size="medium" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| textAlign="center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| style={{ maxWidth: "600px", color: "#eaeaea" }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Short Statement about what Uli is <br /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Use Uli to redact slurs and abusive content, archive problematic | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| content, and collectively push back against online gender based | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| violence. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+29
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Placeholder copy will ship to production. Line 29 reads like a design-file placeholder ("Short Statement about what Uli is"), not final user-facing text. Please replace it with the intended copy or gate it behind a TODO so it isn't accidentally released. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Email Input */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| direction="row" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| align="center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width="medium" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pad="small" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background="#f6efe6" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| round="xsmall" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| justify="between" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="large">✉️</Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small" color="#666"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| your email address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pad={{ horizontal: "medium", vertical: "xsmall" }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| background="#000" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| round="xsmall" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small" color="white"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| subscribe | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+36
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Email subscription section is non-functional and inaccessible. This renders a visual mockup of an email input and subscribe button, but there is no actual If this is intentionally a placeholder for a future feature, consider either:
As-is, the subscribe Minimal sketch using real form elements- <Box
- direction="row"
- align="center"
- width="medium"
- pad="small"
- background="#f6efe6"
- round="xsmall"
- justify="between"
- >
- <Text size="large">✉️</Text>
-
- <Text size="small" color="#666">
- your email address
- </Text>
-
- <Box
- pad={{ horizontal: "medium", vertical: "xsmall" }}
- background="#000"
- round="xsmall"
- >
- <Text size="small" color="white">
- subscribe
- </Text>
- </Box>
- </Box>
+ {/* TODO: wire up subscription handler */}
+ <Box
+ as="form"
+ direction="row"
+ align="center"
+ width="medium"
+ pad="small"
+ background="#f6efe6"
+ round="xsmall"
+ justify="between"
+ onSubmit={(e) => { e.preventDefault(); /* handle subscribe */ }}
+ >
+ <Text size="large" aria-hidden="true">✉️</Text>
+ <input
+ type="email"
+ placeholder="your email address"
+ aria-label="Email address"
+ style={{ border: "none", background: "transparent", flex: 1, outline: "none" }}
+ />
+ <button
+ type="submit"
+ style={{
+ padding: "4px 16px",
+ background: "#000",
+ color: "#fff",
+ border: "none",
+ borderRadius: "4px",
+ cursor: "pointer",
+ }}
+ >
+ subscribe
+ </button>
+ </Box>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* Bottom Section */} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| direction="row" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| justify="between" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| align="center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| margin={{ top: "large" }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text weight="bold" color="white"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Uli by Tattle | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small" color="#cccccc"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Email & Other contacts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box direction="row" gap="medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small" color="white"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Link 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small" color="white"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Link 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small" color="white"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Link 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+64
to
+90
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bottom section uses placeholder links and won't stack on small viewports.
Responsive direction example <Box
- direction="row"
+ direction="row-responsive"
justify="between"
align="center"
margin={{ top: "large" }}
>🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export default FooterNew; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,80 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import React from "react"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import { Box, Text, ResponsiveContext } from "grommet"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import { NavLink } from "../atoms/UliCore"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import { navigate } from "gatsby"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import { useContext } from "react"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import navbarBg from "../../images/navbar-bg.svg"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| export default function NavBarNew() { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| const size = useContext(ResponsiveContext); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* ---------- TOP SVG STRIP ---------- */} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||
| height="20px" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| style={{ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| backgroundImage: `url(${navbarBg})`, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| backgroundRepeat: "repeat-x", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| backgroundPosition: "top left", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| backgroundSize: "auto 20px", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* ---------- NAVBAR ---------- */} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||
| align="center" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background="#fff6e9" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| pad={{ vertical: "medium", horizontal: "small" }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||
| width="xlarge" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| direction="row" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| align="center" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| justify="between" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| style={{ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| position: "relative", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* ---------- LEFT ---------- */} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box direction="row" gap="medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <NavLink to="/"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small">Tattle</Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </NavLink> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* ---------- CENTER LOGO ---------- */} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box | ||||||||||||||||||||||||||||||||||||||||||||||||||
| style={{ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| position: size === "small" ? "static" : "absolute", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| left: "50%", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| transform: size === "small" ? "none" : "translateX(-50%)", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cursor: "pointer", | ||||||||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={() => navigate("/")} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+48
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: find . -name "NavBarNew.jsx" -type fRepository: tattle-made/Uli Length of output: 111 🏁 Script executed: cat -n uli-website/src/components/molecules/NavBarNew.jsx | head -80Repository: tattle-made/Uli Length of output: 2810 Make the center logo keyboard-accessible. ✅ Suggested fix <Box
style={{
position: size === "small" ? "static" : "absolute",
left: "50%",
transform: size === "small" ? "none" : "translateX(-50%)",
cursor: "pointer",
}}
+ role="link"
+ tabIndex={0}
+ aria-label="Uli home"
onClick={() => navigate("/")}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" || e.key === " ") navigate("/");
+ }}
>This violates WCAG 2.1 Level A (2.1.1 Keyboard accessibility) since interactive elements must be operable via keyboard. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
| <img | ||||||||||||||||||||||||||||||||||||||||||||||||||
| src="/Uli_Logo.png" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| alt="Uli Logo" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| style={{ height: "40px" }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| {/* ---------- RIGHT ---------- */} | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Box direction="row" gap="medium"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <NavLink to="/contact"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small">Contact</Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </NavLink> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <NavLink to="/about"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small">About us</Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </NavLink> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <NavLink to="/data"> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <Text size="small">Data Y</Text> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </NavLink> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </Box> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| </> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| import React from "react"; | ||
| import projectImage from "../../images/projectImage.svg"; | ||
|
|
||
| const pixelCutShape = | ||
| "polygon(" + | ||
| "0% 20%, 3% 20%, 3% 10%, 6% 10%, 6% 0%, " + | ||
| "94% 0%, 94% 10%, 97% 10%, 97% 20%, 100% 20%, " + | ||
| "100% 80%, 97% 80%, 97% 90%, 94% 90%, 94% 100%, " + | ||
| "6% 100%, 6% 90%, 3% 90%, 3% 80%, 0% 80%" + | ||
| ")"; | ||
|
|
||
| const ProjectCard = ({ title, description, reverse }) => { | ||
| return ( | ||
| <div | ||
| style={{ | ||
| background: "#fde9d9", | ||
| padding: "10px", | ||
| clipPath: pixelCutShape, | ||
| }} | ||
| > | ||
| <div | ||
| style={{ | ||
| backgroundColor: "#fde9d9", | ||
| padding: "44px 56px", | ||
| clipPath: pixelCutShape, | ||
| }} | ||
| > | ||
| <div | ||
| style={{ | ||
| display: "flex", | ||
| flexDirection: reverse ? "row-reverse" : "row", | ||
| alignItems: "center", | ||
| justifyContent: "space-between", | ||
| gap: "48px", | ||
| }} | ||
| > | ||
| {/* LEFT ICON */} | ||
| <img | ||
| src={projectImage} | ||
| alt="" | ||
| style={{ width: "180px" }} | ||
| /> | ||
|
|
||
| {/* TEXT */} | ||
| <div style={{ maxWidth: "55%" }}> | ||
| <h3 style={{ marginBottom: "16px" }}>{title}</h3> | ||
|
|
||
| <p style={{ marginBottom: "24px", lineHeight: "1.6" }}> | ||
| {description} | ||
| </p> | ||
|
|
||
| <div style={{ display: "flex", gap: "18px" }}> | ||
| <button style={btnStyle}>Install</button> | ||
| <button style={btnStyle}>Install</button> | ||
| </div> | ||
|
Comment on lines
+52
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wire CTA buttons to real actions instead of hardcoded labels. 🛠️ Example approach-const ProjectCard = ({ title, description, reverse }) => {
+const ProjectCard = ({ title, description, reverse, primaryCta, secondaryCta }) => {
...
- <div style={{ display: "flex", gap: "18px" }}>
- <button style={btnStyle}>Install</button>
- <button style={btnStyle}>Install</button>
- </div>
+ <div style={{ display: "flex", gap: "18px" }}>
+ {primaryCta && (
+ <a href={primaryCta.href} style={btnStyle}>
+ {primaryCta.label}
+ </a>
+ )}
+ {secondaryCta && (
+ <a href={secondaryCta.href} style={btnStyle}>
+ {secondaryCta.label}
+ </a>
+ )}
+ </div>🤖 Prompt for AI Agents |
||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| const btnStyle = { | ||
| background: "transparent", | ||
| border: "2px dashed #000", | ||
| padding: "10px 28px", | ||
| cursor: "pointer", | ||
| }; | ||
|
|
||
| export default ProjectCard; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import React from "react"; | ||
| import { projects } from "../../config/projects"; | ||
| import ProjectCard from "./ProjectCard"; | ||
| import topBorder from "../../images/ProjectsTitle.svg"; | ||
| import sideBorder from "../../images/left-border.svg"; | ||
|
|
||
| const Projects = () => { | ||
| return ( | ||
| <section | ||
| style={{ | ||
| backgroundColor: "#fff6eb", | ||
| position: "relative", | ||
| }} | ||
| > | ||
| {/* 🔝 TOP BORDER */} | ||
| <div | ||
| style={{ | ||
| height: "50px", | ||
| backgroundImage: `url(${topBorder})`, | ||
| backgroundSize: "auto 100%", | ||
| }} | ||
| /> | ||
|
|
||
| {/* ⬅️➡️ SIDE BORDERS WRAPPER */} | ||
| <div | ||
| style={{ | ||
| backgroundImage: `url(${sideBorder}), url(${sideBorder})`, | ||
| backgroundRepeat: "repeat-y, repeat-y", | ||
| backgroundPosition: "left top, right top", | ||
| backgroundSize: "auto 100%", | ||
| padding: "80px 40px", | ||
| }} | ||
| > | ||
| <div | ||
| style={{ | ||
| maxWidth: "1200px", | ||
| margin: "0 auto", | ||
| display: "flex", | ||
| flexDirection: "column", | ||
| gap: "40px", | ||
| }} | ||
| > | ||
| {projects.map((project) => ( | ||
| <ProjectCard key={project.id} {...project} /> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| </section> | ||
| ); | ||
| }; | ||
|
|
||
| export default Projects; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure a default title for the root path.
When
pathname === "/",titlebecomes an empty string, so the page title/OG title is blank. Add a fallback (e.g., “Uli”).✅ Suggested fix
📝 Committable suggestion
🤖 Prompt for AI Agents