From c0e7061cf58004844090d214882f39ba65aa4bf7 Mon Sep 17 00:00:00 2001 From: Terence Lo Date: Mon, 10 Mar 2025 14:41:21 -0700 Subject: [PATCH 1/7] clean up tailwind config --- frontend/tailwind.config.js | 41 ++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 7541c68e..781ca6dd 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,6 +1,11 @@ /** @type {import('tailwindcss').Config} */ + +/* + * Please refer to CTJ Figma Design System for more details about custom theme values + **/ + module.exports = { - darkMode: "class", // Enables dark mode with a class + darkMode: "class", content: [ "./src/pages/Demo/DemoTailwind.tsx", "./src/pages/Authentication/*.tsx", @@ -12,15 +17,15 @@ module.exports = { theme: { screens: { xs: "480px", - // => @media (min-width: 480px) { ... } sm: "577px", - // => @media (min-width: 577px) { ... } md: "769px", - // => @media (min-width: 769px) { ... } lg: "1025px", - // => @media (min-width: 1025px) { ... } xl: "1201px", - // => @media (min-width: 1201px) { ... } + }, + borderRadius: { + DEFAULT: "20px", + large: "60px", + "x-large": "100px", }, colors: { // Primary Colors @@ -37,13 +42,13 @@ module.exports = { "tan-light": "#ffefdb", "tan-bg": "#fbe8ce", green: "#13831e", - red: "#CC0023", + red: "#c93329", // Neutral Colors - white: "#fff", + white: "#ffffff", "grey-light": "#f2f2f2", grey: "#c1c1c1", "grey-dark": "#585858", - charcoal: "#333", + charcoal: "#333333", }, fontFamily: { sans: ["Roboto", "Tahoma", "Verdana", "sans-serif"], @@ -60,15 +65,23 @@ module.exports = { lineHeight: { "extra-tight": "1.125rem", }, - borderRadius: { - DEFAULT: "20px", - large: "60px", - "x-large": "100px", - }, rotate: { 290: "290deg", 345: "345deg", }, + spacing: { + p0: "0px", + p1: "8px", + p2: "16px", + p3: "24px", + p4: "32px", + p5: "40px", + p6: "48px", + p7: "56px", + p8: "64px", + p9: "72px", + p10: "80px", + }, }, }, plugins: [], From 13f762bbf3b474b0ddf89be9faf6e9c3dd2d097e Mon Sep 17 00:00:00 2001 From: Terence Lo Date: Mon, 10 Mar 2025 14:47:17 -0700 Subject: [PATCH 2/7] fix border radius --- frontend/tailwind.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 781ca6dd..c4b7b5ad 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -22,11 +22,6 @@ module.exports = { lg: "1025px", xl: "1201px", }, - borderRadius: { - DEFAULT: "20px", - large: "60px", - "x-large": "100px", - }, colors: { // Primary Colors "blue-dark": "#3450a1", @@ -62,6 +57,11 @@ module.exports = { black: "900", }, extend: { + borderRadius: { + DEFAULT: "20px", + large: "60px", + "x-large": "100px", + }, lineHeight: { "extra-tight": "1.125rem", }, From 43d972cc2817d0175780158df643306942241086 Mon Sep 17 00:00:00 2001 From: Terence Lo Date: Mon, 10 Mar 2025 15:00:39 -0700 Subject: [PATCH 3/7] refactor Logo --- frontend/src/tw-components/HeaderNav.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/tw-components/HeaderNav.tsx b/frontend/src/tw-components/HeaderNav.tsx index a1935911..46ce641c 100644 --- a/frontend/src/tw-components/HeaderNav.tsx +++ b/frontend/src/tw-components/HeaderNav.tsx @@ -21,19 +21,19 @@ const menuItems: menuObject[] = [ { name: "Projects", link: "https://www.hackforla.org/projects/" }, ]; -function HeaderNav() { - const Logo = () => { - return ( - - Civic Tech Jobs - Home - - ); - }; +const Logo = () => { + return ( + + Civic Tech Jobs - Home + + ); +}; +function HeaderNav() { return (
From 1bdc11e0632a9ea015bbf7e3323e17f5a4cc81f4 Mon Sep 17 00:00:00 2001 From: Terence Lo Date: Mon, 10 Mar 2025 15:28:49 -0700 Subject: [PATCH 4/7] init tw footerNav --- frontend/src/tw-components/FooterNav.tsx | 69 ++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 frontend/src/tw-components/FooterNav.tsx diff --git a/frontend/src/tw-components/FooterNav.tsx b/frontend/src/tw-components/FooterNav.tsx new file mode 100644 index 00000000..3629e65f --- /dev/null +++ b/frontend/src/tw-components/FooterNav.tsx @@ -0,0 +1,69 @@ +// External imports +import React, { Fragment } from "react"; +import { Link } from "react-router-dom"; + +// Internal imports +import { Button } from "components/components"; +import { logoHorizontalOnDark, logoStackedOnDark } from "assets/images/images"; + +interface menuObject { + name?: string; + link: string; +} + +const menuItems: menuObject[] = [ + { name: "Credits", link: "credits" }, + { name: "Sitemap", link: "#" }, + { name: "Join Us", link: "qualifier/1" }, +]; + +const Logo = () => { + return ( + + Civic Tech Jobs - Home + Civic Tech Jobs - Home + + ); +}; + +function FooterNav() { + return ( +
+ + +
+ +
+
+ ); +} + +export { FooterNav }; From 9f7533c00ab0e24a5593171e438a587f36b359e6 Mon Sep 17 00:00:00 2001 From: Terence Lo Date: Mon, 10 Mar 2025 16:40:49 -0700 Subject: [PATCH 5/7] convert sass to TW --- frontend/src/tw-components/FooterNav.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/tw-components/FooterNav.tsx b/frontend/src/tw-components/FooterNav.tsx index 3629e65f..ecf9e5a1 100644 --- a/frontend/src/tw-components/FooterNav.tsx +++ b/frontend/src/tw-components/FooterNav.tsx @@ -36,24 +36,24 @@ const Logo = () => { function FooterNav() { return ( -