From 3f33d93e853095f36f9e31b21d897f6bae2d20e8 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Thu, 22 Jan 2026 01:06:18 +0100 Subject: Estilo más retro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/BlogListLayout.astro | 50 ++++++++-------------------------------- src/layouts/HomePageLayout.astro | 36 ++++++++++++++--------------- src/layouts/Layout.astro | 25 +++++++++----------- 3 files changed, 37 insertions(+), 74 deletions(-) (limited to 'src/layouts') diff --git a/src/layouts/BlogListLayout.astro b/src/layouts/BlogListLayout.astro index 749259e..cb33a67 100644 --- a/src/layouts/BlogListLayout.astro +++ b/src/layouts/BlogListLayout.astro @@ -96,7 +96,6 @@ const schema = { const tagsAttribute = postTags.join(','); return (
  • - {post.data.title} {postTags.length > 0 && ( )} + {post.data.title}
  • ); })} @@ -250,14 +250,6 @@ const schema = { margin-bottom: 2.5rem; background: white; border-radius: 0.75rem; - - h2 { - font-size: 1.5rem; - font-weight: 600; - margin-top: 0; - margin-bottom: 1rem; - color: v.$accentDark; - } } .tag-filter { @@ -295,41 +287,26 @@ const schema = { .post-section { margin-bottom: 3rem; - h2 { - font-size: 1.75rem; - font-weight: 700; - margin-bottom: 1.25rem; - color: v.$dark; - padding-bottom: 0.5rem; - border-bottom: 2px solid rgba(0, 102, 204, 0.15); - } - > ul { list-style: none; padding: 0; + margin: 0 0 2rem 0; display: flex; flex-direction: column; - gap: 1rem; + gap: 0.5rem; } } .post-item { - background: v.$lightAlt; - padding: 1.25rem 1.5rem; - border-radius: 0.625rem; - display: flex; - flex-direction: column; - gap: 0.5rem; - > a { - font-size: 1.2rem; + font-size: 1rem; font-weight: 600; text-decoration: none; - color: v.$accentDark; + color: blue; box-shadow: none !important; &:hover { - color: v.$accent; + color: orangered; box-shadow: none !important; } } @@ -345,18 +322,13 @@ const schema = { flex-wrap: wrap; } - .post-tags li { - display: inline; - } - .tag-link { display: inline-block; - padding: 0.25rem 0.625rem; + padding: 0.15rem 0.25rem; background-color: rgba(0, 153, 255, 0.1); color: v.$accentDark; - border: 1px solid rgba(0, 102, 204, 0.2); - border-radius: 1.25rem; - font-size: 0.8rem; + border: none; + font-size: 0.82rem; font-weight: 500; font-family: v.$monoFontStack; text-decoration: none; @@ -368,8 +340,4 @@ const schema = { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } } - - #blog-posts { - min-height: 200px; - } diff --git a/src/layouts/HomePageLayout.astro b/src/layouts/HomePageLayout.astro index e18aeea..59c9cf6 100644 --- a/src/layouts/HomePageLayout.astro +++ b/src/layouts/HomePageLayout.astro @@ -42,7 +42,7 @@ const schema = {

    Entradas recientes del blog

    - + Ver todas las entradas @@ -87,31 +87,29 @@ const schema = { margin: 0 0 2rem 0; display: flex; flex-direction: column; - gap: 1rem; + gap: 0.5rem; } .blog-item { - background: $lightAlt; - padding: 1rem 1.25rem; - border-radius: 0.5rem; - time { - display: block; - font-size: 0.875rem; - color: hsl(209, 20%, 50%); + display: inline-block; + min-width: 12ch; + font-size: 0.75rem; + font-family: $monoFontStack; + color: gray; margin-bottom: 0.25rem; font-weight: 500; } a { - font-size: 1.125rem; + font-size: 1rem; font-weight: 600; text-decoration: none; - color: $accentDark; + color: blue; box-shadow: none !important; &:hover { - color: $accent; + color: orangered; box-shadow: none !important; } } @@ -119,12 +117,12 @@ const schema = { .cta-button { display: inline-block; - padding: 0.75rem 1.5rem; + padding: 0.45rem 1rem; background: $accentDark; color: white !important; text-decoration: none; - border-radius: 0.5rem; - font-weight: 600; + border-radius: 0.25rem; + font-weight: 500; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; &:hover { @@ -133,9 +131,9 @@ const schema = { } &:focus { + background: $accent; outline: 3px solid $secondary; outline-offset: 2px; - background: $accent !important; } } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 9e432bb..f484ce8 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -52,6 +52,7 @@ const { title, description, empty } = Astro.props;
    +
    {empty ? null :