make a first page

This commit is contained in:
Nomi Nonsense (Nonszy) 2025-02-17 15:32:46 +07:00
parent fcb655895a
commit 3e972dc59d
8 changed files with 2932 additions and 133 deletions

View File

@ -1,4 +1,14 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = {}; const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'media.tenor.com',
pathname: '/1BCeG1aTiBAAAAAd/temptation-stairway-ena.gif'
}
]
}
};
export default nextConfig; export default nextConfig;

View File

@ -9,18 +9,19 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"dayjs": "^1.11.13",
"next": "14.2.24",
"react": "^18", "react": "^18",
"react-dom": "^18", "react-dom": "^18"
"next": "14.2.24"
}, },
"devDependencies": { "devDependencies": {
"typescript": "^5",
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^18", "@types/react": "^18",
"@types/react-dom": "^18", "@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.24",
"postcss": "^8", "postcss": "^8",
"tailwindcss": "^3.4.1", "tailwindcss": "^3.4.1",
"eslint": "^8", "typescript": "^5"
"eslint-config-next": "14.2.24"
} }
} }

View File

@ -3,25 +3,5 @@
@tailwind utilities; @tailwind utilities;
:root { :root {
--background: #ffffff; --background: #0F0A1F;
--foreground: #171717;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}
body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}
@layer utilities {
.text-balance {
text-wrap: balance;
}
} }

View File

@ -1,17 +1,10 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import localFont from "next/font/local"; import { Roboto_Mono } from 'next/font/google'
import "./globals.css"; import "./globals.css";
const geistSans = localFont({ const roboto_mono = Roboto_Mono({
src: "./fonts/GeistVF.woff", subsets: ['latin']
variable: "--font-geist-sans", })
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Create Next App", title: "Create Next App",
@ -26,7 +19,7 @@ export default function RootLayout({
return ( return (
<html lang="en"> <html lang="en">
<body <body
className={`${geistSans.variable} ${geistMono.variable} antialiased`} className={`bg-background ${roboto_mono.className} antialiased text-white`}
> >
{children} {children}
</body> </body>

View File

@ -1,101 +1,36 @@
import { ExpirationDate } from "@/components/expiration-date";
import Image from "next/image"; import Image from "next/image";
export default function Home() { export default function Home() {
return ( return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]"> <main className="flex items-center pt-32 pb-12 px-8 md:px-0">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start"> <div className="mx-auto w-[480px]">
<header className="text-center mb-12">
<h1 className="font-bold text-xl md:text-3xl">
Nomi Nonsense Workspace
</h1>
</header>
<Image <Image
className="dark:invert" className="mb-12 mx-auto"
src="https://nextjs.org/icons/next.svg" alt="Spining ENA <3"
alt="Next.js logo" src="https://media.tenor.com/1BCeG1aTiBAAAAAd/temptation-stairway-ena.gif"
width={180} width={200}
height={38} height={200}
priority
/> />
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]"> <article className="space-y-6 leading-relaxed">
<li className="mb-2"> <p>What? what are you expecting specifically on this base page?</p>
Get started by editing{" "} <p>
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold"> This is Nomi Nonsense Workspace Domain, where some services and websites that are hosted on their own servers are on this budget domain
src/app/page.tsx </p>
</code> <p>This domain will active until <ExpirationDate /></p>
. </article>
</li> <section className="my-8">
<li>Save and see your changes instantly.</li> <p> Powered with <a href="https://www.cloudflare.com/" target="_blank" className="text-[#F48120] underline">Cloudflare</a> </p>
</ol> </section>
<footer className="mt-20 text-center">
<div className="flex gap-4 items-center flex-col sm:flex-row"> <p>&copy; <span className="text-sm">2024-2025 Nomi Nonsense</span></p>
<a </footer>
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5" </div>
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" </main>
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="https://nextjs.org/icons/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org
</a>
</footer>
</div>
); );
} }

View File

@ -0,0 +1,9 @@
'use client'
import { getExpirationDate } from "@/lib/utils";
// bro has one job
export const ExpirationDate = () => {
const expirationDate = getExpirationDate();
return <span>{expirationDate}</span>
}

8
src/lib/utils.ts Normal file
View File

@ -0,0 +1,8 @@
'use client'
import dayjs from 'dayjs';
export function getExpirationDate () {
const expirationDate = new Date("2025-02-15");
return dayjs(expirationDate).format("dddd, D MMMM YYYY");
}

2863
yarn.lock Normal file

File diff suppressed because it is too large Load Diff