-
Notifications
You must be signed in to change notification settings - Fork 2
Quentin/page bde #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Quentin/page bde #66
Changes from all commits
a2beb6b
7d7e3d5
ea1253c
ed73a8a
5b62f6d
f0ce076
10cb8b6
8196964
4fa6496
4347319
5e2336a
dfdb9bb
0e2fd93
cae3ee5
d9fd8fb
ffea611
b622328
10b3b1d
5f459f8
e595ab2
aeb39ee
22eb22e
4d9478b
fccc89f
4eaf750
36c0db6
41dfcf0
0e5a385
50a18e4
f878f01
052fd58
d1344d8
d64c920
a6c3408
43fe5f8
33fd562
e143028
59da48e
c3aaa9c
f3d081c
f625af0
7bcc5ae
43ea20c
d008d57
0689e0a
623e5ad
e20aa75
f50e3b2
96ea65a
153234e
daa470f
65e2810
4e43e85
d1bcb0e
d920878
bc6f52e
ccb93ea
30e7a4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ | |
| :size="component.parallax.size" | ||
| :scrollTo="component.parallax.scrollTo" | ||
| /> | ||
|
|
||
| <Trombinoscope | ||
| v-else-if="typeOf(component) == 'trombinoscope'" | ||
| :id="component.trombinoscope.id" | ||
|
|
@@ -35,6 +34,32 @@ | |
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'timeline'" | ||
| > | ||
| <Timeline | ||
| :items="component.timeline.items" | ||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'carousel'" | ||
| > | ||
| <Carousel | ||
| :carousels="component.carousel.carousels" | ||
| /> | ||
| </div> | ||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'carousel'" | ||
| > | ||
| <Carousel | ||
| :carousels="component.carousel.carousels" | ||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'timeline'" | ||
|
|
@@ -103,15 +128,60 @@ | |
| :features="component.features.data" | ||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'clubs'" | ||
| > | ||
| <Clubs | ||
| :clubs="component.clubs.clubs" | ||
| :color="component.clubs.color" | ||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'description'" | ||
| > | ||
| <Description | ||
| :quotes="component.description.quotes" | ||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'social'" | ||
| > | ||
| <Social | ||
| :facebook="component.social.facebook" | ||
| :instagram="component.social.instagram" | ||
| :snapchat="component.social.snapchat" | ||
| :tiktok="component.social.tiktok" | ||
| :mail="component.social.mail" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #59 (comment) fixed in 4b21c77 |
||
| /> | ||
| </div> | ||
|
|
||
| <div | ||
| class="background-gradient-lines" | ||
| v-else-if="typeOf(component) == 'trombinoscope'" | ||
| > | ||
| <Trombinoscope | ||
| :title="component.trombinoscope.title" | ||
| :members="component.trombinoscope.members" | ||
| /> | ||
| </div> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This component is already built higher up the Builder on line 14. |
||
|
|
||
| <p v-else>-</p> | ||
| </div> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script> | ||
| import SocialNetworks from '~/components/Social'; | ||
| import GraphScore from '~/components/GraphScore'; | ||
| import Trombinoscope from '~/components/Trombinoscope'; | ||
| export default { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if these imports are required, there are already components like |
||
| components: { GraphScore }, | ||
| components: { Trombinoscope, SocialNetworks, GraphScore}, | ||
| props: { | ||
| components: { type: Array, required: true, default: () => [] }, | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,58 @@ | ||
| <template> | ||
| <b-carousel | ||
| <section class="mt-2"> | ||
| <p | ||
| class=" | ||
| py-6 | ||
| is-size-1 | ||
| has-text-weight-bold | ||
| is-family-monospace | ||
| has-text-centered | ||
| " | ||
| > | ||
| Actualités | ||
| </p> | ||
| <div class="px-6"> | ||
| <b-carousel | ||
| pause-text="Défilement automatique en pause" | ||
| pause-info-type="is-info" | ||
| > | ||
| > | ||
| <b-carousel-item v-for="(carousel, i) in carousels" :key="i"> | ||
| <section class="hero is-large bg-img" v-bind:style="{'background-image': `url('${carousel.picture}')`}"> | ||
| <div class="hero-body has-text-centered" style="background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) )"> | ||
| <h1 class="title has-text-white">{{carousel.title}}</h1> | ||
| <p class="has-text-white">{{ carousel.content }}</p> | ||
| </div> | ||
| </section> | ||
| <b-image | ||
| class="image is-5by3" | ||
| :src=" | ||
| carousel.picture ? carousel.picture : 'https://picsum.photos/1000' | ||
| " | ||
| /> | ||
| <div class="has-text-centered carousel-item-desc py-6"> | ||
| <h1 class="title has-text-white">{{ carousel.title }}</h1> | ||
| <p | ||
| class="has-text-white" | ||
| v-for="(line, j) in carousel.content" | ||
| :key="j" | ||
| > | ||
| {{ line }} | ||
| </p> | ||
| </div> | ||
| </b-carousel-item> | ||
| </b-carousel> | ||
| </b-carousel> | ||
| </div> | ||
| </section> | ||
| </template> | ||
|
|
||
| <style scoped> | ||
| .bg-img { | ||
| background-position: center center; | ||
| background-repeat: no-repeat; | ||
| background-size: cover; | ||
| } | ||
| </style> | ||
|
|
||
| <script> | ||
| export default { | ||
| props: { | ||
| carousels: { type: Array, required: true } | ||
| } | ||
| props: { | ||
| carousels: { type: Array, required: true }, | ||
| }, | ||
| }; | ||
| </script> | ||
|
|
||
| <style scoped> | ||
| .carousel-item-desc { | ||
| background-color: rgba(0, 0, 0, 0.8); | ||
| position: absolute; | ||
| width: 100%; | ||
| bottom: 0px; | ||
| } | ||
| </script> | ||
| </style> | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| <template> | ||
| <div class="card feature-card" :style="cardStyle2" > | ||
| <div class="card-header" :style="cardStyle1" > | ||
| <h5 class="card-header-title is-centered ">{{ title }}</h5> | ||
| </div> | ||
| <div class="card-content" :style="cardStyle2"> | ||
| <div class="media"> | ||
| <div class="media-left"> | ||
| <figure class="image is-128x128"> | ||
| <img :src="image" alt="Placeholder image"> | ||
| </figure> | ||
| </div> | ||
| <div class="media-content has-text-centered"> | ||
| <p class="subtitle is-4">Respo(s) :</p> | ||
| <p class="title is-6 five-lines-max">{{ directedBy }}</p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="card-footer has-text-centered" :style="cardStyle2"> | ||
| <p class="card-footer-item"> Heure: {{ hour }}<br>Lieu: {{ location }}</p> | ||
| </div> | ||
|
|
||
| </div> | ||
| </template> | ||
|
|
||
| <script> | ||
| export default { | ||
| props: { | ||
| image: { type: String, required: true }, | ||
| title: { type: String, required: true }, | ||
| directedBy: { type: String, required: true }, | ||
| hour: { type: String, required: false }, | ||
| location: { type: String, required: false }, | ||
| color: {type: String, default: "rgb(0,156,221)" } | ||
| }, | ||
| computed: { | ||
| cardStyle1() { | ||
| return { | ||
| "background-color": this.color | ||
| }; | ||
| }, | ||
| cardStyle2() { | ||
| return { | ||
| "border-color": this.color | ||
| }; | ||
| } | ||
| } | ||
| }; | ||
| </script> | ||
|
|
||
| <style lang="css" scoped> | ||
|
|
||
| .card-header { | ||
| background-color: rgb(0,156,221); | ||
| } | ||
| .feature-card:hover { | ||
| transform: translateY(-10px); | ||
| transition: transform 0.1s ease-in-out; | ||
| -o-transition: transform 0.1s ease-in-out; | ||
| -moz-transition: transform 0.1s ease-in-out; | ||
| -webkit-transition: transform 0.1s ease-in-out; | ||
| box-shadow: 0 0 40px grey; | ||
| } | ||
| h5 { | ||
| color:white; | ||
| } | ||
|
|
||
| .card-content { | ||
| border-bottom:1px solid; | ||
| } | ||
| .card { | ||
| border:1px solid; | ||
|
|
||
| } | ||
| .five-lines-max { | ||
| overflow: hidden; | ||
| text-overflow: ellipsis; | ||
| display: -webkit-box; | ||
| -webkit-line-clamp: 5; /* number of lines to show */ | ||
| -webkit-box-orient: vertical; | ||
| } | ||
|
|
||
|
|
||
| </style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component is built twice in the Builder. Remove one of them.