-
-
Notifications
You must be signed in to change notification settings - Fork 34
Design v2 #889
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
Merged
Merged
Design v2 #889
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3a3fe88
feat: add new homepage content (#886)
maanasb01 2d694cc
Fixed the issue with the banner background not being visible.
yatharth-cis afc32f5
feat: add responsiveness to the new design, change font (#887)
maanasb01 f09c314
chore: add padding for md screens on project cards
maanasb01 227d0e4
Hover states and minor font fixes for homepage
yatharth-cis fe81e01
AI Used, Fixed responsive on homepage, Implemented New Content Shell …
yatharth-cis be85811
feat: update projects section content, rename to tracks, and adjust l…
yatharth-cis 3cb229b
feat: replace EmailSubscription with SupportUs component.
ec98fa3
feat: update typography, refactor ProjectCard layout, and add icons t…
c46a378
Added images for Tracks
122db9f
feat: styling changes
dennyabrain bd56f8a
fix: support and footer section
dennyabrain 6b6bacc
fix: misc styling issues
dennyabrain 2f94927
fix: blog index styling
dennyabrain 29027b5
fix: color for support us section
dennyabrain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| .vscode | ||
| dom-html.txt | ||
| .scannerwork | ||
| **/.DS_Store | ||
|
|
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import React from "react"; | ||
|
|
||
| export default function DashedButton({content, onClick, className=""}) { | ||
| return ( | ||
| <button | ||
| className={`font-labrada bg-transparent cursor-pointer border-[0.5px] border-solid [border-image-source:url('/dashed-btn-bg.png')] [border-image-slice:0%_fill] [border-image-repeat:round] hover:bg-[#FFC8A6] active:bg-[#F28948] ${className}`} | ||
| onClick={onClick} | ||
| > | ||
| {content} | ||
| </button> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import { Link } from 'gatsby'; | ||
| import { Text } from 'grommet' | ||
| import styled from "styled-components"; | ||
| import React from 'react' | ||
|
|
||
| // // Navlink component for the new design | ||
| // export default function NavLink({children, className=""}) { | ||
| // return ( | ||
| // <Text className={`cursor-pointer hover:text-[#F28948] hover:underline #{className}`}>{children}</Text> | ||
|
|
||
| // ) | ||
| // } | ||
|
|
||
| export const NavLinkNew = styled(Link)` | ||
| text-decoration: none; | ||
| color: inherit; | ||
| &:hover { | ||
| color: #F28948; | ||
| text-decoration: underline; | ||
| } | ||
| `; |
23 changes: 0 additions & 23 deletions
23
uli-website/src/components/molecules/AnnouncementBanner.jsx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| import { Box, Text } from "grommet"; | ||
| import React, { useState, useEffect, useContext } from "react"; | ||
| import DashedButton from "../atoms/DashedButton"; | ||
| import { navigate } from "gatsby"; | ||
|
|
||
| function AnnouncementBanner({ children }) { | ||
| return ( | ||
| <Box | ||
| align="center" | ||
| className=" | ||
| w-fit | ||
| mx-auto | ||
| text-center | ||
| border-solid | ||
| border-[1.2em] | ||
| px-2 | ||
| [border-image-source:url('/announcement-bg.svg')] | ||
| [border-image-slice:33%_4%_fill] | ||
| [border-image-repeat:round]> | ||
| animate-[fadeUp_1.2s_ease-out_forwards] | ||
| " | ||
| > | ||
| {children} | ||
| </Box> | ||
| ); | ||
| } | ||
|
|
||
| export default function Announcements() { | ||
| return ( | ||
| <AnnouncementBanner> | ||
| <Box className="flex flex-col gap-2 items-center"> | ||
| <Text className="text-[0.8em] font-bold font-labrada">Uli joins UNICEF FemTech Cohort</Text> | ||
| <Text className="text-[0.8em] font-labrada leading-[140%]"> | ||
| Our solution that monitors users’ social media feeds, identifies abuse and connects users to support networks has got selected to be developed further by the UNICEF FemTech Ventures. | ||
| </Text> | ||
| <DashedButton | ||
| className="mt-1 w-fit px-10 py-2" | ||
| content={<Text className="text-[13px] font-labrada tracking-[-0.05em]">Read the announcement</Text>} | ||
| onClick={() => navigate("https://www.unicef.org/innovation/femtech-cohort-1")} | ||
| /> | ||
| </Box> | ||
| </AnnouncementBanner> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| import { Grommet, Box } from "grommet"; | ||
| import * as React from "react"; | ||
| import { Helmet } from "react-helmet"; | ||
| import { Colors, NavLink, Theme } from "../atoms/UliCore"; | ||
| import NavBarNew from "./NavBarNew"; | ||
| import i18n from "../atoms/i18n"; | ||
| import { useTranslation } from "react-i18next"; | ||
| import { useLocation } from "@reach/router"; | ||
| import FooterNew from "./FooterNew"; | ||
|
|
||
| export default function AppShellNew({ children }) { | ||
| const { t, i18n } = useTranslation(); | ||
| React.useEffect(() => { | ||
| const lang = localStorage.getItem("uli-lang"); | ||
| i18n.changeLanguage(lang); | ||
| }, []); | ||
| const location = useLocation(); | ||
|
|
||
| let fullPath = location.pathname; | ||
| if (fullPath.slice(-1) === "/") { | ||
| fullPath = fullPath.slice(0, -1); | ||
| } | ||
| let title = fullPath.split("/").at(-1); | ||
|
|
||
| if (["hi", "en", "ta", "ma"].includes(title)) { | ||
| title = "Uli"; | ||
| } | ||
|
|
||
| title = formatTitle(title); | ||
|
|
||
| function formatTitle(str) { | ||
| return str | ||
| .split("-") | ||
| .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) | ||
| .join(" "); | ||
| } | ||
| return ( | ||
| <Grommet theme={Theme}> | ||
| <main | ||
| style={{ | ||
| display: "flex", | ||
| flexDirection: "column", | ||
| minHeight: "100vh", | ||
| }} | ||
| > | ||
| <Helmet> | ||
| <meta charSet="utf-8" /> | ||
| <title>Uli</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 | ||
| defer | ||
| data-domain="uli.tattle.co.in" | ||
| src="https://plausible.io/js/plausible.js" | ||
| ></script> | ||
| </Helmet> | ||
|
|
||
| <NavBarNew /> | ||
| <Box flex="grow" className="font-labrada">{children}</Box> | ||
| <FooterNew /> | ||
| </main> | ||
| </Grommet> | ||
| ); | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The homepage
og:titleresolves to an empty string.For
/, Lines 19-23 normalize the path to"", sotitlestays empty and Line 51 emits a blank Open Graph title on the homepage. Please default the root/empty case to"Uli"before formatting.Also applies to: 51-51
🤖 Prompt for AI Agents