Skip to content

Commit

Permalink
feat: set notice, remove excess data
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Sep 1, 2024
1 parent da73588 commit 6bed211
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
1 change: 0 additions & 1 deletion src/app/[game]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export default async function GamePage({ params }: Readonly<Props>) {
url={`https://cdn.wanderer.moe/${response.game}/cover.png`}
alt={response.game}
title={FormatGameName(response.game)}
description={`Last updated ${timeAgo(response.lastUploaded)}`}
/>
{advisoryGames.includes(response.game) && (
<div>
Expand Down
4 changes: 3 additions & 1 deletion src/components/desc-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export function DescriptionImage({
<h1 className="text-4xl font-semibold text-primary tracking-tight">
{title}
</h1>
<p className="text-muted-foreground">{description}</p>
{description ? (
<p className="text-muted-foreground">{description}</p>
) : null}
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/games/games-categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ function CategoryEntry({
{FormatCategoryName(category.name)}
</h2>
</div>
<div className="flex text-xs justify-between items-center gap-2">
{/* <div className="flex text-xs justify-between items-center gap-2">
<div className="flex flex-col">
<p className="text-muted-foreground">
Updated {timeAgo(category.lastUploaded)}
{category.fileCount} files
</p>
</div>
<p>{category.fileCount} files</p>
</div>
<p>{category.fileCount} files</p>
</div> */}
</Card>
</Link>
);
Expand Down
9 changes: 0 additions & 9 deletions src/components/games/games-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ export function GamesGrid() {

React.useEffect(() => {
getGames().then((data) => {
data.response.games.sort((a, b) => {
return (
new Date(b.lastUploaded).getTime() -
new Date(a.lastUploaded).getTime()
);
});
setGames(data.response.games);
});
}, []);
Expand Down Expand Up @@ -70,9 +64,6 @@ export function GameEntry({ game }: Readonly<GameEntryProps>) {
<h2 className="text-white font-semibold">
{FormatGameName(game.name)}
</h2>
<p className="text-xs text-muted-foreground font-semibold">
Updated {timeAgo(game.lastUploaded)}
</p>
</div>
</div>
</div>
Expand Down
17 changes: 4 additions & 13 deletions src/components/nav/nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,10 @@ import { CommandSearch } from "./command";
export default function NavBar() {
return (
<header className="top-0 bg-background/90 backdrop-blur-sm border-b sticky z-50">
{/* <Link
href="https://crowdfund.dromzeh.dev/"
target="_blank"
prefetch={false}
>
<div className="p-2 text-sm bg-destructive hover:bg-destructive/90 justify-center text-center text-primary group flex gap-1 items-center transition-all duration-150 ease-linear">
wanderer.moe needs financial support to keep running{" "}
<ArrowRightIcon
size={16}
className="group-hover:translate-x-1 transition-all duration-150 ease-linear translate-y-[1px]"
/>
</div>
</Link> */}
<div className="p-2 text-xs bg-destructive hover:bg-destructive/90 justify-center text-center text-primary group flex gap-1 items-center transition-all duration-150 ease-linear">
wanderer.moe will be undergoing heavy updates for the next
couple days - the site will stay up, bugs may occur!{" "}
</div>
<nav className="flex justify-between tems-center max-w-screen-xl px-5 py-2 mx-auto">
<Link href="/" className="text-lg font-semibold">
<div className="flex flex-row gap-1 items-center">
Expand Down

0 comments on commit 6bed211

Please sign in to comment.