init
This commit is contained in:
25
cansat/pages/_app.tsx
Normal file
25
cansat/pages/_app.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { AppProps } from "next/app";
|
||||
|
||||
import { HeroUIProvider } from "@heroui/system";
|
||||
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
||||
import { useRouter } from "next/router";
|
||||
|
||||
import { fontSans, fontMono } from "@/config/fonts";
|
||||
import "@/styles/globals.css";
|
||||
|
||||
export default function App({ Component, pageProps }: AppProps) {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<HeroUIProvider navigate={router.push}>
|
||||
<NextThemesProvider>
|
||||
<Component {...pageProps} />
|
||||
</NextThemesProvider>
|
||||
</HeroUIProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export const fonts = {
|
||||
sans: fontSans.style.fontFamily,
|
||||
mono: fontMono.style.fontFamily,
|
||||
};
|
21
cansat/pages/_document.tsx
Normal file
21
cansat/pages/_document.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Html, Head, Main, NextScript } from "next/document";
|
||||
import clsx from "clsx";
|
||||
|
||||
import { fontSans } from "@/config/fonts";
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html lang="en">
|
||||
<Head />
|
||||
<body
|
||||
className={clsx(
|
||||
"min-h-screen bg-background font-sans antialiased",
|
||||
fontSans.variable,
|
||||
)}
|
||||
>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
14
cansat/pages/about/index.tsx
Normal file
14
cansat/pages/about/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { title } from "@/components/primitives";
|
||||
import DefaultLayout from "@/layouts/default";
|
||||
|
||||
export default function DocsPage() {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
<h1 className={title()}>About</h1>
|
||||
</div>
|
||||
</section>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
13
cansat/pages/api/hello.ts
Normal file
13
cansat/pages/api/hello.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||
import type { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
type Data = {
|
||||
name: string;
|
||||
};
|
||||
|
||||
export default function Handler(
|
||||
req: NextApiRequest,
|
||||
res: NextApiResponse<Data>,
|
||||
) {
|
||||
res.status(200).json({ name: "John Doe" });
|
||||
}
|
14
cansat/pages/blog/index.tsx
Normal file
14
cansat/pages/blog/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { title } from "@/components/primitives";
|
||||
import DefaultLayout from "@/layouts/default";
|
||||
|
||||
export default function DocsPage() {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
<h1 className={title()}>Blog</h1>
|
||||
</div>
|
||||
</section>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
14
cansat/pages/docs/index.tsx
Normal file
14
cansat/pages/docs/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { title } from "@/components/primitives";
|
||||
import DefaultLayout from "@/layouts/default";
|
||||
|
||||
export default function DocsPage() {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
<h1 className={title()}>Docs</h1>
|
||||
</div>
|
||||
</section>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
81
cansat/pages/index.tsx
Normal file
81
cansat/pages/index.tsx
Normal file
@@ -0,0 +1,81 @@
|
||||
import { Link } from "@heroui/link";
|
||||
import { Snippet } from "@heroui/snippet";
|
||||
import { Code } from "@heroui/code";
|
||||
import { button as buttonStyles } from "@heroui/theme";
|
||||
|
||||
import { siteConfig } from "@/config/site";
|
||||
import { title, subtitle } from "@/components/primitives";
|
||||
import { GithubIcon } from "@/components/icons";
|
||||
import DefaultLayout from "@/layouts/default";
|
||||
import {Card, CardHeader, CardBody, CardFooter} from "@heroui/card";
|
||||
import {Divider} from "@heroui/divider";
|
||||
import {Image} from "@heroui/image";
|
||||
|
||||
|
||||
export default function IndexPage() {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-xl text-center justify-center">
|
||||
<span className={title()}>
|
||||
Adlerka Space Program
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col md:flex-row gap-4">
|
||||
<Card className="">
|
||||
<CardHeader className="flex gap-3">
|
||||
<Image
|
||||
alt="heroui logo"
|
||||
height={80}
|
||||
radius="sm"
|
||||
src="https://www.adlerka.space/assets/images/favicon.png"
|
||||
width={80}
|
||||
/>
|
||||
<div className="flex flex-col">
|
||||
<p className="text-xl">Who are we?</p>
|
||||
<p className="text-small text-default-500">adlerka.sk</p>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<Divider />
|
||||
<CardBody className="text-xl">
|
||||
<p>We are a team of talented and ambitious high school students from Adlerka electrical engineering school, representing Slovakia in the European Space Agency’s CanSat project.</p>
|
||||
</CardBody>
|
||||
<Divider />
|
||||
<CardFooter>
|
||||
<Link isExternal showAnchorIcon href="/about" target="_self">
|
||||
Learn more About Us.
|
||||
</Link>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
|
||||
<Card className="">
|
||||
<CardHeader className="flex gap-3">
|
||||
<Image
|
||||
alt="heroui logo"
|
||||
height={80}
|
||||
radius="sm"
|
||||
src="https://adlerkaspace.wz.sk/wp-content/uploads/2024/02/cansat-logo.png"
|
||||
width={80}
|
||||
/>
|
||||
<div className="flex flex-col">
|
||||
<p className="text-xl">About CanSat</p>
|
||||
<p className="text-small text-default-500">spaceoffice.sk/cansat</p>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<Divider />
|
||||
<CardBody className="text-xl">
|
||||
<p>The CanSat project is an educational endeavor that combines the fields of aerospace engineering and technology. It involves designing and building a small satellite, no larger than a soda can, which is then launched into the atmosphere to collect data and perform various tasks.</p>
|
||||
</CardBody>
|
||||
<Divider />
|
||||
<CardFooter>
|
||||
<Link isExternal showAnchorIcon href="https://cansat.esa.int/about-cansat/cansat-project/" target="_self">
|
||||
Learn more about CanSat.
|
||||
</Link>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
</div>
|
||||
</section>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
14
cansat/pages/pricing/index.tsx
Normal file
14
cansat/pages/pricing/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { title } from "@/components/primitives";
|
||||
import DefaultLayout from "@/layouts/default";
|
||||
|
||||
export default function DocsPage() {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
<h1 className={title()}>Pricing</h1>
|
||||
</div>
|
||||
</section>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
64
cansat/pages/sponsor/index.tsx
Normal file
64
cansat/pages/sponsor/index.tsx
Normal file
@@ -0,0 +1,64 @@
|
||||
import { title } from "@/components/primitives";
|
||||
import DefaultLayout from "@/layouts/default";
|
||||
import {HeartFilledIcon} from "@/components/icons";
|
||||
import {Card, CardHeader, CardBody, CardFooter} from "@heroui/card";
|
||||
import {Divider} from "@heroui/divider";
|
||||
import {Link} from "@heroui/link";
|
||||
import {Button} from "@heroui/button";
|
||||
|
||||
|
||||
|
||||
|
||||
export default function SponsorPage() {
|
||||
return (
|
||||
<DefaultLayout>
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
<span className={title({ color: "cyan" })}>SPONSOR </span>
|
||||
<span className={title({ color: "blue" })}>US </span>
|
||||
<HeartFilledIcon className={"text-danger size-16 mx-auto"}></HeartFilledIcon>
|
||||
</div>
|
||||
<Card>
|
||||
<CardHeader className="flex gap-3 font-bold text-xl">
|
||||
<p>Your support means a lot to us.</p>
|
||||
</CardHeader>
|
||||
<Divider />
|
||||
<CardBody className="text-center">
|
||||
|
||||
<p>If you are interested in collaborating, providing resources, or offering any form of assistance,</p>
|
||||
<p>please reach out to us via the links below.</p>
|
||||
</CardBody>
|
||||
<CardFooter className="justify-center flex flex-col md:flex-row gap-4">
|
||||
<Button
|
||||
showAnchorIcon
|
||||
as={Link}
|
||||
color="primary"
|
||||
href="mailto:simon@adlerka.space"
|
||||
variant="solid"
|
||||
>
|
||||
Email
|
||||
</Button>
|
||||
<Button
|
||||
showAnchorIcon
|
||||
as={Link}
|
||||
color= "secondary"
|
||||
href="https://adlerka.space"
|
||||
variant="solid"
|
||||
>
|
||||
Instagram
|
||||
</Button>
|
||||
<Button
|
||||
showAnchorIcon
|
||||
as={Link}
|
||||
color="default"
|
||||
href="https://discordapp.com/users/404304818178621440"
|
||||
variant="solid"
|
||||
>
|
||||
Discord
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
</section>
|
||||
</DefaultLayout>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user