Skip to content

Commit

Permalink
feat(home): smaller nickname for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Octobug committed Nov 3, 2023
1 parent 292a3cb commit 9ad9274
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .vitepress/theme/components/Profile.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Avatar />
<div :class="$style.profile">
<h1 :class="$style.title">
<h1 :class="$style.nickname">
<span>{{ nickname }}</span>
</h1>
<p :class="$style.bio">
Expand All @@ -28,7 +28,7 @@ import ProfileExtra from "./ProfileExtra.vue";
padding: 0 15px;
text-align: center;
.title {
.nickname {
display: flex;
align-items: center;
font-size: 2em;
Expand All @@ -48,4 +48,12 @@ import ProfileExtra from "./ProfileExtra.vue";
}
}
}
@media (max-width: 768px) {
.profile {
.nickname {
font-size: 1.7em;
}
}
}
</style>

0 comments on commit 9ad9274

Please sign in to comment.