news grid

This commit is contained in:
2025-04-16 16:15:36 +02:00
parent da8ab747f4
commit 6fbd150be4
19 changed files with 96 additions and 5 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+37 -1
View File
@@ -22,7 +22,7 @@
body { body {
background: var(--background); background: var(--background);
color: var(--foreground); color: var(--foreground);
font-family: "Panton", sans-serif; font-family: "Roboto Mono", sans-serif;
} }
@font-face { @font-face {
@@ -48,3 +48,39 @@ body {
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
} }
@font-face {
font-family: "Roboto Mono";
src: url("/font/roboto_mono/RobotoMono-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto Mono";
src: url("/font/roboto_mono/RobotoMono-Italic.ttf") format("truetype");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto Mono";
src: url("/font/roboto_mono/RobotoMono-Bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto Mono";
src: url("/font/roboto_mono/RobotoMono-BoldItalic.ttf") format("truetype");
font-weight: 700;
font-style: italic;
font-display: swap;
}
::selection {
background: #e2bf7d;
}
+47 -2
View File
@@ -1,5 +1,27 @@
import Footer from "@/components/Footer"; import Footer from "@/components/Footer";
import Header from "@/components/Header"; import Header from "@/components/Header";
import Image from "next/image";
import Link from "next/link";
// const newsList = [
// {
// authors: [],
// title: "Hello World",
// description: "lorem ipsum ipsum lorem",
// image: "/background.png",
// date: "2025-04-16",
// id: "",
// },
// ];
const newsList = Array(3 * 6).fill({
authors: [],
title: "Hello World",
description: "lorem ipsum ipsum lorem",
image: "/background.png",
date: "2025-04-16",
id: "",
});
export default function News() { export default function News() {
return ( return (
@@ -7,14 +29,37 @@ export default function News() {
<div className="flex flex-col bg-[url('/background.png')] bg-center bg-no-repeat h-52"> <div className="flex flex-col bg-[url('/background.png')] bg-center bg-no-repeat h-52">
<Header /> <Header />
<h1 className="text-5xl font-black m-auto w-max">CLIENT NEWS</h1> <h1 className="text-5xl font-black m-auto w-max font-['Panton']">
CLIENT NEWS
</h1>
</div> </div>
<div className="py-8 px-5 w-full"> <div className="py-8 px-5 w-full">
TODO: implement search and filtering TODO: implement search and filtering
</div> </div>
<div className="py-8 px-5 w-full">TODO: implement thumbnail</div> <div className="py-8 px-5 w-full grid grid-rows-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5">
{newsList.map((news, i) => (
<Link
href={`/news/${news.id}`}
className="hover:scale-[1.02] transform transition duration-300"
key={i}
>
<div
style={{
background: `url('${news.image}')`,
backgroundSize: "cover",
backgroundRepeat: "no-repeat",
}}
className="object-cover h-48 rounded-2xl p-4"
>
<h2 className="text-3xl font-black">{news.title}</h2>
<p className="text-xl">{news.description}</p>
<p className="text-md">{news.date}</p>
</div>
</Link>
))}
</div>
<Footer /> <Footer />
</div> </div>
+2 -2
View File
@@ -23,8 +23,8 @@ export default function Home() {
<div className="flex-1 flex flex-col text-2xl mt-40 items-center"> <div className="flex-1 flex flex-col text-2xl mt-40 items-center">
<Image src="/logo.png" alt="Logo" width={240} height={240} /> <Image src="/logo.png" alt="Logo" width={240} height={240} />
<h1 className="text-5xl font-black">Saturn Client</h1> <h1 className="text-5xl font-black font-['Panton']">Saturn Client</h1>
<p className="text-xl text-white mix-blend-difference"> <p className="text-xl text-white mix-blend-difference font-['Panton']">
The best open source Minecraft client The best open source Minecraft client
</p> </p>
+3
View File
@@ -0,0 +1,3 @@
export default function Blog() {
return <div>Blog</div>;
}
+7
View File
@@ -0,0 +1,7 @@
import type { Config } from "tailwindcss";
export default {
content: [],
theme: {},
plugins: [],
} satisfies Config;