diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-04 15:45:08 +0200 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-04 15:45:08 +0200 | 
| commit | 8a4fbf91b0ffdcb0ec38105f918ce6f90e6ec161 (patch) | |
| tree | ad4be73ddaf8d8b82fb43740d25aa72d2b8ff055 /src/components/molecules/layout/branding.module.scss | |
| parent | 1fe43a98098eeef254a26b21d77e2d0ce8e55c30 (diff) | |
chore: add a Branding component
Diffstat (limited to 'src/components/molecules/layout/branding.module.scss')
| -rw-r--r-- | src/components/molecules/layout/branding.module.scss | 48 | 
1 files changed, 48 insertions, 0 deletions
| diff --git a/src/components/molecules/layout/branding.module.scss b/src/components/molecules/layout/branding.module.scss new file mode 100644 index 0000000..aa18002 --- /dev/null +++ b/src/components/molecules/layout/branding.module.scss @@ -0,0 +1,48 @@ +@use "@styles/abstracts/functions" as fun; + +.wrapper { +  display: grid; +  grid-template-columns: +    var(--logo-size, fun.convert-px(100)) +    minmax(0, 1fr); +  grid-template-rows: 1fr min-content; +  align-items: center; +  column-gap: var(--spacing-sm); +} + +.logo { +  grid-row: span 2; +} + +.title { +  font-size: var(--font-size-2xl); +} + +.baseline { +  color: var(--color-fg-light); +} + +.link { +  background: linear-gradient( +      to top, +      var(--color-primary-light) fun.convert-px(5), +      transparent fun.convert-px(5) +    ) +    left / 0 100% no-repeat; +  text-decoration: none; +  transition: all 0.6s ease-out 0s; + +  &:hover, +  &:focus { +    background-size: 100% 100%; +  } + +  &:focus { +    color: var(--color-primary-light); +  } + +  &:active { +    background-size: 0 100%; +    color: var(--color-primary-dark); +  } +} | 
