file: create movies for movie app
This commit is contained in:
1 parent
81b2cf2bd7
commit
0e4cc5842a
17 files changed
+28727
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<div class="loading">
|
||||
<span></span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.loading {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@keyframes circle-loading {
|
||||
to {
|
||||
transform: rotateZ(360deg);
|
||||
}
|
||||
}
|
||||
span {
|
||||
display: block;
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid transparent;
|
||||
border-top-color: #fff;
|
||||
animation: circle-loading 1200ms ease infinite;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,94 @@
|
||||
<template>
|
||||
<div class="hero">
|
||||
<img src="../assets/imgs/movieHero.jpg" alt="" />
|
||||
<div class="text-container">
|
||||
<div class="text">
|
||||
<span class="mini-heading">Now Streaming</span>
|
||||
<h1><span>Now</span> Streaming</h1>
|
||||
<a href="#movie-grid" class="button">View Movies</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'MovieHero',
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.hero {
|
||||
height: 400px;
|
||||
position: relative;
|
||||
@media (min-width: 750px) {
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.text-container {
|
||||
z-index: 99;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
.text {
|
||||
padding: 0 16px;
|
||||
width: 100%;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.mini-heading {
|
||||
font-weight: 600;
|
||||
font-size: 18px;
|
||||
text-transform: uppercase;
|
||||
color: #c92502;
|
||||
margin-bottom: 8px;
|
||||
@media (min-width: 750px) {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #fff;
|
||||
font-size: 64px;
|
||||
font-weight: 200;
|
||||
margin-bottom: 8px;
|
||||
@media (min-width: 750px) {
|
||||
font-size: 84px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.button {
|
||||
font-size: 20px;
|
||||
align-self: flex-start;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user