feat: make portfolio frame fluid below 1440px

This commit is contained in:
2026-09-05 17:08:35 +08:00
parent cf749e262a
commit d9b66318f7
10 changed files with 64 additions and 20 deletions

View File

@@ -1,12 +1,12 @@
.educationSection { .educationSection {
position: relative; position: relative;
width: 1440px; width: 100%;
padding-top: 60px; padding-top: 60px;
padding-bottom: 32px; padding-bottom: 32px;
} }
.card { .card {
width: 1320px; width: 100%;
background-color: transparent; background-color: transparent;
border: 1px solid var(--border-default); border: 1px solid var(--border-default);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);

View File

@@ -1,6 +1,6 @@
.experienceSection { .experienceSection {
position: relative; position: relative;
width: 1440px; width: 100%;
padding-top: 60px; padding-top: 60px;
padding-bottom: 80px; padding-bottom: 80px;
} }

View File

@@ -1,6 +1,7 @@
.footerSection { .footerSection {
position: relative; position: relative;
width: 1440px; width: 100%;
max-width: 1440px;
height: 480px; height: 480px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@@ -14,7 +15,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 1440px; width: 100%;
height: 480px; height: 480px;
z-index: 1; z-index: 1;
} }

View File

@@ -1,6 +1,6 @@
.heroContentWrapper { .heroContentWrapper {
position: relative; position: relative;
width: 1440px; width: 100%;
height: 680px; height: 680px;
z-index: 5; z-index: 5;
} }

View File

@@ -1,6 +1,6 @@
.milestonesSection { .milestonesSection {
position: relative; position: relative;
width: 1440px; width: 100%;
padding-top: 40px; padding-top: 40px;
padding-bottom: 80px; padding-bottom: 80px;
} }
@@ -12,7 +12,7 @@
} }
.certCard { .certCard {
width: 1320px; width: 100%;
background-color: transparent; background-color: transparent;
border: 1px solid var(--border-default); border: 1px solid var(--border-default);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);

View File

@@ -1,6 +1,6 @@
.projectsSection { .projectsSection {
position: relative; position: relative;
width: 1440px; width: 100%;
padding-top: 60px; padding-top: 60px;
padding-bottom: 80px; padding-bottom: 80px;
} }

View File

@@ -1,6 +1,6 @@
.journeySection { .journeySection {
position: relative; position: relative;
width: 1440px; width: 100%;
height: 1050px; height: 1050px;
/* Seamless continuation of scenic artwork */ /* Seamless continuation of scenic artwork */
} }

View File

@@ -1,6 +1,7 @@
.scenicContainer { .scenicContainer {
position: relative; position: relative;
width: 1440px; width: 100%;
max-width: 1440px;
height: 1730px; height: 1730px;
overflow: hidden; overflow: hidden;
background-color: var(--bg-page); background-color: var(--bg-page);
@@ -10,7 +11,7 @@
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 1440px; width: 100%;
height: 1576px; height: 1576px;
z-index: 1; z-index: 1;
pointer-events: none; pointer-events: none;
@@ -19,6 +20,6 @@
.artworkImage { .artworkImage {
object-fit: contain; object-fit: contain;
object-position: top center; object-position: top center;
width: 1440px; width: 100%;
height: 1576px; height: 1576px;
} }

View File

@@ -1,12 +1,12 @@
.skillsSection { .skillsSection {
position: relative; position: relative;
width: 1440px; width: 100%;
padding-top: 60px; padding-top: 60px;
padding-bottom: 80px; padding-bottom: 80px;
} }
.mainCard { .mainCard {
width: 1320px; width: 100%;
background-color: transparent; background-color: transparent;
border: 1px solid var(--border-default); border: 1px solid var(--border-default);
border-radius: var(--radius-xl); border-radius: var(--radius-xl);

View File

@@ -26,21 +26,22 @@ html[data-theme="dark"] {
body { body {
width: 100%; width: 100%;
min-width: 1440px; min-width: 320px;
background-color: var(--bg-page); background-color: var(--bg-page);
color: var(--text-primary); color: var(--text-primary);
font-family: 'IRANYekanXVF', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-family: 'IRANYekanXVF', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-synthesis: none; font-synthesis: none;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
overflow-x: auto; overflow-x: hidden;
transition: background-color 0.25s ease, color 0.25s ease; transition: background-color 0.25s ease, color 0.25s ease;
} }
/* Master 1440px Fixed Canvas */ /* Master 1440px Fixed Canvas */
.desktop-canvas { .desktop-canvas {
width: 1440px; width: 100%;
min-width: 1440px; max-width: var(--layout-frame);
min-width: 0;
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
background-color: var(--bg-page); background-color: var(--bg-page);
@@ -49,11 +50,39 @@ body {
/* 1320px Inner Content Container with 60px Gutters */ /* 1320px Inner Content Container with 60px Gutters */
.content-container { .content-container {
width: 1320px; width: calc(100% - (2 * var(--layout-page-gutter)));
max-width: var(--layout-container);
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
} }
@media (max-width: 1024px) {
:root {
--layout-page-gutter: 32px;
--layout-section-padding: 80px;
}
}
@media (max-width: 640px) {
:root {
--layout-page-gutter: 20px;
--layout-section-padding: 64px;
}
.section-header {
margin-bottom: var(--space-6);
}
.section-title {
font-size: 28px;
line-height: 38px;
}
.section-underline {
width: 88px;
}
}
/* Common Section Header Component Styles */ /* Common Section Header Component Styles */
.section-header { .section-header {
display: flex; display: flex;
@@ -153,6 +182,19 @@ body {
box-shadow: 0 4px 12px var(--shadow-color); box-shadow: 0 4px 12px var(--shadow-color);
} }
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*, *::before, *::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}
a { a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;