Skip to content

Commit

Permalink
Hero image tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Jan 8, 2025
1 parent 6191a9b commit 30a2a24
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import HeroImage from '../components/HeroImage'

export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen pb-20 pt-[20%] gap-16 font-[family-name:var(--font-geist-sans)]">
<HeroImage />
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
10 changes: 7 additions & 3 deletions components/HeroImage.tsx
Original file line number Diff line number Diff line change
@@ -5,15 +5,19 @@ export default function HeroImage() {
<div className="relative w-full h-0 pb-[56.25%]">
<Image
className="absolute top-0 left-0 w-full h-full object-cover"
src="/hero.jpg"
src="/hero.png"
alt="Hero Image"
layout="fill"
priority
/>
<div className="absolute top-0 left-0 w-full h-full flex flex-col items-center justify-center bg-black bg-opacity-50 text-white">
<h1 className="text-4xl font-bold">Welcome to Bear Creek Honey Farm</h1>
<p className="mt-4 text-lg">Experience the best honey in town</p>
<button className="mt-6 px-4 py-2 bg-yellow-500 text-black rounded">Learn More</button>
<p className="mt-4 text-lg">
The world's best AI-generated bed and breakfast
</p>
<button className="mt-6 px-4 py-2 bg-yellow-500 text-black rounded">
Reserve today!
</button>
</div>
</div>
)
3 changes: 2 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
output: 'export'
output: 'export',
images: { unoptimized: true }
}

export default nextConfig
Binary file added public/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30a2a24

Please sign in to comment.