Fixed home page styling

This commit is contained in:
Patrick Hatsune 2024-06-11 09:11:32 -07:00
parent 9f0acf9764
commit dfb394467d
Signed by: keyemail
GPG key ID: 487C4334CE04CE66
2 changed files with 30 additions and 43 deletions

View file

@ -22,6 +22,7 @@ export default {
--bg-alt-hover-color: #111726; --bg-alt-hover-color: #111726;
--fg-color: #fff; --fg-color: #fff;
--padding: 20px; --padding: 20px;
--font: 'Rubik', sans-serif;
} }
body { body {

View file

@ -1,6 +1,6 @@
<template> <template>
<header> <header>
<a class="pfp" href="https://www.pixiv.net/en/artworks/118037520"> <a id="pfp" href="https://www.pixiv.net/en/artworks/118037520">
<img src="@/assets/profile.jpg"/> <img src="@/assets/profile.jpg"/>
</a> </a>
<div id="name"> <div id="name">
@ -34,11 +34,11 @@
</ul> </ul>
</div> </div>
</header> </header>
<div class="intro"> <main>
<h1>Hi, I'm Keyemail or Patrick.</h1> <h1>Hi, I'm Keyemail or Patrick.</h1>
<p>I specialize in IT and web development-related stuff, but I also love doing a variety of different hobbies such as Flight Simulator, or learning Japanese. I daily run an Arch Linux machine as my main system and support Linux in every way. I'm glad to meet you! </p> <p>I specialize in IT and web development-related stuff, but I also love doing a variety of different hobbies such as Flight Simulator, or learning Japanese. I daily run an Arch Linux machine as my main system and support Linux in every way. I'm glad to meet you! </p>
</div> </main>
<i class="fa-solid fa-arrow-down morearrow" @click="downArrow()" title="Nothing.."></i> <i class="fa-solid fa-arrow-down" id="morecontent"></i>
</template> </template>
<script> <script>
@ -51,23 +51,8 @@ export default {
showJavascriptBadge: false, showJavascriptBadge: false,
showVue3Badge: false showVue3Badge: false
} }
},
methods: {
downArrow(){
if(counter >= 4){
var quack = new Audio(require('@/assets/sounds/duck-quack.mp3'));
quack.play();
alert('You just got quacked!');
counter = 0;
} else {
alert('Nothing to scroll down to, may come useful later though..');
counter++;
}
}
} }
} }
var counter = 0;
</script> </script>
<style scoped> <style scoped>
@ -85,15 +70,15 @@ header {
height: 180px; height: 180px;
width: 100%; width: 100%;
border-radius: 10px; border-radius: 10px;
font-family: 'Rubik', sans-serif; font-family: var(--font);
h1 { h1 {
color: white; color: var(--fg-color);
font-size: 3rem; font-size: 3rem;
} }
} }
.pfp { #pfp {
height: 130px !important; height: 130px !important;
width: 130px !important; width: 130px !important;
border: solid; border: solid;
@ -103,7 +88,7 @@ header {
overflow: hidden; overflow: hidden;
margin-left: 20px; margin-left: 20px;
user-select: none; user-select: none;
img { img {
width:100%; width:100%;
height:100%; height:100%;
@ -114,6 +99,7 @@ header {
#name { #name {
margin-left: 20px; margin-left: 20px;
div { div {
top: calc(100% + 5px); top: calc(100% + 5px);
left: 50%; left: 50%;
@ -126,17 +112,15 @@ header {
height: 20px; height: 20px;
background-color: #151d2f; background-color: #151d2f;
color: white; color: white;
font-family: 'Rubik', sans-serif; font-family: var(--font);
box-sizing: content-box; box-sizing: content-box;
border-radius: 5px; border-radius: 5px;
} }
img { img {
pointer-events: none; pointer-events: none;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
ul { ul {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -144,7 +128,6 @@ header {
gap: 5px; gap: 5px;
user-select: none; user-select: none;
} }
li { li {
position: relative; position: relative;
display: inherit; display: inherit;
@ -158,25 +141,24 @@ header {
} }
} }
.intro { main {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-top: 40px; margin-top: 40px;
width: 100%; width: 100%;
color: white; color: var(--fg-color);
font-family: 'Rubik', sans-serif; font-family: var(--font);
background-color: var(--bg-alt-color); background-color: var(--bg-alt-color);
border-radius: 10px; border-radius: 10px;
padding: 20px; padding: 20px;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
h1 { h1 {
font-size: 3.5rem; font-size: 3.5rem;
font-weight: 500; font-weight: 500;
} }
p { p {
margin-top: 15px; margin-top: 15px;
font-size: 1.8rem; font-size: 1.8rem;
@ -185,10 +167,10 @@ header {
} }
} }
.morearrow { #morecontent {
cursor: pointer; cursor: pointer;
font-size: 40px; font-size: 3rem;
color: white; color: var(--fg-color);
margin: 40px auto; margin: 40px auto;
margin-top: 80px; margin-top: 80px;
} }
@ -199,6 +181,7 @@ header {
height: 240px; height: 240px;
justify-content: center; justify-content: center;
} }
#name { #name {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -210,13 +193,16 @@ header {
header h1 { header h1 {
margin-left: 0px; margin-left: 0px;
} }
.intro h1 { main {
font-size: 3rem; h1 {
font-size: 3rem;
}
p {
font-size: 1.8rem;
}
} }
.intro p {
font-size: 1.8rem; #pfp{
}
.pfp{
margin-left: 0px; margin-left: 0px;
} }
} }