Add initial splash image

Add just dark splash image to confirm container size. Needed to do this so that I could work out bugs in content rendering.
This commit is contained in:
Nick Bland 2022-05-15 23:34:47 +10:00
parent 3c5aece1fa
commit 5fd59191af
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C
2 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import type {NextPage} from 'next'; import type {NextPage} from 'next';
import Image from "next/image";
import NavBar from "../components/navbar"; import NavBar from "../components/navbar";
import {Footer} from "../components/footer" import {Footer} from "../components/footer"
@ -6,13 +7,20 @@ const Home: NextPage = () => {
return ( return (
<div className=""> <div className="">
<NavBar title="Home | nickbland.dev"></NavBar> <NavBar title="Home | nickbland.dev"></NavBar>
<main className=""> <main className="">
{/* MAIN BANNER SECTION BELOW */} {/* MAIN BANNER SECTION BELOW */}
<div className=""> <div className="container relative min-w-full min-h-screen flex flex-col items-center py-12 ">
<Image
className=""
src="/splashDarkFinal.jpg"
alt="Dark background splash screen"
layout="fill"
quality="100"
priority
/>
</div> </div>
{/* <div className="w-full mt-8 relat" */}
</main> </main>
<Footer></Footer> <Footer></Footer>
</div> </div>

View File

@ -25,6 +25,10 @@ module.exports = {
}, },
}, },
display: ['dark'], display: ['dark'],
backgroundImage: {
'splashDark': "url('/splashDarkFinal.jpg')",
'splashLight': "url('/splashLightFinal.jpg')",
},
}, },
}, },
plugins: [], plugins: [],