Compare commits

..

10 Commits

34 changed files with 102 additions and 104 deletions

BIN
public/bg/bg1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 MiB

BIN
public/bg/bg2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 MiB

BIN
public/bg/bg3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 MiB

BIN
public/bg/bg4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 MiB

BIN
public/bg/bg5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 MiB

BIN
public/bg/bg6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 MiB

BIN
public/bg/bg7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

BIN
public/bg/bg8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

BIN
public/bg/bg9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

BIN
public/bg/bg_bright.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 MiB

BIN
public/bg/bg_day.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 MiB

BIN
public/bg/webp/bg1.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 KiB

BIN
public/bg/webp/bg2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 KiB

BIN
public/bg/webp/bg3.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

BIN
public/bg/webp/bg4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 KiB

BIN
public/bg/webp/bg5.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

BIN
public/bg/webp/bg6.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

BIN
public/bg/webp/bg7.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

BIN
public/bg/webp/bg8.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

BIN
public/bg/webp/bg9.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
public/bg/webp/bg_day.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 KiB

1
public/favicon.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208.31 242.31"><defs><style>.b{fill:#fff;stroke:#231f20;stroke-miterlimit:10;}</style></defs><polygon class="b" points="83.49 166.54 100.22 196.8 75.37 241.81 42.41 241.81 83.49 166.54"/><polygon class="b" points="75.37 .5 207.46 241.81 174.75 241.81 42.41 .5 75.37 .5"/><polygon class="b" points="33.55 .5 165.89 241.81 133.18 241.81 .84 .5 33.55 .5"/><path class="b" d="M124.81,75.77l-16.97-31.48L132.93,.5h32.96l-41.08,75.27Zm21.16,38.87L207.46,.5h-32.71l-45.51,83.63,16.73,30.51Z"/><polygon class="b" points="79.06 158.18 33.55 241.81 .84 241.81 62.33 127.67 79.06 158.18"/></svg>

After

Width:  |  Height:  |  Size: 682 B

View File

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1,10 @@
import Link from "next/link";
import { Logo } from "./Logo";
export const CornerLogo = () => {
return (
<Link className="absolute left-0 top-0 hidden sm:flex" href="/">
<Logo />
</Link>
);
};

View File

