FIX: better buttons
Better button stuff, better image naming and scaling
This commit is contained in:
parent
cbe1f89ec6
commit
266301aa58
6 changed files with 18 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
||||||
color: var(--color-black);
|
color: var(--color-black);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 1rem 1.5rem;
|
padding: 1rem 1.5rem;
|
||||||
outline: 3px solid var(--color-black);
|
outline: 3px solid transparent;
|
||||||
box-shadow: 0 0 0 0 var(--color-orange);
|
box-shadow: 0 0 0 0 var(--color-orange);
|
||||||
border-radius: 99999px;
|
border-radius: 99999px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
outline-color: var(--color-black);
|
||||||
box-shadow: 0 0 0 6px var(--color-orange);
|
box-shadow: 0 0 0 6px var(--color-orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<article class="Person flex-col">
|
<article class="Person flex-col">
|
||||||
<img loading="lazy" width="150" height="150" :src="img" :alt="`Bild von ${name}`" />
|
<img
|
||||||
|
loading="lazy"
|
||||||
|
width="150"
|
||||||
|
height="150"
|
||||||
|
:srcset="[getImage('1x', true), getImage('2x', true), getImage('3x', true)].join(', ')"
|
||||||
|
:src="getImage('1x', false)"
|
||||||
|
:alt="`Bild von ${name}`"
|
||||||
|
/>
|
||||||
<h3>{{name}}</h3>
|
<h3>{{name}}</h3>
|
||||||
<p>
|
<p>
|
||||||
<span v-for="tag in tags">{{tag}}</span>
|
<span v-for="tag in tags">{{tag}}</span>
|
||||||
|
@ -19,5 +26,7 @@ type Props = {
|
||||||
link: string
|
link: string
|
||||||
}
|
}
|
||||||
|
|
||||||
defineProps<Props>()
|
const { img } = defineProps<Props>()
|
||||||
|
|
||||||
|
const getImage = (size : '1x' | '2x' | '3x', set : boolean) => `/img/network/${img}@${size}.webp${set ? ` ${size}` : ''}`
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -109,35 +109,35 @@ const shuffle = <T>(unshuffled : T[]) => unshuffled
|
||||||
const network = shuffle([
|
const network = shuffle([
|
||||||
{
|
{
|
||||||
name: 'Robert Janus',
|
name: 'Robert Janus',
|
||||||
img: '/img/network/robert.webp',
|
img: 'robert',
|
||||||
tags: ['Digitalberatung', 'Webentwicklung', 'eCommerce'],
|
tags: ['Digitalberatung', 'Webentwicklung', 'eCommerce'],
|
||||||
flavour: 'Website, SEO und Conversions. Auf einen Klick.',
|
flavour: 'Website, SEO und Conversions. Auf einen Klick.',
|
||||||
link: 'https://robertjanus.de/webertoire',
|
link: 'https://robertjanus.de/webertoire',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Matthias Lehmann',
|
name: 'Matthias Lehmann',
|
||||||
img: '/img/network/matthias.webp',
|
img: 'matthias',
|
||||||
tags: ['Onlineportale für Patienten', 'Kunden', 'Mitarbeiter'],
|
tags: ['Onlineportale für Patienten', 'Kunden', 'Mitarbeiter'],
|
||||||
flavour: 'Software die macht, was DU willst!',
|
flavour: 'Software die macht, was DU willst!',
|
||||||
link: 'https://mind-deploy.de',
|
link: 'https://mind-deploy.de',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Maximilian Schluer',
|
name: 'Maximilian Schluer',
|
||||||
img: '/img/network/maximilian.webp',
|
img: 'maxmilian',
|
||||||
tags: ['iOS Development', 'Software-QA'],
|
tags: ['iOS Development', 'Software-QA'],
|
||||||
flavour: 'Kann dein iOS-Team unterstützen oder dein Software-Qualitätsproblem lösen – egal welches.',
|
flavour: 'Kann dein iOS-Team unterstützen oder dein Software-Qualitätsproblem lösen – egal welches.',
|
||||||
link: 'https://max-schluer.de',
|
link: 'https://max-schluer.de',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Maria Salcedo',
|
name: 'Maria Salcedo',
|
||||||
img: '/img/network/maria.webp',
|
img: 'maria',
|
||||||
tags: ['Backend', 'DevOps', 'Architektur'],
|
tags: ['Backend', 'DevOps', 'Architektur'],
|
||||||
flavour: 'Effizient und kommunikativ. "You build it, you run it."',
|
flavour: 'Effizient und kommunikativ. "You build it, you run it."',
|
||||||
link: 'https://masagu.dev',
|
link: 'https://masagu.dev',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Judith Böhlert',
|
name: 'Judith Böhlert',
|
||||||
img: '/img/network/judith.webp',
|
img: 'judith',
|
||||||
tags: ['Full-stack', 'Frontend'],
|
tags: ['Full-stack', 'Frontend'],
|
||||||
flavour: 'MVPs und Prototypen - schnell, schick und ohne Drama.',
|
flavour: 'MVPs und Prototypen - schnell, schick und ohne Drama.',
|
||||||
link: 'https://judithboehlert.com',
|
link: 'https://judithboehlert.com',
|
||||||
|
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
BIN
public/img/network/robert@2x.webp
Normal file
BIN
public/img/network/robert@2x.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
BIN
public/img/network/robert@3x.webp
Normal file
BIN
public/img/network/robert@3x.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 193 KiB |
Loading…
Add table
Add a link
Reference in a new issue