Skip to content

Commit

Permalink
Add New Images
Browse files Browse the repository at this point in the history
  • Loading branch information
aftabrehan committed Jan 16, 2024
1 parent 1b9149c commit 3160d6f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
'use client'

import Image from 'next/image'
import Link from 'next/link'
import { useTheme } from 'next-themes'

import DemoGif from '@/images/landingPage/demo.jpeg'
import DemoDark from '@/images/landingPage/demo-dark.png'
import DemoLight from '@/images/landingPage/demo-light.png'

export default function Home() {
const { resolvedTheme } = useTheme()

return (
<main className="">
<main>
<div className="realtive isolate pt-14 dark:bg-gray-900">
<div
className="absolute inset-x-0 top-28 -z-10 transform-gpu overflow-hidden blur-3xl"
Expand Down Expand Up @@ -51,12 +57,15 @@ export default function Home() {
<div className="mt-16 flow-root sm:mt-24">
<div className="-m-2 rounded-xl bg-gray-900/5 p-2 ring-1 ring-inset ring-gray-900/10 lg:-m-4 lg:rounded-2xl lg:p-4">
<Image
unoptimized
src={DemoGif}
src={resolvedTheme === 'dark' ? DemoDark : DemoLight}
alt="App screenshot"
width={2434}
height={1442}
className="rounded-md shadow-2xl ring-1 ring-gray-900/10"
className={`rounded-md shadow-2xl ring-1 ring-gray-900/10 ${
(!resolvedTheme || resolvedTheme === 'system') &&
'opacity-0'
}`}
priority
/>
</div>
</div>
Expand Down
Binary file added images/landingPage/demo-dark.png
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 images/landingPage/demo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/landingPage/demo.jpeg
Binary file not shown.

0 comments on commit 3160d6f

Please sign in to comment.