Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
portfolio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QuanMB
portfolio
Commits
77d8d700
Commit
77d8d700
authored
Jun 29, 2026
by
QuanMB
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(hero): replace code card mock with real avatar image
parent
0b5eadcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
26 deletions
+14
-26
avatar.jpg
public/avatar/avatar.jpg
+0
-0
page.tsx
src/app/page.tsx
+0
-2
Hero.tsx
src/components/Hero/Hero.tsx
+14
-24
No files found.
public/avatar/avatar.jpg
0 → 100644
View file @
77d8d700
27.4 KB
src/app/page.tsx
View file @
77d8d700
...
...
@@ -37,8 +37,6 @@ export default function Home() {
</
div
>
<
div
className=
"flex gap-6"
>
<
a
href=
"#home"
className=
"text-text-secondary hover:text-text-primary transition-colors duration-300"
>
Back to top
</
a
>
<
span
>
•
</
span
>
<
span
>
Made with Next.js
&
Tailwind CSS
</
span
>
</
div
>
</
div
>
</
footer
>
...
...
src/components/Hero/Hero.tsx
View file @
77d8d700
"use client"
;
import
Image
from
"next/image"
;
export
default
function
Hero
()
{
const
handleScrollTo
=
(
e
:
React
.
MouseEvent
<
HTMLAnchorElement
>
,
id
:
string
)
=>
{
e
.
preventDefault
();
...
...
@@ -79,30 +81,18 @@ export default function Hero() {
{
/* Subtle morphing background gradient blob */
}
<
div
className=
"absolute w-[260px] h-[260px] sm:w-[340px] sm:h-[340px] bg-gradient-to-br from-primary/15 to-secondary/5 rounded-full filter blur-[2px] opacity-80 animate-morph"
></
div
>
{
/* Floating Dark IDE Code Card */
}
<
div
className=
"absolute bg-[#111827] border border-[#1f2937] p-5 rounded-2xl shadow-[0_20px_50px_rgba(0,0,0,0.5)] animate-float flex flex-col gap-3.5 w-[230px] sm:w-[270px] left-0 top-8"
>
<
div
className=
"flex items-center justify-between border-b border-white/5 pb-3"
>
<
div
className=
"flex items-center gap-1.5"
>
<
span
className=
"w-2.5 h-2.5 rounded-full bg-red-500/40"
></
span
>
<
span
className=
"w-2.5 h-2.5 rounded-full bg-yellow-500/40"
></
span
>
<
span
className=
"w-2.5 h-2.5 rounded-full bg-green-500/40"
></
span
>
</
div
>
<
span
className=
"text-[10px] text-slate-500 font-mono"
>
quan.json
</
span
>
</
div
>
<
div
className=
"flex flex-col gap-1.5 font-mono text-[10px] sm:text-[11px] leading-relaxed text-slate-400"
>
<
div
>
<
span
className=
"text-primary"
>
const
</
span
>
<
span
className=
"text-white"
>
intern
</
span
>
=
{
</
div
>
<
div
className=
"pl-4"
>
name:
<
span
className=
"text-emerald-400"
>
"
Bui Minh Quan
"
</
span
>
,
</
div
>
<
div
className=
"pl-4"
>
gpa:
<
span
className=
"text-secondary"
>
3.42
</
span
>
,
</
div
>
<
div
className=
"pl-4"
>
stack:
<
span
className=
"text-emerald-400"
>
"
Spring Boot
&
React
"
</
span
>
</
div
>
<
div
>
}
;
</
div
>
{
/* Floating Avatar Container */
}
<
div
className=
"absolute w-[200px] h-[200px] sm:w-[240px] sm:h-[240px] rounded-full overflow-hidden border-4 border-surface-border bg-surface p-1.5 shadow-[0_20px_50px_rgba(0,0,0,0.3)] animate-float left-0 top-6 z-10 group"
>
<
div
className=
"relative w-full h-full rounded-full overflow-hidden"
>
{
/* Glowing background */
}
<
div
className=
"absolute inset-0 bg-gradient-to-tr from-primary to-secondary opacity-30 rounded-full blur-[2px] transition-transform duration-300 group-hover:scale-105"
></
div
>
<
Image
src=
"/avatar/avatar.jpg"
alt=
"Bui Minh Quan Avatar"
fill
className=
"object-cover rounded-full transition-transform duration-300 group-hover:scale-105"
priority
/>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment