diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-06-05 20:10:05 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-06-05 20:10:05 +0200 |
| commit | 2827787f54af9dafd8cf7d6a2090e7a9a86f8a9e (patch) | |
| tree | 84fd7194e91399e8ab38404f780a78d16caa51f5 /src/layouts | |
| parent | a2830a0dd6f634147456406c7855881ff298078e (diff) | |
Add portfolio and trajectory summaries to respective pages
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/PortfolioPageLayout.astro | 31 | ||||
| -rw-r--r-- | src/layouts/TrajectoryPageLayout.astro | 29 |
2 files changed, 60 insertions, 0 deletions
diff --git a/src/layouts/PortfolioPageLayout.astro b/src/layouts/PortfolioPageLayout.astro index e213c10..c9a0998 100644 --- a/src/layouts/PortfolioPageLayout.astro +++ b/src/layouts/PortfolioPageLayout.astro @@ -87,6 +87,12 @@ const schema = { onlineLink="https://vigo360.es" /> </section> + + <div class="trajectory-summary"> + <h2>{t.portfolioPage.trajectoryTitle}</h2> + <p>{t.portfolioPage.trajectorySummary}</p> + <a href="/trajectory" class="cta-link">{t.portfolioPage.viewTrajectory} →</a> + </div> </Layout> <style> @@ -95,4 +101,29 @@ const schema = { grid-template-columns: repeat(auto-fill,minmax(350px,1fr)); gap: 1.5rem; } + + .trajectory-summary { + margin-top: 3rem; + background-color: #FFFFFF; + border-radius: 8px; + padding: 1.5rem; + box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08); + border-left: 4px solid hsl(209, 94%, 42%); + } + + .trajectory-summary h2 { + margin-top: 0; + } + + .cta-link { + display: inline-block; + margin-top: 0.5rem; + font-weight: 600; + text-decoration: none; + color: hsl(215, 90%, 30%); + } + + .cta-link:hover { + text-decoration: underline; + } </style> diff --git a/src/layouts/TrajectoryPageLayout.astro b/src/layouts/TrajectoryPageLayout.astro index 9a0bd53..dd9d746 100644 --- a/src/layouts/TrajectoryPageLayout.astro +++ b/src/layouts/TrajectoryPageLayout.astro @@ -83,4 +83,33 @@ const schema = { <h2>{t.trajectoryPage.projectsTitle}</h2> <p set:html={t.trajectoryPage.projectsDescription} /> + + <div class="summary-box"> + <p>{t.trajectoryPage.portfolioSummary}</p> + <a href="/portfolio" class="cta-link">{t.trajectoryPage.viewPortfolio} →</a> + </div> </Layout> + +<style> + .summary-box { + background-color: #FFFFFF; + border-radius: 8px; + padding: 1.5rem; + margin-top: 2rem; + margin-bottom: 1rem; + box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08); + border-left: 4px solid hsl(209, 94%, 42%); + } + + .cta-link { + display: inline-block; + margin-top: 0.5rem; + font-weight: 600; + text-decoration: none; + color: hsl(215, 90%, 30%); + } + + .cta-link:hover { + text-decoration: underline; + } +</style> |
