Skip to content

Commit bc37668

Browse files
committed
ui: more than 4 footer groups
1 parent cad54a4 commit bc37668

File tree

2 files changed

+58
-36
lines changed

2 files changed

+58
-36
lines changed

playground/nuxt.config.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,34 @@ export default defineNuxtConfig({
4343
title: 'Company',
4444
links: [
4545
{ text: 'About', to: '/about' },
46+
{ text: 'Team', to: '/team' },
4647
{ text: 'Careers', to: '/careers' },
48+
],
49+
},
50+
{
51+
title: 'Support',
52+
links: [
4753
{ text: 'Contact', to: '/contact' },
54+
{ text: 'Documentation', to: '/docs' },
55+
{ text: 'Help', to: '/help' },
4856
],
4957
},
5058
{
5159
title: 'Resources',
5260
links: [
5361
{ text: 'Blog', to: '/blog' },
54-
{ text: 'Documentation', to: '/docs' },
55-
{ text: 'Help', to: '/help' },
62+
{ text: 'Podcast', to: '/podcast' },
63+
{ text: 'Free Guide', to: '/guide' },
64+
],
65+
},
66+
{
67+
title: 'Ecosystem',
68+
links: [
69+
{ text: 'Partners', to: '/partners' },
70+
{ text: 'Affiliates', to: '/affiliates' },
71+
{ text: 'Themes', to: '/themes' },
72+
{ text: 'Plugins', to: '/plugins' },
73+
{ text: 'Integrations', to: '/integrations' },
5674
],
5775
},
5876
],

src/runtime/components/app/AppFooter.vue

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary
2121
<!-- Brand -->
2222
<v-col
2323
cols="12"
24-
:lg="footerPrimaryLinks?.length === 4 ? 3 : 4"
24+
:lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 3 : 4"
2525
>
2626
<!-- Logo -->
2727
<AppLogo dark />
@@ -35,40 +35,44 @@ const footerSecondaryLinks = nuxtifyConfig.navigation?.altSecondary
3535
<v-spacer />
3636

3737
<!-- Primary Links -->
38-
<v-col
39-
v-for="group in footerPrimaryLinks"
40-
:key="group.title"
41-
cols="6"
42-
md="3"
43-
lg="2"
44-
>
45-
<p class="text-body-1 font-weight-bold mb-3">
46-
{{ group.title }}
47-
</p>
48-
<div
49-
v-for="link in group.links"
50-
:key="link.text"
51-
>
52-
<v-btn
53-
:to="link.to"
54-
:href="link.href"
55-
variant="text"
56-
:active="false"
57-
:ripple="false"
58-
:target="link.openInNew ? '_blank' : undefined"
59-
:rel="link.openInNew ? 'noopener nofollow' : undefined"
60-
class="px-0"
38+
<v-col :lg="footerPrimaryLinks && footerPrimaryLinks?.length >= 4 ? 9 : 8">
39+
<v-row>
40+
<v-col
41+
v-for="group in footerPrimaryLinks"
42+
:key="group.title"
43+
cols="6"
44+
md="3"
45+
lg="3"
6146
>
62-
{{ link.text }}
63-
<v-icon
64-
v-if="link.openInNew"
65-
:icon="mdiArrowTopRight"
66-
size="small"
67-
color="grey"
68-
class="ml-1"
69-
/>
70-
</v-btn>
71-
</div>
47+
<p class="text-body-1 font-weight-bold mb-3">
48+
{{ group.title }}
49+
</p>
50+
<div
51+
v-for="link in group.links"
52+
:key="link.text"
53+
>
54+
<v-btn
55+
:to="link.to"
56+
:href="link.href"
57+
variant="text"
58+
:active="false"
59+
:ripple="false"
60+
:target="link.openInNew ? '_blank' : undefined"
61+
:rel="link.openInNew ? 'noopener nofollow' : undefined"
62+
class="px-0"
63+
>
64+
{{ link.text }}
65+
<v-icon
66+
v-if="link.openInNew"
67+
:icon="mdiArrowTopRight"
68+
size="small"
69+
color="grey"
70+
class="ml-1"
71+
/>
72+
</v-btn>
73+
</div>
74+
</v-col>
75+
</v-row>
7276
</v-col>
7377
</v-row>
7478

0 commit comments

Comments
 (0)