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> </a>
</header> </header>
<div class="card-content"> <div class="card-content">
<div> <Socials />
<div class="is-flex socials">
<SocialsFacebook />
<SocialsInstagram />
<SocialsNewsletter />
</div>
</div>
</div> </div>
</div> </div>
</template> </template>

View file

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

View file

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