250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- xcode
- css3
- 백엔드
- 개발자
- jQuery
- ipad
- php
- 자바스크립트
- iPhone
- 애니메이션
- iOS 개발자
- hover
- 비전공자
- 비전공 개발자
- react
- button
- image
- Animation
- MAC
- IOS
- 프론트엔드
- HTML
- html5
- javascript
- keyframes
- CSS
- SWIFT
- effect
- 풀스택
- front-end
Archives
- Today
- Total
비전공자 개발일기
Movie Streaming Website 본문
728x90
SMALL
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MOVIE STREAMING WEBSITE</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav>
<a href="#" class="logo">MOVIES.</a>
<ul class="desktop">
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Sign Up / Log In</a></li>
</ul>
<div class="mobile">
<label for="toggle">☰</label>
<input type="checkbox" id="toggle">
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Sign Up / Log In</a></li>
</ul>
</div>
</nav>
<h1>Stream Any Movie at Anytime with No Individual Movie Costs or Rental Fees.</h1>
<div class="btnGroup">
<a href="#" class="btnWhite">TRY IT FREE</a>
<div class="whiteBG"></div>
</div>
<p>Thousands of movies with <b>no rental fees</b>. Our <br />monthly plan gives you unlimited access to our
<br />movie library.</p>
<p><b>Forget the theaters!</b> Exclusive access to <br />movies in theaters on release date.</p>
<img src="http://swingsetimagination.com/practice_web_moviesite/img/ipad-pro.png" alt="ipad" class="ipad">
<img src="http://swingsetimagination.com/practice_web_moviesite/img/iphone.png" alt="iphone" class="iphone">
</header>
<section class="new4KMovies">
<div class="sectionTitle">
<h2>NEW 4K MOVIES</h2>
<a href="#" class="btnGreen">VIEW MORE</a>
</div>
<ul>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/1.png"
alt="movie poster"></a></li>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/2.png"
alt="movie poster"></a></li>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/3.png"
alt="movie poster"></a></li>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/4.png"
alt="movie poster"></a></li>
</ul>
<ul>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/5.png"
alt="movie poster"></a></li>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/6.png"
alt="movie poster"></a></li>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/7.png"
alt="movie poster"></a></li>
<li><a href="#"><img src="http://swingsetimagination.com/practice_web_moviesite/img/8.png"
alt="movie poster"></a></li>
</ul>
</section>
<section class="callToAction">
<h1>Watch your favorite movies and explore similar titles. Get Started today for <span>$5.99</span>/month.</h1>
<a href="#" class="btnColor">GET STARTED</a>
</section>
<footer>
<div class="copy">
<a href="#" class="logo">MOVIES.</a>
<p>©2018 Movie Website, LLC.</p>
</div>
<ul>
<li><a href="#"></a>Account</li>
<li><a href="#"></a>Help Center</li>
<li><a href="#"></a>Terms</li>
<li><a href="#"></a>Privacy</li>
</ul>
</footer>
</body>
</html>
/* ----GLOBAL-----*/
*{
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
}
:root {
--main-black: #1E202B;
--main-blue: #08AEEA;
--main-green: #2AF598;
--main-gradient: linear-gradient(to right, var(--main-blue), var(--main-green));
}
html {
font-family: Source Sans Pro, sans-serif;
}
body{
width: 100%;
background-color: white;
}
h1{
font-size: 48px;
font-weight: 700;
color: var(--main-black);
}
h2{
font-size: 36px;
font-weight: 700;
color: var(--main-black);
}
p, li{
font-size: 16px;
font-weight: 400;
color: var(--main-black);
}
.btnWhite{
display: inline-block;
text-decoration: none;
width: 200px;
height: 60px;
line-height: 60px;
font-size: 20px;
font-weight: 700;
text-align: center;
margin-bottom: 75px;
background: #2AF598;
background: -webkit-linear-gradient(top left, #2AF598, #08AFEA);
background: -moz-linear-gradient(top left, #2AF598, #08AFEA);
background: linear-gradient(top left, #2AF598, #08AFEA);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.btnGroup {
position: relative;
z-index: 1;
}
.whiteBG{
background-color: white;
display: block;
height: 60px;
width: 200px;
position: absolute;
z-index: -1;
top:0;
border-radius: 3px;
}
.btnColor{
display: inline-block;
text-decoration: none;
width: 200px;
height: 60px;
line-height: 60px;
text-align: center;
background-image: var(--main-gradient);
color: white;
font-size: 20px;
font-weight: 700px;
border-radius: 3px;
}
.btnGreen{
color: var(--main-green);
text-decoration: none;
font-size: 20px;
font-weight: 700;
letter-spacing: 1px;
}
span {
color: var(--main-green);
}
/* ----Header / Nav-----*/
nav {
display: inline-block;
width: 100%;
}
nav a {
color: white;
text-decoration: none;
line-height: 100px;
}
nav a:hover {
color: var(--main-black);
}
.logo {
font-weight: 500;
font-size: 25px;
letter-spacing: 2px;
}
nav ul{
float: right;
list-style: none;
}
nav ul li{
display: inline-block;
margin-left: 50px;
}
header h1{
color: white;
width: 55%;
margin: 90px 0 40px 0;
}
header p{
color: white;
margin-bottom: 40px;
opacity: 0.9;
}
header {
background-image: url(http://swingsetimagination.com/practice_web_moviesite/img/header.png);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
height: 100vh;
min-height: 900px;
width: 90%;
padding: 0 5%;
}
.ipad {
width: 50%;
position: absolute;
right: 0;
bottom: 60px;
}
.iphone {
width: 40%;
position: absolute;
right: 4%;
top: 150px;
display: none;
}
.mobile {
display: none;
}
label {
margin: 0 40px 0 0;
font-size: 25px;
color: white;
cursor: pointer;
position: absolute;
top: 32px;
right: 0;
}
#toggle {
display: none;
}
.mobile ul {
text-align: center;
width: 100%;
display: none;
margin: 0;
background-color: rgba(255, 255, 255, 0.1);
}
.mobile ul li {
margin: 0;
width: 100%;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#toggle:checked ~ ul {
display: block;
}
/* ----New 4K Movies Section-----*/
.new4KMovies {
width: 90%;
padding: 0 5%;
margin-bottom: 160px;
}
.sectionTitle h2, .sectionTitle a {
display: inline-block;
vertical-align: middle;
}
.sectionTitle a {
margin-left: 20px;
}
.sectionTitle {
margin: 50px 0 20px 0;
}
.new4KMovies ul {
width: 100%;
display: flex;
list-style: none;
}
.new4KMovies ul li img{
width: 92%;
margin: 4%;
-webkit-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.16);
-moz-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.16);
box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.16);
}
/* ----Call to Action-----*/
.callToAction {
text-align: center;
width: 60%;
margin: 0 auto 200px auto;
}
.callToAction h1 {
margin-bottom: 40px;
}
/* ----Footer-----*/
footer a {
text-decoration: none;
color: var(--main-black);
}
footer ul{
list-style: none;
float: right;
}
footer ul li {
display: inline-block;
margin-left: 50px;
}
.copy a, .copy p {
display: inline-block;
vertical-align: middle;
}
.copy p {
margin-left: 20px;
}
footer {
width: 90%;
padding: 0 5%;
}
footer ul, .copy {
line-height: 80px;
display: inline-block;
}
/* ----Responsive-----*/
@media only screen and (max-width: 1200px) {
header{
height: 100vh;
min-height: 1000px;
}
header h1{
margin: 50px 0 40px 0;
}
.btnWhite{
margin-bottom: 80px;
}
.callToAction {
width: 90%;
}
.ipad {
display: none;
}
.iphone{display: block;}
}
@media only screen and (max-width: 900px) {
header h1{
width: 100%;
}
header {
background-position: left center;
}
.iphone {
display: none;
}
footer ul {
float: none;
display: block;
text-align: center;
}
.copy {
text-align: center;
display: block;
}
footer ul li{
margin: 0 25px;
}
}
@media only screen and (max-width: 700px) {
.new4KMovies ul {
flex-direction: column;
}
.desktop {
display: none;
}
.mobile {
display: block;
}
nav ul li {
margin: 0;
}
footer ul li{
display: none;
}
h1{
font-size: 36px;
}
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
Pulse effect on button hover (0) | 2023.02.06 |
---|---|
Cocacola (0) | 2023.02.05 |
Animated Gender Selection Page Design (0) | 2023.02.02 |
Shine effect on hover (0) | 2023.02.01 |
Bubbles on Button Clicked (0) | 2023.01.31 |