refactor [front]: socials

This commit is contained in:
Alice 2022-12-04 03:13:25 +01:00
parent 4be2470122
commit b86176949f
4 changed files with 17 additions and 18 deletions

View file

@ -13,13 +13,7 @@
</a>
</header>
<div class="card-content">
<div>
<div class="is-flex socials">
<SocialsFacebook />
<SocialsInstagram />
<SocialsNewsletter />
</div>
</div>
<Socials />
</div>
</div>
</template>

View file

@ -33,11 +33,7 @@
</div>
</div>
</div>
<div class="networks">
<SocialsFacebook />
<SocialsInstagram />
<SocialsNewsletter />
</div>
<Socials class="networks" vertical />
</div>
<div class="navbar-start">
<nuxt-link

View file

@ -1,9 +1,7 @@
<template>
<footer class="footer">
<div class="is-flex is-justify-content-space-around socials">
<SocialsFacebook />
<SocialsInstagram />
<SocialsNewsletter />
<div class="is-flex socials mb-5">
<Socials class="mx-auto is-justify-content-space-around" />
</div>
<div class="is-flex is-justify-content-center links">
<a href="https://git.eleves.ens.fr/klub-dev-ens/cineclub">Code source</a>
@ -18,8 +16,6 @@
.footer
background-color: $grey-lightest
.socials
margin: 0 300px 2rem 300px
.links :not(:first-child)
margin-left: 2rem
</style>

View file

@ -0,0 +1,13 @@
<template>
<div :class="{ 'is-flex is-flex-wrap-wrap': !vertical }">
<SocialsFacebook />
<SocialsInstagram />
<SocialsNewsletter />
</div>
</template>
<script setup lang="ts">
defineProps({
vertical: { default: false, type: Boolean },
})
</script>