Fixed welcome div display on phones

This commit is contained in:
2025-05-08 15:09:34 +02:00
parent 6d1913e0e5
commit c7fb67b0cc
2 changed files with 41 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<template>
<h2>{{ displayedWorld }}</h2>
<h2>{{ displayedWorld }}<span id="cursor"/></h2>
</template>
<script setup>
@@ -53,12 +53,20 @@
<style scoped>
h2{
height: 1.5em;
height: fit-content;
font-size: 1.5em;
margin-top: 10px;
margin-bottom: 5px;
width: fit-content;
/*min-height: 3em;*/
}
#cursor{
border-right: 2px solid #EAEAEA;
animation: blink 1s step-end infinite;
}
@keyframes blink {
50%{opacity: 0;}
}
</style>

View File

@@ -79,6 +79,10 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 15px;
justify-content: center;
align-items: center;
}
#profile_picture{
@@ -100,7 +104,7 @@
width: fit-content;
}
#welcome_text_div h1{
margin-top: 100px;
margin-top: 2%;
margin-bottom: 10px;
font-size: 2em;
}
@@ -118,6 +122,32 @@
}
}
@media (max-width: 900px) {
#name_div {
margin-top: 30px;
margin-left: auto;
margin-right: auto;
flex-direction: column;
text-align: center;
gap: 20px;
}
#name_div_right_container {
align-items: center;
width: 80vw;
margin-left: auto;
margin-right: auto;
}
#welcome_text_div h1 {
margin-top: 0px; /* name_div's gap replaces it */
}
#dynamic_occupation{
height: fit-content;
}
#social_networks {
justify-content: center;
}
}
#scroll_arrow{
position: absolute;
left: 50%;