This commit is contained in:
Artur Akmalov
2023-04-26 13:51:59 +05:00
parent a2b0ac0e74
commit 10bf082552
18 changed files with 36906 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
import * as React from "react"
import { Link } from "gatsby"
const pageStyles = {
color: "#232129",
padding: "96px",
fontFamily: "-apple-system, Roboto, sans-serif, serif",
}
const headingStyles = {
marginTop: 0,
marginBottom: 64,
maxWidth: 320,
}
const paragraphStyles = {
marginBottom: 48,
}
const codeStyles = {
color: "#8A6534",
padding: 4,
backgroundColor: "#FFF4DB",
fontSize: "1.25rem",
borderRadius: 4,
}
const NotFoundPage = () => {
return (
<main style={pageStyles}>
<h1 style={headingStyles}>Page not found</h1>
<p style={paragraphStyles}>
Sorry 😔, we couldnt find what you were looking for.
<br />
{process.env.NODE_ENV === "development" ? (
<>
<br />
Try creating a page in <code style={codeStyles}>src/pages/</code>.
<br />
</>
) : null}
<br />
<Link to="/">Go home</Link>.
</p>
</main>
)
}
export default NotFoundPage
export const Head = () => <title>Not found</title>
+18
View File
@@ -0,0 +1,18 @@
import * as React from "react"
import Header from "../components/header"
const AboutPage = () => {
return (
<main>
<Header></Header>
<h1 className="text-3xl font-bold">
About page
</h1>
</main>
)
}
export const Head = () => <title>About Page</title>
export default AboutPage
+18
View File
@@ -0,0 +1,18 @@
import * as React from "react"
import Header from "../components/header"
const BlogPage = () => {
return (
<main>
<Header></Header>
<h1 className="text-3xl font-bold">
Blog page
</h1>
</main>
)
}
export const Head = () => <title>Blog Page</title>
export default BlogPage
+24
View File
@@ -0,0 +1,24 @@
import * as React from "react"
// import { Link } from 'gatsby'
import Footer from "../components/footer"
import Header from "../components/header"
const IndexPage = () => {
return (
<main>
<Header />
<div className="mx-auto max-w-screen-xl">
<div className="ml-7 mt-6 justify-between">
<h1>Welcome to my Gatsby site!</h1>
<p>I'm making this by following the Gatsby Tutorial.</p>
</div>
</div>
<Footer />
</main>
)
}
export const Head = () => <title>Home Page</title>
export default IndexPage