-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from rdias66/right-content
Right content
- Loading branch information
Showing
15 changed files
with
461 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
import experiences from '../../content/experiences.js' | ||
import ExperienceCard from '../ui/ExperienceCard.astro' | ||
--- | ||
|
||
<div class="margin-top5"> | ||
<section id="experiences" class="experiences-section"> | ||
<code class="sub-title">Experiências</code> | ||
{ | ||
experiences.map((experience) => ( | ||
<ExperienceCard | ||
year={experience.year} | ||
title={experience.title} | ||
desc={experience.desc} | ||
techStack={experience.techStack} | ||
/> | ||
)) | ||
} | ||
</section> | ||
</div> | ||
|
||
<style> | ||
.margin-top5 { | ||
margin-top: 5rem; | ||
} | ||
code { | ||
text-align: center; | ||
} | ||
.experiences-section { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
padding: 2rem; | ||
} | ||
|
||
.image-section { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.image-section img { | ||
width: 100%; | ||
height: auto; | ||
border-radius: 0.5rem; | ||
} | ||
|
||
.content-section { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
} | ||
|
||
.project-title { | ||
font-size: 1.5rem; | ||
font-weight: 700; | ||
color: #f8fafc; /* Light title */ | ||
} | ||
|
||
.project-description { | ||
font-size: 1rem; | ||
line-height: 1.6; | ||
color: #d1d5db; /* Subtle text color */ | ||
} | ||
|
||
.tech-stack { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 0.5rem; | ||
} | ||
|
||
.tech-stack > * { | ||
background-color: #0f172a; | ||
padding: 0.25rem 0.5rem; | ||
border-radius: 0.25rem; | ||
font-size: 0.875rem; | ||
} | ||
|
||
.links { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
|
||
.links a { | ||
color: #38bdf8; /* Link color */ | ||
text-decoration: none; | ||
} | ||
|
||
.links a:hover { | ||
text-decoration: underline; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
--- | ||
import TechBadge from './TechBadge.astro' | ||
const { year, title, desc, techStack } = Astro.props | ||
--- | ||
|
||
<div class="experience-card"> | ||
<div class="content-section"> | ||
<div class="year"> | ||
<code>{year}</code> | ||
</div> | ||
<code class="sub-title">{title}</code> | ||
<code class="description-color">{desc}</code> | ||
<div class="tech-stack"> | ||
{techStack.map((tech) => <TechBadge techName={tech} />)} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
.experience-card { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 90%; | ||
margin: 1rem auto; | ||
padding: 1.5rem; | ||
background-color: #1d1c1c; | ||
border-radius: 0.4rem; | ||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */ | ||
transition: | ||
transform 0.3s ease, | ||
box-shadow 0.3s ease; | ||
color: #f8fafc; | ||
position: relative; | ||
overflow: hidden; | ||
} | ||
|
||
.experience-card::before { | ||
content: ''; | ||
position: absolute; | ||
top: -50%; | ||
left: -50%; | ||
width: 200%; | ||
height: 200%; | ||
background: linear-gradient( | ||
130deg, | ||
rgba(255, 255, 255, 0.15) 0%, | ||
rgba(255, 255, 255, 0.05) 40%, | ||
transparent 60%, | ||
transparent 100% | ||
); | ||
transform: translateX(-100%) rotate(45deg); | ||
transition: opacity 0.4s ease; | ||
opacity: 0; | ||
} | ||
|
||
.experience-card:hover::before { | ||
opacity: 1; | ||
animation: subtle-shine 1s ease-out forwards; | ||
} | ||
|
||
@keyframes subtle-shine { | ||
0% { | ||
transform: translateX(-100%) rotate(45deg); | ||
} | ||
100% { | ||
transform: translateX(100%) rotate(45deg); | ||
} | ||
} | ||
|
||
.description-color { | ||
margin-top: 5%; | ||
color: var(--primary-color); | ||
|
||
text-align: start; | ||
} | ||
|
||
.project-card:hover { | ||
transform: translateY(-0.5rem); | ||
box-shadow: | ||
-0.5px -1px 5px rgba(63, 63, 63, 0.3), | ||
/* Top-left soft gray shadow */ 3px 6px var(--primary-color); /* Bottom-right shadow with your primary color */ | ||
} | ||
|
||
.content-section { | ||
flex: 2; | ||
padding-left: 1.5rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
} | ||
|
||
.tech-stack { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 0.5rem; | ||
} | ||
|
||
.tech { | ||
background-color: #0f172a; | ||
padding: 0.25rem 0.5rem; | ||
border-radius: 0.25rem; | ||
font-size: 0.875rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.