@ -1,4 +1,4 @@
import { PropsWithChildren } from "react";
import { type PropsWithChildren } from "react";
export const PageContentBox = (
props: {

33
src/components/layout.tsx Normal file
View File

@ -0,0 +1,33 @@
import Head from "next/head";
export default function Layout({ children }: { children: React.ReactNode }) {
const bgs = [
"/bg/webp/bg1.webp",
"/bg/webp/bg2.webp",
"/bg/webp/bg3.webp",
"/bg/webp/bg4.webp",
"/bg/webp/bg5.webp",
"/bg/webp/bg6.webp",
"/bg/webp/bg7.webp",
"/bg/webp/bg8.webp",
"/bg/webp/bg9.webp",
];
const randomBg = bgs[Math.floor(Math.random() * bgs.length)] as string;
return (
<>
<Head>
<title>XCL</title>
<meta name="description" content="XCL homepage" />
<link rel="icon" href="/favicon.svg" />
</Head>
<main
className="bg-cover bg-center"
style={{ backgroundImage: `url("${randomBg}")` }}
>
{children}
</main>
</>
);
}

View File

@ -3,6 +3,7 @@ import { SessionProvider } from "next-auth/react";
import { type AppType } from "next/app";
import { api } from "~/utils/api";
import "~/styles/globals.css";
import Layout from "~/components/layout";
const MyApp: AppType<{ session: Session | null }> = ({
Component,
@ -10,7 +11,9 @@ const MyApp: AppType<{ session: Session | null }> = ({
}) => {
return (
<SessionProvider session={session}>
<Component {...pageProps} />
<Layout>
<Component {...pageProps} />
</Layout>
</SessionProvider>
);
};

View File

@ -1,46 +1,27 @@
import { signIn, signOut, useSession } from "next-auth/react";
import Head from "next/head";
import Image from "next/image";
import Link from "next/link";
import { api } from "~/utils/api";
import { Logo } from "../components/Logo";
import { LinkButton } from "../components/LinkButton";
import { NavigationBar } from "../components/NavigationBar";
import { PageContentBox } from "~/components/PageContentBox";
import { CornerLogo } from "~/components/CornerLogo";
export default function Home() {
export default function About() {
return (
<>
<Head>
<title>XCL</title>
<meta name="description" content="About XCL" />
<link rel="icon" href="/favicon.ico" />
</Head>
{/* <main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#993800] to-[#250e00]"> */}
<main className="bg-[url(/bg.png)] bg-cover bg-center">
<div className="bg-black/60">
<div className="flex min-h-screen flex-col items-center justify-center bg-orange-800/40">
<Link className="absolute left-0 top-0" href="/">
<Logo />
</Link>
<div className="absolute right-0 top-0">
<NavigationBar />
</div>
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-1 md:gap-8">
<PageContentBox title="Our Mission">
Here at XCL, we strive to make the SwitchCraft 3 server as
unbearable as possible. While these noobs at SpaceTech are
feeding cookies to parrots, we build space stations not only
for the astronauts, but also for the olympians and war heroes
of our time.
</PageContentBox>
</div>
<div className="flex flex-col items-center gap-2"></div>
</div>
</div>
<div className="bg-black/60">
<div className="flex min-h-screen flex-col items-center justify-center bg-orange-800/40">
<CornerLogo />
<div className="absolute right-0 top-0">
<NavigationBar />
</div>
</main>
</>
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-1 md:gap-8">
<PageContentBox title="Our Mission">
Here at XCL, we strive to make the SwitchCraft 3 server as
unbearable as possible. While these noobs at SpaceTech are feeding
cookies to parrots, we build space stations not only for the
astronauts, but also for the olympians and war heroes of our time.
</PageContentBox>
</div>
<div className="flex flex-col items-center gap-2"></div>
</div>
</div>
</div>
);
}

View File

@ -1,41 +1,26 @@
import { signIn, signOut, useSession } from "next-auth/react";
import Head from "next/head";
import Image from "next/image";
import Link from "next/link";
import { api } from "~/utils/api";
import { Logo } from "../components/Logo";
import { LinkButton } from "../components/LinkButton";
import { NavigationBar } from "../components/NavigationBar";
export default function Home() {
return (
<>
<Head>
<title>XCL</title>
<meta name="description" content="XCL homepage" />
<link rel="icon" href="/favicon.ico" />
</Head>
{/* <main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#993800] to-[#250e00]"> */}
<main className="bg-[url(/bg.png)] bg-cover bg-center">
<div className="bg-black/60">
<div className="flex min-h-screen flex-col items-center justify-center bg-orange-800/40">
<div className="absolute right-0 top-0">
<NavigationBar />
</div>
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16">
<Logo />
<div className="grid grid-cols-1 gap-4 sm:grid-cols-1 md:gap-8">
<LinkButton
href="https://github.com/experimental-celestial-laboratories"
title="GitHub →"
text="Learn more about XCL."
/>
</div>
<div className="flex flex-col items-center gap-2"></div>
</div>
</div>
<div className="bg-black/60">
<div className="flex min-h-screen flex-col items-center justify-center bg-orange-800/40">
<div className="absolute right-0 top-0">
<NavigationBar />
</div>
</main>
</>
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16">
<Logo />
<div className="grid grid-cols-1 gap-4 sm:grid-cols-1 md:gap-8">
<LinkButton
href="https://git.hri7566.info/xcl"
title="Git →"
text="Learn more about XCL."
/>
</div>
<div className="flex flex-col items-center gap-2"></div>
</div>
</div>
</div>
);
}

View File

@ -1,39 +1,24 @@
import { signIn, signOut, useSession } from "next-auth/react";
import Head from "next/head";
import Link from "next/link";
import { Logo } from "../components/Logo";
import { NavigationBar } from "~/components/NavigationBar";
import { PageContentBox } from "~/components/PageContentBox";
import { EmployeeList } from "~/components/EmployeeList";
import { CornerLogo } from "~/components/CornerLogo";
export default function Employment() {
export default function Team() {
return (
<>
<Head>
<title>XCL</title>
<meta name="description" content="XCL's team" />
<link rel="icon" href="/favicon.ico" />
</Head>
{/* <main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#993800] to-[#250e00]"> */}
<main className="bg-[url(/bg.png)] bg-cover bg-center">
<div className="bg-black/60">
<div className="flex min-h-screen flex-col items-center justify-center bg-orange-800/40">
<Link className="absolute left-0 top-0" href="/">
<Logo />
</Link>
<div className="absolute right-0 top-0">
<NavigationBar />
</div>
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16">
<PageContentBox title="Employees">
<div className="grid grid-cols-1 md:grid-cols-3">
<EmployeeList />
</div>
</PageContentBox>
</div>
</div>
<div className="bg-black/60">
<div className="flex min-h-screen flex-col items-center justify-center bg-orange-800/40">
<CornerLogo />
<div className="absolute right-0 top-0">
<NavigationBar />
</div>
</main>
</>
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16">
<PageContentBox title="Employees">
<div className="grid grid-cols-1 md:grid-cols-3">
<EmployeeList />
</div>
</PageContentBox>
</div>
</div>
</div>
);
}