Skip to content

Commit

Permalink
some work on styling, looking at the index.tsx, maybe not worth to co…
Browse files Browse the repository at this point in the history
…mponentize each release, already pretty short code-wise; will continue working on styling and thinking about storing methods (json seems ok so far, maybe just make an input method or something)
  • Loading branch information
klhftco committed Mar 1, 2024
1 parent 13f2a60 commit 4a2bc09
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 135 deletions.
10 changes: 10 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([
{
Expand Down Expand Up @@ -52,6 +53,15 @@ const router = createBrowserRouter([
},
],
},
{
element: <Layout />,
children: [
{
element: <Releases />,
path: "/releases",
},
],
},
]);

export default function App() {
Expand Down
83 changes: 0 additions & 83 deletions frontend/src/app/Releases/Release/Release.module.scss

This file was deleted.

33 changes: 0 additions & 33 deletions frontend/src/app/Releases/Release/index.tsx

This file was deleted.

7 changes: 7 additions & 0 deletions frontend/src/app/Releases/Releases.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down
41 changes: 22 additions & 19 deletions frontend/src/app/Releases/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,28 @@ const Releases = () => {
<h2>Berkeleytime Releases</h2>
<h3>Keep up-to-date with our releases and bug fixes.</h3>
</div>
{releases.map(rel => {
return (
<div className={styles.log}>
<h3 className={styles.heading}>{rel.date}</h3>
<h2 className={styles.heading}>🤩 What's New</h2>
<ul>
{rel.updates.map(item => {
return <li>{item}</li>
})}
</ul>
<h2 className={styles.heading}>🐛 Bug Fixes</h2>
<ul>
{rel.fixes.map(item => {
return <li>{item}</li>
})}
</ul>
</div>
);
})}
<div className={styles.log_col}>
{releases.map(rel => {
console.log(rel);
return (
<div className={styles.log}>
<h3>{rel.date}</h3>
<h2>🤩 What's New</h2>
<ul>
{rel.updates.map(item => {
return <li>{item}</li>
})}
</ul>
<h2>🐛 Bug Fixes</h2>
<ul>
{rel.fixes.map(item => {
return <li>{item}</li>
})}
</ul>
</div>
);
})}
</div>
</div>
);
};
Expand Down

0 comments on commit 4a2bc09

Please sign in to comment.