mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-05-20 00:20:28 +00:00
init
This commit is contained in:
@@ -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 couldn’t 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>
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user