Browse Source

feat: add logo with styling

pull/3/head
Diego Vester 2 months ago
parent
commit
e4b0b0104d
  1. BIN
      src/assets/logo.jpg
  2. 1
      src/assets/logo.svg
  3. 9
      src/components/sections/HeroSection.vue

BIN
src/assets/logo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 KiB

1
src/assets/logo.svg

@ -1 +0,0 @@ @@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 261.76 226.69"><path d="M161.096.001l-30.225 52.351L100.647.001H-.005l130.877 226.688L261.749.001z" fill="#41b883"/><path d="M161.096.001l-30.225 52.351L100.647.001H52.346l78.526 136.01L209.398.001z" fill="#34495e"/></svg>

Before

Width:  |  Height:  |  Size: 276 B

9
src/components/sections/HeroSection.vue

@ -12,11 +12,13 @@ @@ -12,11 +12,13 @@
* - "change hero colors" -> modify the styles below or variables.css
*/
import { hero } from "@/content/site-data";
import logo from "@/assets/logo.jpg";
</script>
<template>
<section class="hero-section">
<div class="hero-container">
<img :src="logo" alt="Logo" class="hero-logo" />
<h1 class="hero-title">{{ hero.title.value }}</h1>
<p class="hero-tagline">{{ hero.tagline.value }}</p>
<p class="hero-description">{{ hero.description.value }}</p>
@ -41,6 +43,13 @@ import { hero } from "@/content/site-data"; @@ -41,6 +43,13 @@ import { hero } from "@/content/site-data";
margin: 0 auto;
}
.hero-logo {
display: block;
max-width: 150px;
height: auto;
margin: 0 auto var(--space-md);
}
.hero-title {
font-size: clamp(2.5rem, 8vw, 4rem);
color: var(--color-primary-dark);

Loading…
Cancel
Save