Skip to content

Commit d966902

Browse files
committed
⚒️ Change Recent Explored
1 parent 8a54017 commit d966902

2 files changed

Lines changed: 7 additions & 28 deletions

File tree

app/page.tsx

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
'use client';
2-
import { GithubIcon } from "@/components/icons/github";
32
import { SearchIcon } from "@/components/icons/search";
4-
import { VisualStudioCodeIcon } from "@/components/icons/vscode";
5-
import { WindowsIcon } from "@/components/icons/windows";
63
import Image from "next/image";
74
import { useEffect, useState } from 'react';
85
import { useRouter } from 'next/navigation';
96
import { LoaderIcon } from "lucide-react";
107

118
const menuItems = [
12-
// {
13-
// name: 'Windows',
14-
// href: '#',
15-
// icon: WindowsIcon,
16-
// className: 'max-sm:size-4 size-7',
17-
// },
189
{
1910
name: 'Sophat LEAT',
2011
href: 'https://google.com/search?q=sophat+leat',
@@ -45,18 +36,6 @@ const menuItems = [
4536
icon: SearchIcon,
4637
className: 'text-gray-500 size-4',
4738
},
48-
// {
49-
// name: 'GitHub',
50-
// href: '#',
51-
// icon: GithubIcon,
52-
// className: 'max-sm:size-4 text-gray-600 size-7',
53-
// },
54-
// {
55-
// name: 'VS Code',
56-
// href: '#',
57-
// icon: VisualStudioCodeIcon,
58-
// className: 'max-sm:size-4 text-blue-500 size-7 mt-0.5',
59-
// },
6039
];
6140

6241

@@ -112,33 +91,33 @@ export default function HomePage() {
11291

11392
return (
11493
<main className="min-h-screen font-sans relative bg-linear-to-b from-amber-50 to-amber-100 text-center">
94+
<Image src="/angkor-wat-cambodia.jpg" alt="Background" fill className="absolute pointer-events-none opacity-7 inset-0 object-cover" />
11595
<div className="flex flex-col gap-3 items-center justify-center min-h-screen">
11696

117-
<div className="flex justify-center max-sm:mt-5 flex-col mb-5">
97+
<div className="flex justify-center max-sm:mt-10 flex-col mb-5">
11898
<p className="leading-4 text-sm mb-2">{greetings()}, Welcome back</p>
11999
<time dateTime="" className="max-sm:text-3xl text-6xl font-bold"> {formatTime(currentTime)}</time>
120100
<p className="max-sm:text-lg text-foreground/70 text-2xl mt-1">{formatDate(currentTime)}</p>
121101
</div>
122102

123103
<div className="flex w-full px-5 flex-col max-sm:mt-2 mt-6 justify-center gap-3">
124-
<div className="max-sm:size-20 relative size-32 bg-gray-100 rounded-full mx-auto mb-4 flex items-center justify-center ring-2 ring-amber-200 ring-offset-4">
125-
{/* <WindowsIcon className="max-sm:size-10 size-12" /> */}
104+
<div className="max-sm:size-20 relative size-32 bg-gray-100 rounded-full mx-auto mb-4 flex items-center justify-center ring-2 ring-amber-300 ring-offset-4">
126105
<Image src="/profile.png" alt="Avatar" width={400} height={400} className="w-full h-full p-2 rounded-2xl" />
127106
<Image src="/cambodia-flag-icon-128.png" alt="Avatar" width={120} height={120} className="absolute ring-2 bottom-1 -right-2 ring-amber-200 rounded w-9 hover:scale-110 transition-all duration-300 h-6 object-cover" />
128107
</div>
129108
<div className="max-sm:flex-col max-sm:mt-5 mt-9 items-center flex-col flex mx-auto justify-center gap-0">
130109
<h1 className="font-bold font-sans text-xl">Sophat LEAT</h1>
131110
</div>
132111

133-
<div className="flex w-full max-w-60 mx-auto justify-center max-sm:gap-1 gap-2 shadow-2xl">
112+
<div className="flex w-full max-w-60 mx-auto justify-center max-sm:gap-2 gap-2 shadow-2xl">
134113
<input type="password" className="text-base leading-5 font-black tracking-[3px] bg-background w-full px-3 py-1.5 rounded-lg rounded-r-sm outline-0 ring-2 ring-amber-200/70 focus-within:ring-amber-400" placeholder="PIN" value={pin} onChange={(e) => setPin(e.target.value)} />
135114
<button type="submit" disabled={loggingIn} onClick={loginHandler} className="text-base transition-all duration-300 shrink-0 bg-amber-600 disabled:opacity-50 cursor-pointer text-white leading-5 font-medium px-3 py-1.5 rounded-lg rounded-l-sm ring-2 ring-amber-300 focus-within:ring-amber-400">
136115
{
137116
loggingIn
138117
? <span className="flex gap-1 items-center transition-all duration-300">
139118
<LoaderIcon className="size-4 animate-spin" />
140-
{'Sign In'}
141-
</span> : 'Sign In'
119+
{'Check'}
120+
</span> : 'Check'
142121
}
143122
</button>
144123
</div>
@@ -149,7 +128,7 @@ export default function HomePage() {
149128
<ul className="flex flex-wrap w-full max-w-3xl overflow-x-auto pb-5 mx-auto justify-center py-1.5 gap-x-8">
150129
{menuItems.map((item) => (
151130
<li key={item.name} className="flex items-center gap-0.5 justify-center">
152-
<a href={item.href} className="relative flex flex-col items-center justify-center size-9 rounded-lg hover:bg-white hover:shadow-lg duration-200 shadow-black/10 transition-colors">
131+
<a href={item.href} target="_top" className="relative flex flex-col items-center justify-center size-9 rounded-lg hover:bg-white hover:shadow-lg duration-200 shadow-black/10 transition-colors">
153132
<item.icon className={item.className} />
154133
</a>
155134
<span className="max-sm:text-xs whitespace-nowrap mt-0.5">{item.name}</span>

public/angkor-wat-cambodia.jpg

9.13 MB
Loading

0 commit comments

Comments
 (0)