diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 2b10f6dfd..684b2bf0a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -9,6 +9,7 @@ import About from "@/app/About"; import Catalog from "@/app/Catalog"; import Landing from "@/app/Landing"; import Layout from "@/app/Layout"; +import Releases from "@/app/Releases"; const router = createBrowserRouter([ { @@ -52,6 +53,15 @@ const router = createBrowserRouter([ }, ], }, + { + element: , + children: [ + { + element: , + path: "/releases", + }, + ], + }, ]); export default function App() { diff --git a/frontend/src/app/Releases/Release/Release.module.scss b/frontend/src/app/Releases/Release/Release.module.scss deleted file mode 100644 index 275dc0858..000000000 --- a/frontend/src/app/Releases/Release/Release.module.scss +++ /dev/null @@ -1,83 +0,0 @@ -.root { - padding: 96px 0; - - .row { - display: flex; - justify-content: flex-end; - align-items: center; - gap: 96px; - - &:not(:last-child) { - margin-bottom: 96px; - } - - .gallery { - display: flex; - flex-direction: column; - flex-grow: 1; - position: relative; - - .calendar { - width: calc(100% - 128px); - } - - .schedule { - width: 256px; - margin-left: auto; - margin-top: -128px; - } - } - - .text { - width: 512px; - flex-shrink: 0; - - .link { - display: flex; - align-items: center; - gap: 8px; - color: var(--blue-500); - font-size: 16px; - font-weight: 500; - line-height: 1; - transition: all 100ms ease-in-out; - - &:hover { - color: var(--blue-600); - } - } - - .description { - font-size: 16px; - line-height: 1.5; - margin-bottom: 32px; - color: var(--slate-500); - } - - .heading { - font-size: 32px; - font-weight: 660; - font-feature-settings: 'cv05' on, 'cv13' on, 'ss07' on, 'cv12' on, 'cv06' on; - line-height: 1.25; - letter-spacing: -1%; - margin-bottom: 16px; - color: var(--slate-900); - } - - .badge { - height: 24px; - border-radius: 4px; - padding: 0 8px; - display: flex; - align-items: center; - background-color: var(--orange-500); - width: max-content; - color: white; - font-size: 14px; - font-weight: 500; - line-height: 1; - margin-bottom: 16px; - } - } - } -} diff --git a/frontend/src/app/Releases/Release/index.tsx b/frontend/src/app/Releases/Release/index.tsx deleted file mode 100644 index cf325767b..000000000 --- a/frontend/src/app/Releases/Release/index.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { ArrowRight } from "iconoir-react"; -import { Link } from "react-router-dom"; - -import Container from "@/components/Container"; - -import styles from "./Release.module.scss"; - -interface ReleaseProps { - date: string; - updates: Array; - fixes: Array; -} - -export default function Release(props: { release?: ReleaseProps }) { - console.log(release); - return ( - - {release.date} - 🤩 What's New - - {release.updates.map(item => { - return {item} - })} - - 🐛 Bug Fixes - - {release.fixes.map(item => { - return {item} - })} - - - ); -} diff --git a/frontend/src/app/Releases/Releases.module.scss b/frontend/src/app/Releases/Releases.module.scss index e58bb830b..54ba02e72 100644 --- a/frontend/src/app/Releases/Releases.module.scss +++ b/frontend/src/app/Releases/Releases.module.scss @@ -14,6 +14,13 @@ color: #383838; } +.log_col { + display: flex; + flex-direction: column; + width: 100%; + align-items: center; +} + .log { flex: 0 0 50%; max-width: 50%; diff --git a/frontend/src/app/Releases/index.tsx b/frontend/src/app/Releases/index.tsx index c3ba03f7e..bbf322f70 100644 --- a/frontend/src/app/Releases/index.tsx +++ b/frontend/src/app/Releases/index.tsx @@ -13,25 +13,28 @@ const Releases = () => { Berkeleytime Releases Keep up-to-date with our releases and bug fixes. - {releases.map(rel => { - return ( - - {rel.date} - 🤩 What's New - - {rel.updates.map(item => { - return {item} - })} - - 🐛 Bug Fixes - - {rel.fixes.map(item => { - return {item} - })} - - - ); - })} + + {releases.map(rel => { + console.log(rel); + return ( + + {rel.date} + 🤩 What's New + + {rel.updates.map(item => { + return {item} + })} + + 🐛 Bug Fixes + + {rel.fixes.map(item => { + return {item} + })} + + + ); + })} + ); };