mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Initial commit.
This commit is contained in:
commit
f7f0c05e12
27 changed files with 13028 additions and 0 deletions
5
components/footer.js
Normal file
5
components/footer.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import React from 'react';
|
||||
|
||||
export default function Footer() {
|
||||
return <footer className="container">Footer</footer>;
|
||||
}
|
||||
7
components/header.js
Normal file
7
components/header.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
export default function Header() {
|
||||
return <header className="container">
|
||||
<h1>umami</h1>
|
||||
</header>;
|
||||
}
|
||||
23
components/layout.js
Normal file
23
components/layout.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import React from 'react';
|
||||
import Head from 'next/head';
|
||||
import Header from 'components/header';
|
||||
import Footer from 'components/footer';
|
||||
|
||||
export default function Layout({ title, children }) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>umami{title && ` - ${title}`}</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<script async defer data-website-id="865234ad-6a92-11e7-8846-b05adad3f099" src="/umami.js" />
|
||||
</Head>
|
||||
<Header />
|
||||
<main className="container">{children}</main>
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue