Update: About Page draft

- Better design
- Better scrolling
This commit is contained in:
Candifloss 2025-05-26 06:42:18 +05:30
parent 22ae790de7
commit 201fb0335c
3 changed files with 208 additions and 643 deletions

View File

@ -1,256 +1,92 @@
body { html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: #333;
overflow-x: hidden;
scroll-behavior: smooth; scroll-behavior: smooth;
height: 100%;
font-family: sans-serif;
background: #232323;
color: #fff;
} }
.portfolio { main {
scroll-snap-type: y mandatory; scroll-snap-type: y mandatory;
overflow-y: scroll; overflow-y: scroll;
height: 100vh; height: 100vh;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
overscroll-behavior-y: contain;
} }
.portfolio__section { .section {
scroll-snap-align: start; scroll-snap-align: start;
position: relative;
height: 100vh; height: 100vh;
width: 100%;
overflow: hidden;
}
.portfolio__section .content {
position: relative;
z-index: 2;
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center;
padding: 2rem;
box-sizing: border-box;
position: relative;
} }
.portfolio__section .bg-image { .section::before {
content: "";
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; right: 0;
height: 100%; bottom: 0;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
filter: blur(5px);
opacity: 0.2;
z-index: 0;
}
.section .content {
position: relative;
z-index: 1; z-index: 1;
}
.portfolio__section .bg-image::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
.portfolio__section--intro {
text-align: center; text-align: center;
} max-width: 800px;
.portfolio__section--intro .intro-title {
font-size: 3.5rem;
margin-bottom: 1rem;
color: #fff;
}
.portfolio__section--intro .intro-title .highlight {
color: #3498db;
}
.portfolio__section--intro .intro-subtitle {
font-size: 1.5rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 2rem;
}
.portfolio__section--intro .social-links {
display: flex;
justify-content: center;
gap: 1.5rem;
}
.portfolio__section--intro .social-links .social-link {
color: #fff;
text-decoration: none;
font-size: 1.1rem;
transition: color 0.3s;
}
.portfolio__section--intro .social-links .social-link:hover {
color: #3498db;
}
.portfolio__section .section-title {
font-size: 2.5rem;
margin-bottom: 2rem;
color: #fff;
position: relative;
display: inline-block;
}
.portfolio__section .section-title::after {
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 50px;
height: 3px;
background: #3498db;
}
.portfolio__section .about-content {
display: flex;
gap: 2rem;
align-items: center;
}
.portfolio__section .about-content .about-text {
flex: 1;
color: #fff;
line-height: 1.6;
}
.portfolio__section .about-content .about-image {
flex: 1;
}
.portfolio__section .about-content .about-image img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.portfolio__section .timeline {
position: relative;
padding-left: 2rem;
color: #fff;
}
.portfolio__section .timeline::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 2px;
background: #3498db;
}
.portfolio__section .timeline-item {
margin-bottom: 2rem;
position: relative;
}
.portfolio__section .timeline-item::before {
content: "";
position: absolute;
left: -2.5rem;
top: 0.5rem;
width: 1rem;
height: 1rem;
border-radius: 50%;
background: #fff;
border: 2px solid #3498db;
}
.portfolio__section .timeline-title {
font-size: 1.3rem;
margin-bottom: 0.3rem;
}
.portfolio__section .timeline-company {
font-style: italic;
margin-bottom: 0.5rem;
opacity: 0.8;
}
.portfolio__section .timeline-description {
line-height: 1.5;
}
.portfolio__section .projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.portfolio__section .project-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 10px;
padding: 1.5rem;
transition: transform 0.3s;
color: #fff;
}
.portfolio__section .project-card:hover {
transform: translateY(-5px);
}
.portfolio__section .project-title {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: #fff;
}
.portfolio__section .project-description {
margin-bottom: 1rem;
line-height: 1.5;
}
.portfolio__section .project-link {
color: #3498db;
text-decoration: none;
font-weight: bold;
}
.portfolio__section .project-link:hover {
text-decoration: underline;
}
.portfolio__section--footer {
background: #2c3e50;
}
.portfolio__section--footer .content {
text-align: center;
}
.portfolio__section--footer .contact-info {
margin-bottom: 2rem;
color: #fff;
}
.portfolio__section--footer .contact-info a {
color: #3498db;
text-decoration: none;
}
.portfolio__section--footer .contact-info a:hover {
text-decoration: underline;
}
.portfolio__section--footer .footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 2rem;
}
.portfolio__section--footer .footer-links .footer-link {
color: #fff;
text-decoration: none;
transition: color 0.3s;
}
.portfolio__section--footer .footer-links .footer-link:hover {
color: #3498db;
}
.portfolio__section--footer .copyright {
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
} }
@media (max-width: 768px) { .intro .content h1 {
.portfolio__section .content { font-size: 3rem;
padding: 1rem; margin-bottom: 1rem;
} }
.portfolio__section--intro .intro-title {
font-size: 2.5rem; h2 {
} font-size: 2rem;
.portfolio__section--intro .intro-subtitle { margin-bottom: 1rem;
font-size: 1.2rem; }
}
.portfolio__section .about-content { ul {
flex-direction: column; list-style: none;
} padding: 0;
.portfolio__section .about-content .about-text { }
order: 2; ul li {
} margin: 0.5rem 0;
.portfolio__section .about-content .about-image { }
order: 1;
margin-bottom: 1.5rem; footer {
} margin-top: auto;
.portfolio__section .section-title { padding: 1rem;
font-size: 2rem; font-size: 0.875rem;
} text-align: center;
opacity: 0.5;
}
#intro::before {
background-image: url("https://static.vecteezy.com/system/resources/thumbnails/013/384/142/small_2x/fabric-texture-abstract-pattern-black-and-white-textiles-backgrounds-photo.jpg");
}
#about::before {
background-image: url("https://wallpapers.com/images/hd/integral-project-management-cover-erpo8ef1af3wuquu.jpg");
}
#skills::before {
background-image: url("https://visme.co/blog/wp-content/uploads/2017/07/50-Beautiful-and-Minimalist-Presentation-Backgrounds-013.jpg");
}
#projects::before {
background-image: url("https://www.elegantthemes.com/blog/wp-content/uploads/2013/09/bg-1-full.jpg");
}
#contact::before {
background-image: url("https://wallpapers.com/images/hd/professional-zoom-background-3h69jq8rrky7f3tj.jpg");
} }

View File

@ -1,101 +1,55 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Your Name | Portfolio</title> <title>Shaheem - Portfolio</title>
<link rel="stylesheet" href="../css/about.css"> <link rel="stylesheet" href="../css/about.css" />
</head> </head>
<body> <body>
<main class="portfolio"> <main>
<!-- Intro Section --> <section class="section intro" id="intro">
<section class="portfolio__section portfolio__section--intro"> <div class="content">
<div class="content"> <h1>Hello, I'm Shaheem</h1>
<h1 class="intro-title">Hello, I'm <span class="highlight">Your Name</span></h1> <p>I like building cool stuff and learning new things.</p>
<p class="intro-subtitle">Job Title / Profession</p> </div>
<div class="social-links"> </section>
<a href="#" target="_blank" class="social-link">LinkedIn</a>
<a href="#" target="_blank" class="social-link">GitHub</a>
<a href="#" target="_blank" class="social-link">Twitter</a>
</div>
</div>
<div class="bg-image" style="background-image: url('https://visme.co/blog/wp-content/uploads/2017/07/50-Beautiful-and-Minimalist-Presentation-Backgrounds-013.jpg')"></div>
</section>
<!-- About Section --> <section class="section" id="about">
<section class="portfolio__section"> <div class="content">
<div class="content"> <h2>About Me</h2>
<h2 class="section-title">About Me</h2> <p>A short, informal overview about who you are and what you enjoy doing.</p>
<div class="about-content"> </div>
<div class="about-text"> </section>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris. Vivamus hendrerit arcu sed erat molestie vehicula.</p>
<p>Sed auctor neque eu tellus rhoncus ut eleifend nibh porttitor. Ut in nulla enim. Phasellus molestie magna non est bibendum non venenatis nisl tempor.</p>
</div>
<div class="about-image">
<img src="https://viewpointservices.com/wp-content/uploads/2019/07/GettyImages-1142192666-1.jpg" alt="Your Name">
</div>
</div>
</div>
<div class="bg-image" style="background-image: url('https://www.elegantthemes.com/blog/wp-content/uploads/2013/09/bg-1-full.jpg')"></div>
</section>
<!-- Experience Section --> <section class="section" id="skills">
<section class="portfolio__section"> <div class="content">
<div class="content"> <h2>Skills</h2>
<h2 class="section-title">Experience</h2> <ul>
<div class="timeline"> <li>Web development</li>
<div class="timeline-item"> <li>Linux & system tinkering</li>
<h3 class="timeline-title">Senior Developer</h3> <li>Rust, Python, Bash</li>
<p class="timeline-company">Tech Company Inc. (2020-Present)</p> <li>Designing interfaces, ricing desktops</li>
<p class="timeline-description">Lead developer for web applications.</p> </ul>
</div> </div>
<div class="timeline-item"> </section>
<h3 class="timeline-title">Web Developer</h3>
<p class="timeline-company">Digital Agency (2017-2020)</p>
<p class="timeline-description">Front-end development and UX design.</p>
</div>
</div>
</div>
<div class="bg-image" style="background-image: url('https://wallpapers.com/images/hd/professional-zoom-background-3h69jq8rrky7f3tj.jpg')"></div>
</section>
<!-- Projects Section --> <section class="section" id="projects">
<section class="portfolio__section"> <div class="content">
<div class="content"> <h2>Projects</h2>
<h2 class="section-title">Projects</h2> <p>A few interesting things I\u2019ve made or contributed to.</p>
<div class="projects-grid"> </div>
<div class="project-card"> </section>
<h3 class="project-title">Project 1</h3>
<p class="project-description">Description of project and technologies used.</p>
<a href="#" class="project-link">View Project</a>
</div>
<div class="project-card">
<h3 class="project-title">Project 2</h3>
<p class="project-description">Description of project and technologies used.</p>
<a href="#" class="project-link">View Project</a>
</div>
</div>
</div>
<div class="bg-image" style="background-image: url('https://wallpapers.com/images/hd/integral-project-management-cover-erpo8ef1af3wuquu.jpg')"></div>
</section>
<!-- Contact/Footer Section --> <section class="section" id="contact">
<section class="portfolio__section portfolio__section--footer"> <div class="content">
<div class="content"> <h2>Contact</h2>
<h2 class="section-title">Get In Touch</h2> <p>Email: you@example.com<br />Mastodon / GitHub / etc.</p>
<div class="contact-info"> </div>
<p>Email: <a href="mailto:you@example.com">you@example.com</a></p> <footer>
<p>Phone: (123) 456-7890</p> <p>&copy; 2025 Your Name</p>
</div> </footer>
<div class="footer-links"> </section>
<a href="#" class="footer-link">Resume (PDF)</a> </main>
<a href="#" class="footer-link">GitHub</a>
<a href="#" class="footer-link">LinkedIn</a>
</div>
<p class="copyright">© 2023 Your Name. All rights reserved.</p>
</div>
</section>
</main>
<script src="../js/smoothscroll.js" defer></script>
</body> </body>
</html> </html>

View File

@ -1,334 +1,109 @@
// Variables // styles.scss
$primary-color: #3498db;
$secondary-color: #2c3e50;
$text-color: #333;
$light-color: #fff;
$dark-color: #222;
$overlay-color: rgba(0, 0, 0, 0.6);
$blur-amount: 5px;
$section-padding: 2rem;
$max-content-width: 1200px;
// Mixins $font-stack: sans-serif;
@mixin flex-center { $background:#232323;
display: flex; $text-color: #fff;
justify-content: center;
align-items: center; html, body {
margin: 0;
padding: 0;
scroll-behavior: smooth;
height: 100%;
font-family: $font-stack;
background: $background;
color: $text-color;
} }
@mixin absolute-cover { main {
position: absolute; scroll-snap-type: y mandatory;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
// Base Styles
body {
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: $text-color;
overflow-x: hidden;
scroll-behavior: smooth;
}
// Portfolio Container
.portfolio {
scroll-snap-type: y mandatory;
overflow-y: scroll; overflow-y: scroll;
height: 100vh; height: 100vh;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
overscroll-behavior-y: contain;
} }
// Sections .section {
.portfolio__section { scroll-snap-align: start;
scroll-snap-align: start; height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
box-sizing: border-box;
position: relative;
&::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background-size: cover;
background-position: center;
filter: blur(5px);
opacity: 0.2;
z-index: 0;
}
.content {
position: relative; position: relative;
height: 100vh; z-index: 1;
width: 100%; text-align: center;
overflow: hidden; max-width: 800px;
}
.content { }
position: relative;
z-index: 2; .intro .content h1 {
max-width: $max-content-width; font-size: 3rem;
margin: 0 auto; margin-bottom: 1rem;
padding: $section-padding; }
height: 100%;
display: flex; h2 {
flex-direction: column; font-size: 2rem;
justify-content: center; margin-bottom: 1rem;
} }
// Background image styling ul {
.bg-image { list-style: none;
@include absolute-cover; padding: 0;
background-size: cover;
background-position: center; li {
z-index: 1; margin: 0.5rem 0;
}
&::after { }
content: '';
@include absolute-cover; footer {
background: $overlay-color; margin-top: auto;
backdrop-filter: blur($blur-amount); padding: 1rem;
-webkit-backdrop-filter: blur($blur-amount); font-size: 0.875rem;
} text-align: center;
} opacity: 0.5;
}
// Intro section specific styles
&--intro { // Example background images per section
text-align: center; #intro {
&::before {
.intro-title { background-image: url('https://static.vecteezy.com/system/resources/thumbnails/013/384/142/small_2x/fabric-texture-abstract-pattern-black-and-white-textiles-backgrounds-photo.jpg');
font-size: 3.5rem;
margin-bottom: 1rem;
color: $light-color;
.highlight {
color: $primary-color;
}
}
.intro-subtitle {
font-size: 1.5rem;
color: rgba($light-color, 0.8);
margin-bottom: 2rem;
}
.social-links {
display: flex;
justify-content: center;
gap: 1.5rem;
.social-link {
color: $light-color;
text-decoration: none;
font-size: 1.1rem;
transition: color 0.3s;
&:hover {
color: $primary-color;
}
}
}
}
// Section titles
.section-title {
font-size: 2.5rem;
margin-bottom: 2rem;
color: $light-color;
position: relative;
display: inline-block;
&::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
width: 50px;
height: 3px;
background: $primary-color;
}
}
// About section
.about-content {
display: flex;
gap: 2rem;
align-items: center;
.about-text {
flex: 1;
color: $light-color;
line-height: 1.6;
}
.about-image {
flex: 1;
img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
}
}
// Timeline/Experience
.timeline {
position: relative;
padding-left: 2rem;
color: $light-color;
&::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 2px;
background: $primary-color;
}
}
.timeline-item {
margin-bottom: 2rem;
position: relative;
&::before {
content: '';
position: absolute;
left: -2.5rem;
top: 0.5rem;
width: 1rem;
height: 1rem;
border-radius: 50%;
background: $light-color;
border: 2px solid $primary-color;
}
}
.timeline-title {
font-size: 1.3rem;
margin-bottom: 0.3rem;
}
.timeline-company {
font-style: italic;
margin-bottom: 0.5rem;
opacity: 0.8;
}
.timeline-description {
line-height: 1.5;
}
// Projects
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.project-card {
background: rgba($light-color, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 10px;
padding: 1.5rem;
transition: transform 0.3s;
color: $light-color;
&:hover {
transform: translateY(-5px);
}
}
.project-title {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: $light-color;
}
.project-description {
margin-bottom: 1rem;
line-height: 1.5;
}
.project-link {
color: $primary-color;
text-decoration: none;
font-weight: bold;
&:hover {
text-decoration: underline;
}
}
// Footer section
&--footer {
background: $secondary-color;
.content {
text-align: center;
}
.contact-info {
margin-bottom: 2rem;
color: $light-color;
a {
color: $primary-color;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 2rem;
.footer-link {
color: $light-color;
text-decoration: none;
transition: color 0.3s;
&:hover {
color: $primary-color;
}
}
}
.copyright {
color: rgba($light-color, 0.6);
font-size: 0.9rem;
}
} }
} }
// Responsive adjustments #about {
@media (max-width: 768px) { &::before {
.portfolio__section { background-image: url('https://wallpapers.com/images/hd/integral-project-management-cover-erpo8ef1af3wuquu.jpg');
.content {
padding: 1rem;
}
&--intro {
.intro-title {
font-size: 2.5rem;
}
.intro-subtitle {
font-size: 1.2rem;
}
}
.about-content {
flex-direction: column;
.about-text {
order: 2;
}
.about-image {
order: 1;
margin-bottom: 1.5rem;
}
}
.section-title {
font-size: 2rem;
}
} }
} }
#skills {
&::before {
background-image: url('https://visme.co/blog/wp-content/uploads/2017/07/50-Beautiful-and-Minimalist-Presentation-Backgrounds-013.jpg');
}
}
#projects {
&::before {
background-image: url('https://www.elegantthemes.com/blog/wp-content/uploads/2013/09/bg-1-full.jpg');
}
}
#contact {
&::before {
background-image: url('https://wallpapers.com/images/hd/professional-zoom-background-3h69jq8rrky7f3tj.jpg');
}
}