Skip to content

Commit

Permalink
fix: improve the style of footer links for smaller devices
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 21, 2023
1 parent e1f9075 commit a67370d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 13 additions & 4 deletions src/components/Footer/FooterLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
</div>

<div
class="flex flex-row flex-wrap justify-start md:justify-center bg-ob-deep-900 rounded-lg max-w-10/12 lg:max-w-screen-2xl text-normal text-ob-normal w-full py-6 px-6 items-start gap-8 md:gap-10 xl:gap-16"
class="flex flex-row flex-wrap justify-center bg-ob-deep-900 rounded-lg max-w-10/12 lg:max-w-screen-2xl text-normal text-ob-normal w-full py-6 px-6 items-start gap-8 md:gap-10 xl:gap-16"
>
<div v-for="link of links" class="flex flex-col">
<div
v-for="link of links"
class="flex flex-col items-center md:items-start"
>
<div class="flex mb-4 items-center">
<h3 class="text-ob-dim font-bold mr-2">{{ link.title }}</h3>
<SvgIcon
Expand All @@ -23,7 +26,10 @@
:class="loadingSvgClasses"
/>
</div>
<ul v-if="!link.mode" class="flex flex-col gap-1">
<ul
v-if="!link.mode"
class="flex flex-col gap-1 items-center md:items-start"
>
<li v-for="sub of link.links" class="cursor-pointer">
<a :href="sub.url" target="_blank">{{ sub.title }}</a>
</li>
Expand All @@ -33,7 +39,10 @@
<a :href="avatar.link" target="_blank">{{ avatar.nick }}</a>
</li>
</ul>
<ul v-if="link.mode === 'links' && loadingLinks" class="flex flex-col">
<ul
v-if="link.mode === 'links' && loadingLinks"
class="flex flex-col items-center md:items-start"
>
<li v-for="i in 5" class="cursor-pointer">
<ob-skeleton :count="1" height="22px" width="7.5rem" />
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/src/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
declare const _: any
import { computed, defineComponent, onMounted, onUnmounted, ref } from 'vue'
import { computed, defineComponent, ref } from 'vue'
import { Logo, Navigation, Controls, Notification } from '../index'
import Sticky from '@/components/Sticky.vue'
import { useNavigatorStore } from '@/stores/navigator'
Expand Down

0 comments on commit a67370d

Please sign in to comment.