mirror of
https://github.com/LJ5O/website.git
synced 2026-08-11 22:54:46 +02:00
Fixed welcome div display on phones
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<h2>{{ displayedWorld }}</h2>
|
<h2>{{ displayedWorld }}<span id="cursor"/></h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@@ -53,12 +53,20 @@
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
h2{
|
h2{
|
||||||
height: 1.5em;
|
height: fit-content;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
/*min-height: 3em;*/
|
||||||
|
}
|
||||||
|
#cursor{
|
||||||
border-right: 2px solid #EAEAEA;
|
border-right: 2px solid #EAEAEA;
|
||||||
|
animation: blink 1s step-end infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
50%{opacity: 0;}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -79,6 +79,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
gap: 15px;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#profile_picture{
|
#profile_picture{
|
||||||
@@ -100,7 +104,7 @@
|
|||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
#welcome_text_div h1{
|
#welcome_text_div h1{
|
||||||
margin-top: 100px;
|
margin-top: 2%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
font-size: 2em;
|
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{
|
#scroll_arrow{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
|
|||||||
Reference in New Issue
Block a user