FIX: mobile layout for easy skills
Better layout for easily explained skills
This commit is contained in:
parent
d8593a7280
commit
9ecafeba02
6 changed files with 75 additions and 27 deletions
|
@ -178,6 +178,10 @@ span.chip {
|
||||||
margin-top: 6rem;
|
margin-top: 6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.place-bottom {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.flex-row {
|
.flex-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
|
@ -17,4 +17,50 @@
|
||||||
& .bottom {
|
& .bottom {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& .image-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .skill-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
&.reverse {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (width <= 1601px) {
|
||||||
|
.Skills {
|
||||||
|
& .skill-container {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .skill-card.reverse,
|
||||||
|
& .skill-card {
|
||||||
|
flex: 1 0 300px;
|
||||||
|
flex-direction: column;
|
||||||
|
text-align: center;
|
||||||
|
justify-content: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .skill-card h3 {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .text-container,
|
||||||
|
& .text-container main {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
& .image-container img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -31,25 +31,21 @@
|
||||||
|
|
||||||
const nav = [
|
const nav = [
|
||||||
{
|
{
|
||||||
to: `/#intro`,
|
to: `/`,
|
||||||
label: 'Über mich',
|
label: 'Home',
|
||||||
'aria-label': 'Link dieser Seite: Über mich'
|
'aria-label': 'Link dieser Seite: Home'
|
||||||
}, {
|
}, {
|
||||||
to: `/#skills`,
|
to: `/services`,
|
||||||
label: 'Meine Expertise',
|
label: 'Leistungen',
|
||||||
'aria-label': 'Link dieser Seite: Meine Expertise'
|
'aria-label': 'Link dieser Seite: Leistungen'
|
||||||
}, {
|
}, {
|
||||||
to: `/#customers`,
|
to: `/references`,
|
||||||
label: 'Kunden',
|
label: 'Referenzen',
|
||||||
'aria-label': 'Link dieser Seite: Kunden'
|
'aria-label': 'Link dieser Seite: Referenzen'
|
||||||
}, {
|
}, {
|
||||||
to: `/#services`,
|
to: `/contact`,
|
||||||
label: 'Services',
|
label: 'Kontakt',
|
||||||
'aria-label': 'Link dieser Seite: Services'
|
'aria-label': 'Link dieser Seite: Kontakt'
|
||||||
}, {
|
|
||||||
to: `/#network`,
|
|
||||||
label: 'Mein Netzwerk',
|
|
||||||
'aria-label': 'Link dieser Seite: Mein Netzwerk'
|
|
||||||
}, {
|
}, {
|
||||||
to: '/imp',
|
to: '/imp',
|
||||||
label: 'Impressum',
|
label: 'Impressum',
|
||||||
|
|
|
@ -61,8 +61,8 @@ const nav = [
|
||||||
{
|
{
|
||||||
to: `/services`,
|
to: `/services`,
|
||||||
label: 'Leistungen',
|
label: 'Leistungen',
|
||||||
icon: 'list-checks',
|
icon: 'coins',
|
||||||
aria: 'Link dieser Seite: Leistungen'
|
aria: 'Link dieser Seite: Preise'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
to: `/references`,
|
to: `/references`,
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<a v-if="isExternal" :href="href" :target="target" class="text inline-flex-row">
|
<a v-if="isExternal" :href="href" :target="target" class="text inline-flex-row">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
<Icon :name="`ph:arrow-square-out-duotone`" mode="svg" />
|
<Icon name="ph:arrow-square-out-duotone" mode="svg" />
|
||||||
</a>
|
</a>
|
||||||
<NuxtLink v-else :to="href" class="text inline-flex-row">
|
<NuxtLink v-else :to="href" class="text inline-flex-row">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
<Icon :name="`ph:link-simple-duotone`" mode="svg" />
|
<Icon name="ph:link-simple-duotone" mode="svg" />
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
<section id="skills_easy" class="Skills content">
|
<section id="skills_easy" class="Skills content">
|
||||||
<h2>Jetzt mal ganz konkret.</h2>
|
<h2>Jetzt mal ganz konkret.</h2>
|
||||||
<h3>In diesem Abschnitt jetzt mal ganz <span class="highlight">ohne Technik-Blabla</span>.</h3>
|
<h3>In diesem Abschnitt jetzt mal ganz <span class="highlight">ohne Technik-Blabla</span>.</h3>
|
||||||
<div class="flex-col margin-top gap-default">
|
<div class="skill-container flex-col margin-top gap-default">
|
||||||
<article class="z-2 card flex-row gap-default" v-for="(skill, skillIndex) in skills" :class="[skillIndex % 2 && 'reverse']">
|
<article class="skill-card z-2 card gap-default" v-for="(skill, skillIndex) in skills" :class="[skillIndex % 2 && 'reverse']">
|
||||||
|
<div class="image-container">
|
||||||
<img :src="skill.img" alt="" class="card-img z-4" />
|
<img :src="skill.img" alt="" class="card-img z-4" />
|
||||||
<div class="flex-col gap-default">
|
</div>
|
||||||
|
<div class="text-container flex-col gap-default">
|
||||||
<h3>{{skill.title}}</h3>
|
<h3>{{skill.title}}</h3>
|
||||||
<main class="flex-col gap-sm">
|
<main class="flex-col gap-sm">
|
||||||
<RichText :elements="skill.text" />
|
<RichText :elements="skill.text" />
|
||||||
|
@ -70,7 +72,7 @@ const skills : Skill[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'p',
|
type: 'p',
|
||||||
css: 'margin-top bold',
|
css: 'place-bottom bold',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: 'plain',
|
type: 'plain',
|
||||||
|
@ -171,7 +173,7 @@ const skills : Skill[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'p',
|
type: 'p',
|
||||||
css: 'margin-top bold',
|
css: 'place-bottom bold',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: 'plain',
|
type: 'plain',
|
||||||
|
@ -237,7 +239,7 @@ const skills : Skill[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'p',
|
type: 'p',
|
||||||
css: 'margin-top bold',
|
css: 'place-bottom bold',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: 'plain',
|
type: 'plain',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue