From b238f4c621de088dcfe15d5b8db9b8494797455b Mon Sep 17 00:00:00 2001 From: "David E. Perez Negron R." Date: Wed, 10 Apr 2024 21:39:25 -0600 Subject: [PATCH] Display logo and create img directory --- _config.ts | 2 ++ _data.yml | 2 ++ _includes/css/navbar.css | 24 +++++++++++++++++++++++- _includes/layouts/base.vto | 4 ++-- img/deca-logo.png | Bin 0 -> 30343 bytes favicon.png => img/favicon.png | Bin 6 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 img/deca-logo.png rename favicon.png => img/favicon.png (100%) diff --git a/_config.ts b/_config.ts index 76ab03d..90af732 100644 --- a/_config.ts +++ b/_config.ts @@ -6,6 +6,8 @@ const site = lume({ location: new URL("https://blog.deca.eco"), }); +site.copy("img"); + site.use(relativeUrls()); site.use(blog()); diff --git a/_data.yml b/_data.yml index 6725b86..87c46b3 100644 --- a/_data.yml +++ b/_data.yml @@ -1,5 +1,7 @@ lang: en +logo: deca-logo.png + home: welcome: DECA PROTOCOL icon: favicon.png diff --git a/_includes/css/navbar.css b/_includes/css/navbar.css index 177f173..0e67889 100644 --- a/_includes/css/navbar.css +++ b/_includes/css/navbar.css @@ -31,5 +31,27 @@ } .navbar-home { + display: flex; + align-self: center; + align-items: center; + color: var(--color-foreground); + column-gap: 10px; text-decoration: none; -} \ No newline at end of file + font: var(--text-body-bold); + letter-spacing: var(--text-title-spacing); + + + & img { + margin-bottom: 10px; + width:175px; + height:58px; + } + + & span { + @media (max-width: 820px) { + display: none; + } + } + +} + diff --git a/_includes/layouts/base.vto b/_includes/layouts/base.vto index 116d75d..fb34eb7 100644 --- a/_includes/layouts/base.vto +++ b/_includes/layouts/base.vto @@ -13,7 +13,7 @@ - + {{ it.extra_head?.join("\n") }} @@ -22,7 +22,7 @@