Skip to content

Commit

Permalink
Merge pull request #2 from SweetmanTech/sweets/landing
Browse files Browse the repository at this point in the history
I init basic LandingCard.
  • Loading branch information
sweetmantech authored Nov 29, 2023
2 parents ee6c8c4 + ff392e8 commit fa9a365
Show file tree
Hide file tree
Showing 13 changed files with 83 additions and 14 deletions.
41 changes: 41 additions & 0 deletions components/LandingCard/LandingCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* eslint-disable jsx-a11y/anchor-is-valid */
import Image from "next/image"
import Link from "next/link"

const LandingCard = ({ title, img = "/images/landing/web3.jpg", href }) => (
<Link href={href}>
<a className="relative w-[500px] h-[333px] p-4 flex flex-col items-center justify-center">
<div className="absolute inset-0 z-0">
<Image
src={img}
alt={title}
layout="fill"
objectFit="cover"
objectPosition="center"
placeholder="blur"
blurDataURL={img}
/>
</div>
<div className="absolute inset-0 bg-black opacity-75" />
<div className="absolute top-2 left-2 z-20">
<p className="text-white text-xs">CCTV</p>
</div>
<div className="absolute top-2 right-2 z-20 flex items-center">
<div className="w-3 h-3 bg-red-500 rounded-full mr-2" />
<p className="text-white text-xs mr-2">REC</p>
<div className="w-4 h-4 bg-gray-300 rounded-sm" />
</div>
<div className="absolute bottom-2 left-2 z-20">
<p className="text-white text-xs">12:12PM Miami, FL</p>
</div>
<div className="absolute bottom-2 right-2 z-20">
<p className="text-white text-xs">12/12/2023</p>
</div>
<div className="relative z-10 p-6">
<h2 className="text-white text-5xl font-bold mb-2">{title}</h2>
</div>
</a>
</Link>
)

export default LandingCard
3 changes: 3 additions & 0 deletions components/LandingCard/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import LandingCard from "./LandingCard"

export default LandingCard
9 changes: 0 additions & 9 deletions components/Pages/GamePage.tsx

This file was deleted.

16 changes: 16 additions & 0 deletions components/Pages/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import LandingCard from "../LandingCard"

const LandingPage = () => (
<div className="flex flex-col gap-3 justify-center items-center h-screen bg-black text-white font-dresden">
<div className="flex flex-wrap gap-3 justify-center items-center w-full">
<LandingCard title="ABOUT" img="/images/landing/about.jpg" href="/about" />
<LandingCard title="MUSIC" img="/images/landing/music.jpg" href="/music" />
</div>
<div className="flex flex-wrap gap-3 justify-center items-center w-full">
<LandingCard title="WEB 3" img="/images/landing/webThree.jpg" href="/web3" />
<LandingCard title="PRESS" img="/images/landing/press.jpg" href="/press" />
</div>
</div>
)

export default LandingPage
5 changes: 5 additions & 0 deletions pages/about/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import LandingPage from "../../components/Pages/LandingPage"

const About = () => <LandingPage />

export default About
8 changes: 3 additions & 5 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const Landing = () => (
<div className="flex flex-col justify-center items-center h-[100vh] text-white font-dresden text-7xl">
HENO.
</div>
)
import LandingPage from "../components/Pages/LandingPage"

const Landing = () => <LandingPage />

export default Landing
5 changes: 5 additions & 0 deletions pages/music/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import LandingPage from "../../components/Pages/LandingPage"

const Music = () => <LandingPage />

export default Music
5 changes: 5 additions & 0 deletions pages/press/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import LandingPage from "../../components/Pages/LandingPage"

const Press = () => <LandingPage />

export default Press
5 changes: 5 additions & 0 deletions pages/web3/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import LandingPage from "../../components/Pages/LandingPage"

const Web3 = () => <LandingPage />

export default Web3
Binary file added public/images/landing/about.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/landing/music.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/landing/press.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/landing/webThree.jpg
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 fa9a365

Please sign in to comment.