aboutsummaryrefslogtreecommitdiffstats
path: root/modules/PageBase.tsx
blob: f6290c33497ea8a10bb813aa79fcc95830e09043 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import React from 'react';
import Head from 'next/head';

export type PageBaseProps = {
  children?: React.ReactNode;
  flex?: boolean;
};

const PageBase = (props: PageBaseProps) => {
  return (
    <div className="bg-black text-white flex flex-col flex-1">
      <Head>
        <link rel="shortcut icon" href="/favicon.png" type="image/png" />
      </Head>      <div
        className={[
          'container mx-auto mt-4 flex-1',
          props.flex ? 'flex flex-col' : '',
        ].join(' ')}
      >
        {props.children}
      </div>
      {/* <div className="mt-6 text-gray-500 text-center">
        Made with 🍝 by{' '}
        <a
          href="https://twitter.com/kitsune_cw"
          className="hover:underline"
          target="_blank"
          rel="noreferrer noopener nofollow"
        >
          kitsune
        </a>
        .
      </div>
      <div className="mb-6 text-center">
        <a
          href="https://gitlab.com/aonahara/archive-browser"
          className="text-gray-500 hover:underline"
          target="_blank"
          rel="noreferrer noopener nofollow"
        >
          Source code
        </a>
      </div> */}
    </div>
  );
};

export default PageBase;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage