Mobile-adapted index :)
This commit is contained in:
@@ -6,10 +6,10 @@ defineProps<{
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div style="width: fit-content;">
|
||||
<div style="width: fit-content; max-width: 100%; overflow: hidden;">
|
||||
<NuxtLink style="display: flex; width: fit-content; text-decoration: none;" to="/">
|
||||
<img style="user-select: none;" :width="imgWidth == null ? '140' : Number(imgWidth)" src="~/assets/img/buildpath-high-resolution-logo-transparent.png" />
|
||||
<h1 :style="'font-size: ' + (fontSize == null ? '90px' : fontSize) + ';'" id="logo-text">BuildPath</h1>
|
||||
<img id="logo-img" :width="imgWidth == null ? '140' : Number(imgWidth)" src="~/assets/img/buildpath-high-resolution-logo-transparent.png" />
|
||||
<h1 :style="'font-size: ' + (fontSize == null ? '5.6rem' : fontSize) + ';'" id="logo-text">BuildPath</h1>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</template>
|
||||
@@ -18,12 +18,23 @@ defineProps<{
|
||||
#logo-text {
|
||||
font-weight: 200;
|
||||
align-content: center;
|
||||
|
||||
font-size: 90px;
|
||||
|
||||
margin-left: 20px;
|
||||
|
||||
user-select: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
#logo-img {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 550px) {
|
||||
#logo-text {
|
||||
margin-left: 10px;
|
||||
}
|
||||
#logo-img {
|
||||
max-width: 80px;
|
||||
height: fit-content;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user