aboutsummaryrefslogtreecommitdiffstats
path: root/modules/PageBase.tsx
blob: 1ad0fe70aab6e895024e2f99d27e17cecfcced48 (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
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="py-6 text-center">
        <a
          href="https://github.com/pinapelz/ragtag-player-remote"
          className="text-gray-500 hover:underline"
          target="_blank"
          rel="noreferrer noopener nofollow"
        >
          A goofy ahh fork of ragtag-player
        </a>
      </div>
    </div>
  );
};

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