aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-05-30 11:41:19 -0400
committerAndrew Lee <andrew@alee14.me>2025-05-30 11:41:19 -0400
commit73e957caaf661900f1712c4217a73bb4fcfaa34b (patch)
tree79b7f835c676e6f1911d60a4491495583bb8a0d3 /src
parent4afdb7370dcc8df71c648eb76a7e126cb888e65c (diff)
downloadalure-post-73e957caaf661900f1712c4217a73bb4fcfaa34b.tar.gz
alure-post-73e957caaf661900f1712c4217a73bb4fcfaa34b.tar.bz2
alure-post-73e957caaf661900f1712c4217a73bb4fcfaa34b.zip
Base website
Diffstat (limited to 'src')
-rw-r--r--src/app/components/Navbar.tsx46
-rw-r--r--src/app/globals.css31
-rw-r--r--src/app/layout.tsx26
-rw-r--r--src/app/page.tsx104
4 files changed, 77 insertions, 130 deletions
diff --git a/src/app/components/Navbar.tsx b/src/app/components/Navbar.tsx
new file mode 100644
index 0000000..ca9591e
--- /dev/null
+++ b/src/app/components/Navbar.tsx
@@ -0,0 +1,46 @@
+"use client";
+import Image from "next/image";
+import Link from "next/link";
+import { useState } from "react";
+
+const Navbar = () => {
+ const [navbar, setNavbar] = useState(false);
+ return (
+ <nav className="border-gray-200 bg-neutral-900">
+ <div className="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-3">
+ <div className="flex items-center">
+ <Image src="/alure-post.svg" className="mr-5" alt="Alure Flag" width={50} height={50}/>
+ <span className="self-center text-2xl font-medium whitespace-nowrap dark:text-white"><p>Alure Post</p></span>
+ </div>
+ <button data-collapse-toggle="navbar-default" type="button"
+ className="transition duration-150 ease-out hover:ease-in inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-zinc-600 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
+ aria-controls="navbar-default" aria-expanded="false" onClick={() => setNavbar(!navbar)}>
+ <span className="sr-only">Open main menu</span>
+ <svg className="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
+ viewBox="0 0 17 14">
+ <path stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"
+ d="M1 1h15M1 7h15M1 13h15"/>
+ </svg>
+ </button>
+ <div className={`w-full md:block md:w-auto ${navbar ? 'block' : 'hidden' }`}>
+ <ul className="font-medium text-lg flex flex-col p-4 md:p-0 mt-4 rounded-lg md:flex-row md:space-x-8 md:mt-0">
+ {[
+ ['Home', '/'],
+ ['Track', '/updates'],
+ ['Send', '/enterprises'],
+
+ ].map(([title, url]) => (
+ <li key={title}>
+ <Link href={url} className="transition duration-150 ease-out hover:ease-in block py-2 pl-3 pr-4 rounded md:border-0 md:p-0 text-white md:hover:text-blue-500 hover:bg-gray-700 hover:text-white md:hover:bg-transparent" onClick={() => setNavbar(!navbar)}>
+ {title}
+ </Link>
+ </li>
+ ))}
+ </ul>
+ </div>
+ </div>
+ </nav>
+ )
+}
+
+export default Navbar;
diff --git a/src/app/globals.css b/src/app/globals.css
index a2dc41e..e29be92 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -1,26 +1,17 @@
@import "tailwindcss";
:root {
- --background: #ffffff;
- --foreground: #171717;
-}
-
-@theme inline {
- --color-background: var(--background);
- --color-foreground: var(--foreground);
- --font-sans: var(--font-geist-sans);
- --font-mono: var(--font-geist-mono);
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --background: #0a0a0a;
- --foreground: #ededed;
- }
+ --foreground-rgb: 255, 255, 255;
+ --background-start-rgb: 0, 0, 0;
+ --background-end-rgb: 0, 0, 0;
}
body {
- background: var(--background);
- color: var(--foreground);
- font-family: Arial, Helvetica, sans-serif;
-}
+ color: rgb(var(--foreground-rgb));
+ background: linear-gradient(
+ to bottom,
+ transparent,
+ rgb(var(--background-end-rgb))
+ )
+ rgb(var(--background-start-rgb));
+} \ No newline at end of file
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index f7fa87e..70fa805 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,19 +1,12 @@
import type { Metadata } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
+import Navbar from "./components/Navbar";
+import { Exo_2 } from "next/font/google";
import "./globals.css";
-const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
-});
-
-const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
-});
+const exo = Exo_2({ subsets: ['latin'] })
export const metadata: Metadata = {
- title: "Create Next App",
+ title: "Alure Post",
description: "Generated by create next app",
};
@@ -25,9 +18,18 @@ export default function RootLayout({
return (
<html lang="en">
<body
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
+ className={`${exo.className} antialiased`}
>
+ <div className="sm:px-10 px-5 py-0.5 font-medium space-x-3 text-right">
+ <a href="https://bnbmc.net" className="transition duration-150 ease-out hover:ease-in md:hover:text-red-500">bnbmc.net ↗</a>
+ <a href="https://alee14.me" className="transition duration-150 ease-out hover:ease-in md:hover:text-green-500">alee14.me ↗</a>
+ </div>
+ <Navbar />
{children}
+ <footer className="flex flex-col text-center py-3 space-y-2 bg-blue-950 text-light text-sm sm:text-base px-5 sm:px-0">
+ <p>Alure Post is a fictional company made for the bits & Bytes Minecraft Server</p>
+ <p>This website is proudly written using Next.JS and Tailwind CSS</p>
+ </footer>
</body>
</html>
);
diff --git a/src/app/page.tsx b/src/app/page.tsx
index e68abe6..e0733a5 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,103 +1,11 @@
-import Image from "next/image";
-
export default function Home() {
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 flex-col gap-[32px] row-start-2 items-center sm:items-start">
- <Image
- className="dark:invert"
- src="/next.svg"
- alt="Next.js logo"
- width={180}
- height={38}
- priority
- />
- <ol className="list-inside list-decimal text-sm/6 text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
- <li className="mb-2 tracking-[-.01em]">
- Get started by editing{" "}
- <code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-[family-name:var(--font-geist-mono)] font-semibold">
- src/app/page.tsx
- </code>
- .
- </li>
- <li className="tracking-[-.01em]">
- Save and see your changes instantly.
- </li>
- </ol>
-
- <div className="flex gap-4 items-center flex-col sm:flex-row">
- <a
- 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] font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:w-auto"
- href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
- target="_blank"
- rel="noopener noreferrer"
- >
- <Image
- className="dark:invert"
- src="/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 font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 w-full sm:w-auto md:w-[158px]"
- 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-[24px] 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="/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="/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="/globe.svg"
- alt="Globe icon"
- width={16}
- height={16}
- />
- Go to nextjs.org →
- </a>
- </footer>
+ <div className="">
+ <h1>Track a post</h1>
+ <form>
+ <input type="text" placeholder="Tracking Number" />
+ <button type="button">Track</button>
+ </form>
</div>
);
}