Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CaCaoCritics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bilel El Yaagoubi
CaCaoCritics
Commits
073a5029
Commit
073a5029
authored
3 years ago
by
Juliette Kalflèche
Browse files
Options
Downloads
Patches
Plain Diff
add slides with movies
parent
9de50d69
Branches
Branches containing commit
No related tags found
1 merge request
!9
front 2, le retour, début page home
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/package-lock.json
+69
-11440
69 additions, 11440 deletions
frontend/package-lock.json
frontend/package.json
+4
-1
4 additions, 1 deletion
frontend/package.json
frontend/src/views/Home.vue
+21
-0
21 additions, 0 deletions
frontend/src/views/Home.vue
with
94 additions
and
11441 deletions
frontend/package-lock.json
+
69
−
11440
View file @
073a5029
This diff is collapsed.
Click to expand it.
frontend/package.json
+
4
−
1
View file @
073a5029
...
...
@@ -8,10 +8,13 @@
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
"@splidejs/splide"
:
"^4.0.6"
,
"@splidejs/vue-splide"
:
"^0.6.6"
,
"axios"
:
"^0.27.2"
,
"core-js"
:
"^3.8.3"
,
"vue"
:
"^3.2.13"
,
"vue-router"
:
"^4.0.3"
"vue-router"
:
"^4.0.3"
,
"vue3-carousel"
:
"^0.1.40"
},
"devDependencies"
:
{
"@babel/core"
:
"^7.12.16"
,
...
...
This diff is collapsed.
Click to expand it.
frontend/src/views/Home.vue
+
21
−
0
View file @
073a5029
<
template
>
<div
class=
"home"
>
<carousel
:items-to-show=
"5.5"
autoplay=
1300
>
<slide
v-for=
"movie in movies"
:key=
"movie.id"
autoplay=
'True'
transition=
"100"
>
<img
:src=
"'https://image.tmdb.org/t/p/original/' + movie.poster_path"
withd=
"100"
height=
"300"
/>
</slide>
<template
#addons
>
<navigation
/>
<pagination
/>
</
template
>
</carousel>
<h1>
Bienvenue sur CaCaoCritics
</h1>
<img
class=
"logo"
alt=
"Vue logo"
src=
"../assets/logo.png"
/>
<br
/>
...
...
@@ -22,9 +35,17 @@
<
script
>
import
axios
from
"
axios
"
;
import
'
vue3-carousel/dist/carousel.css
'
;
import
{
Carousel
,
Slide
,
Pagination
,
Navigation
}
from
'
vue3-carousel
'
;
export
default
{
name
:
"
Home
"
,
components
:
{
Carousel
,
Slide
,
Pagination
,
Navigation
,
},
data
:
function
()
{
return
{
moviename
:
""
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment