mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
center hero
This commit is contained in:
+14
-3
@@ -1,9 +1,13 @@
|
|||||||
import { Link } from "@tanstack/react-router";
|
import { Link } from "@tanstack/react-router";
|
||||||
|
import { Image } from "@unpic/react";
|
||||||
import Feature from "#/components/Feature.tsx";
|
import Feature from "#/components/Feature.tsx";
|
||||||
import Section from "#/components/Section.tsx";
|
import Section from "#/components/Section.tsx";
|
||||||
|
|
||||||
|
import examplePdf1 from "@/assets/images/examplepdf1.webp?url";
|
||||||
|
import examplePdf2 from "@/assets/images/examplepdf2.webp?url";
|
||||||
|
|
||||||
const Home = () => (
|
const Home = () => (
|
||||||
<main className="page-wrap px-4 pb-8 pt-14">
|
<main className="px-4 pb-8 pt-14 place-self-center">
|
||||||
<section
|
<section
|
||||||
id="hero"
|
id="hero"
|
||||||
className="grid max-w-screen-2xl items-center gap-8 p-8 text-center md:grid-cols-2 md:text-left"
|
className="grid max-w-screen-2xl items-center gap-8 p-8 text-center md:grid-cols-2 md:text-left"
|
||||||
@@ -26,8 +30,15 @@ const Home = () => (
|
|||||||
Get Started
|
Get Started
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className="example-pdfs">
|
||||||
<p>example pdfs</p>
|
<Image src={examplePdf2} alt="Example PDF 2" width={500} height={500} />
|
||||||
|
<Image
|
||||||
|
src={examplePdf1}
|
||||||
|
alt="Example PDF 1"
|
||||||
|
width={500}
|
||||||
|
height={500}
|
||||||
|
priority={true}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<Section
|
<Section
|
||||||
|
|||||||
@@ -76,6 +76,23 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.example-pdfs {
|
||||||
|
max-width: 450px;
|
||||||
|
position: relative;
|
||||||
|
justify-self: center;
|
||||||
|
transform: translate(-10%, 10%);
|
||||||
|
img {
|
||||||
|
width: 300px;
|
||||||
|
box-shadow: -1px 1px 62px -18px black;
|
||||||
|
&:nth-child(2) {
|
||||||
|
position: absolute;
|
||||||
|
top: -10%;
|
||||||
|
right: -20%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*a {*/
|
/*a {*/
|
||||||
/* text-decoration-thickness: 1px;*/
|
/* text-decoration-thickness: 1px;*/
|
||||||
/* text-underline-offset: 2px;*/
|
/* text-underline-offset: 2px;*/
|
||||||
|
|||||||
Reference in New Issue
Block a user