Skip to content

Commit

Permalink
feat: perf resume style (YunYouJun#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liumingxun authored Aug 24, 2024
1 parent 3534ea7 commit 6fdbd6d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/project/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ onMounted(async () => {
</ul>
</div>
</details>
<hr class="mx-3">
<hr last:hidden class="mx-3">
</template>

<style lang="scss">
Expand Down
11 changes: 6 additions & 5 deletions src/components/resume/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ const name = computed(() => {
<template>
<div v-if="resume">
<div v-if="resume.basics.avatar" class="flex justify-between items-center">
<span class="font-normal text-center text-4xl">
{{ name || 'Your Name' }}
</span>
<img :src="resume.basics.avatar" class="max-h-3cm max-w-3cm ">
<div class="font-normal flex flex-col gap-2">
<span class="text-4xl">{{ name || 'Your Name' }}</span>
<small text-xs>{{ resume.basics.label }}</small>
</div>
<img :src="resume.basics.avatar" class="max-h-3cm max-w-3cm">
</div>
<h1 v-else class="font-normal text-center text-4xl">
{{ name || 'Your Name' }}
<br>
<small text-xs>{{ resume.basics.label }}</small>
</h1>
<small v-if="resume.basics" class="flex justify-center">
<small class="flex justify-center">
<span class="mx-1">{{ resume.basics.sex }}</span>
<span class="mx-1">{{ resume.basics.birth }}</span>
<span class="mx-1">{{ resume.basics.location }}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/work/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ onMounted(async () => {
</ul>
</div>
</details>
<hr class="mx-3">
<hr last:hidden class="mx-3">
</template>

<style lang="scss">
Expand Down
2 changes: 1 addition & 1 deletion src/styles/resume.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
display: inline-block;
}

hr {
h2 + hr {
margin: 5px auto;
}

Expand Down

0 comments on commit 6fdbd6d

Please sign in to comment.