-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/message-page-section
- Loading branch information
Showing
56 changed files
with
1,884 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,195 @@ | ||
<template>Footer</template> | ||
<script setup lang="ts"> | ||
import { useColor, useTypography } from '@vuejs-jp/composable' | ||
//#region types | ||
type LinkList = { | ||
href: string | ||
text: string | ||
} | ||
//#endregion | ||
//#region composable | ||
const { color } = useColor() | ||
const { fontSize } = useTypography() | ||
//#endregion | ||
//#region private variables | ||
const snsLinkList: LinkList[] = [ | ||
{ | ||
href: 'https://twitter.com/vuefes', | ||
text: 'x', | ||
}, | ||
{ | ||
href: 'https://note.com/vuejs_jp/', | ||
text: 'note', | ||
}, | ||
{ | ||
href: 'https://www.youtube.com/channel/UC6KPwA1kZJtQYdlh8_2hxCA', | ||
text: 'YouTube', | ||
}, | ||
{ | ||
href: 'https://github.com/vuejs-jp', | ||
text: 'GitHub', | ||
}, | ||
] | ||
const internalLinkList: LinkList[] = [ | ||
{ | ||
href: '/privacy', | ||
text: 'プライバシーポリシー', | ||
}, | ||
{ | ||
href: '/code-of-conduct', | ||
text: '行動規範', | ||
}, | ||
] | ||
const vueFesLinkList: LinkList[] = [ | ||
{ | ||
href: 'https://vuefes.jp/2023/', | ||
text: 'Vue Fes Japan 2023', | ||
}, | ||
{ | ||
href: 'https://vuefes.jp/2022/', | ||
text: 'Vue Fes Japan Online 2022', | ||
}, | ||
{ | ||
href: 'https://vuefes.jp/2020/', | ||
text: 'Vue Fes Japan 2020', | ||
}, | ||
{ | ||
href: 'https://vuefes.jp/2019/', | ||
text: 'Vue Fes Japan 2019', | ||
}, | ||
{ | ||
href: 'https://vuefes.jp/2018/', | ||
text: 'Vue Fes Japan 2018', | ||
}, | ||
] | ||
//#endregion | ||
</script> | ||
|
||
<template> | ||
<footer id="footer"> | ||
<div class="footer-container footer-main"> | ||
<div class="footer-information"> | ||
<VFLogo color="white" /> | ||
<ul class="footer-list footer-sns-list"> | ||
<li v-for="(link, index) in snsLinkList" :key="index"> | ||
<VFIconButton :href="link.href" color="white" :name="link.text" can-hover /> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="footer-link"> | ||
<ul class="footer-list"> | ||
<li v-for="(link, index) in internalLinkList" :key="index"> | ||
<VFTextLink :href="link.href" color="white"> | ||
{{ link.text }} | ||
</VFTextLink> | ||
</li> | ||
</ul> | ||
<ul class="footer-list"> | ||
<li v-for="(link, index) in vueFesLinkList" :key="index"> | ||
<VFTextLink :href="link.href" target="_blank" color="white"> | ||
{{ link.text }} | ||
</VFTextLink> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="footer-container footer-copyrights"> | ||
<small | ||
:style="{ | ||
fontSize: fontSize('body/100'), | ||
color: color('white'), | ||
}" | ||
> | ||
© 2018-2024 Vue.js Japan Users Group some rights reserved.<br /> | ||
Vue.js artworks by Evan You is licensed under a Creative Commons Attribution 4.0 | ||
International License. | ||
</small> | ||
</div> | ||
</footer> | ||
</template> | ||
|
||
<style scoped> | ||
@import url('../assets/media.css'); | ||
#footer { | ||
--padding-block-footer: 5rem; | ||
--gap-link-item: 0.875rem; | ||
--size-sns-icon: 1.75rem; | ||
@media (--mobile) { | ||
--padding-block-footer: 3.75rem; | ||
--gap-link-item: 0.25rem; | ||
--size-sns-icon: 2.5rem; | ||
} | ||
background-color: var(--color-vue-blue); | ||
color: var(--color-white); | ||
line-height: 1.2; | ||
} | ||
.footer-container { | ||
margin-inline: auto; | ||
max-width: 74.5rem; | ||
padding-inline: 1.25rem; | ||
&:first-of-type { | ||
padding-top: var(--padding-block-footer); | ||
} | ||
&:last-of-type { | ||
padding-bottom: var(--padding-block-footer); | ||
} | ||
& + & { | ||
margin-top: 1.25rem; | ||
} | ||
@media (--mobile) { | ||
& + & { | ||
margin-top: 2.5rem; | ||
} | ||
} | ||
} | ||
.footer-list { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.footer-main { | ||
display: grid; | ||
grid-template-columns: 1fr auto; | ||
@media (--mobile) { | ||
display: block; | ||
} | ||
} | ||
.footer-sns-list { | ||
margin-top: 1.25rem; | ||
display: grid; | ||
gap: 1rem; | ||
grid-template-columns: repeat(4, var(--size-sns-icon)); | ||
a { | ||
aspect-ratio: 1; | ||
display: grid; | ||
place-items: center; | ||
} | ||
@media (--mobile) { | ||
:deep(svg) { | ||
scale: 1.4; | ||
} | ||
} | ||
} | ||
.footer-link { | ||
display: grid; | ||
gap: 3.75rem; | ||
grid-template-columns: repeat(2, auto); | ||
li + li { | ||
margin-top: var(--gap-link-item); | ||
} | ||
@media (--tablet) { | ||
grid-template-columns: 1fr; | ||
gap: var(--gap-link-item); | ||
} | ||
@media (--mobile) { | ||
margin-top: 1.25rem; | ||
li { | ||
display: flex; | ||
height: 2.5rem; | ||
align-items: center; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.