Second frontend, written in Next.JS + Typescript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
943 B

4 years ago
4 years ago
  1. import React from "react";
  2. import Head from "next/head";
  3. import styles from "./Layout.module.sass";
  4. import { Sidebar } from "./Sidebar";
  5. import MagicImage from "./MagicImage";
  6. export const siteTitle = "Aite RP"
  7. interface LayoutProps {
  8. children: React.ReactNode
  9. }
  10. export default function Layout(props: LayoutProps) {
  11. return (
  12. <div className={styles.wrapper}>
  13. <MagicImage opacity={0.50} alignH="right" fixed src="https://files.aiterp.net/misc/renders/2020-08-30%20-%20Archive.jpg" />
  14. <Sidebar />
  15. <div className={styles.container}>
  16. <Head>
  17. <link rel="icon" href="/favicon.ico" />
  18. <meta
  19. key="description"
  20. name="description"
  21. content="Learn how to build a personal website using Next.js"
  22. />
  23. <meta key="og_title" name="og:title" content={"Aite RP"} />
  24. </Head>
  25. <main>{props.children}</main>
  26. </div>
  27. </div>
  28. );
  29. }