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
+21
View File
@@ -0,0 +1,21 @@
import React from 'react'
export const Footer = () => {
const year = new Date().getFullYear()
// const { biolinkUrl } = useSiteMetadata()
return (
<footer className="mt-4 flex items-center justify-center gap-2 bg-surface py-6 shadow-inner">
<div>© {year}</div>
{/* <a href={biolinkUrl} className="!no-underline">
Stephen Cavender
</a> */}
<h2 className="text-2xl font-bold">
Footer
</h2>
{/* <Ichthys alt="ichthys" className="w-8" /> */}
</footer>
)
}
export default Footer
+42
View File
@@ -0,0 +1,42 @@
import React from 'react'
import { Link } from 'gatsby'
import Logo from '../images/icon.png'
//mr-4 text-2xl text-gray-500 hover:no-underline shrink-0 font-normal
export const Header = () => {
return (
<header className="bg-white border-gray-200 dark:bg-gray-900">
<div className="mx-auto max-w-screen-xl">
<div className="mx-6 flex justify-between">
<Link className="flex gap-1 text-lg" to="/">
<img alt="logo" src={Logo} className="w-10 object-contain" />
<span className="ml-3 hidden shrink-0 text-gray-800 py-5 text-3xl sm:block">Artur Akmalov</span>
</Link>
<nav className="flex gap-6 py-5">
<Link
className="border-b-[3px] border-transparent text-lg"
to="/"
>
Home
</Link>
<Link
className="border-b-[3px] border-transparent text-lg"
to="/blog"
>
Blog
</Link>
<Link
className="border-b-[3px] border-transparent text-lg"
to="/about"
>
About
</Link>
</nav>
</div>
</div>
</header>
)
}
export default Header
+3
View File
@@ -0,0 +1,3 @@
export * from './footer'
export * from './header'
export * from './layout'
+15
View File
@@ -0,0 +1,15 @@
import React from 'react'
import { Header } from './header'
import { Footer } from './footer'
export const Layout = ({ children }) => {
return (
<div className="prose prose-sm min-w-full bg-bg sm:prose">
<Header />
<main className="mx-auto min-h-screen max-w-2xl px-2 sm:px-4">
{children}
</main>
<Footer />
</div>
)
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

+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
+3
View File
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;