Skip to content

Commit ae81462

Browse files
committedMar 29, 2021
add coming soon page
1 parent 9368336 commit ae81462

File tree

4 files changed

+107
-1
lines changed

4 files changed

+107
-1
lines changed
 

‎85-sneaker shop/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<body>
1313
<header class="hero">
1414
<div class="container spacing">
15-
<h1 class="primary-title">Amazing sneakers at an amazing price</h1>
15+
<h1 class="primary-title">It's okay to be a little obsessed with shoes</h1>
1616
<p>
1717
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsa quam
1818
perspiciatis facilis beatae laudantium quidem enim sit sequi!

‎86-coming soon page/index.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- Based on Fun ways to animate CSS gradients by Kevin Powell (2019)
2+
see: https://www.youtube.com/watch?v=f3mwKLXpOLk -->
3+
4+
<!DOCTYPE html>
5+
<html lang="en">
6+
<head>
7+
<meta charset="UTF-8" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9+
<link rel="stylesheet" href="style.css" />
10+
<title>Coming Soon</title>
11+
</head>
12+
<body>
13+
<div class="container">
14+
<h1 class="title">We Are Coming Soon</h1>
15+
<button class="btn">Subscribe</button>
16+
</div>
17+
</body>
18+
</html>

‎86-coming soon page/style.css

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Bungee&display=swap");
2+
3+
:root {
4+
--gradient: linear-gradient(90deg, #7f7fd5, #86a8e7, #f64f59);
5+
}
6+
7+
* {
8+
box-sizing: border-box;
9+
}
10+
11+
body {
12+
font-family: "Bungee", cursive;
13+
display: flex;
14+
flex-direction: column;
15+
align-items: center;
16+
justify-content: center;
17+
min-height: 100vh;
18+
overflow: hidden;
19+
margin: 0;
20+
font-size: 1.125em;
21+
line-height: 1.6;
22+
background: #7f7fd5;
23+
/* we are playing with background-position since background-image doesn't support transitions */
24+
background-size: 300%;
25+
background-image: var(--gradient);
26+
animation: bg-animation 20s infinite alternate;
27+
}
28+
29+
@keyframes bg-animation {
30+
0% {
31+
background-position: left;
32+
}
33+
100% {
34+
background-position: right;
35+
}
36+
}
37+
38+
.container {
39+
background: #fff;
40+
width: 70vw;
41+
padding: 3rem;
42+
box-shadow: 0 0 3rem rgba(0, 0, 0, 0.15);
43+
display: flex;
44+
flex-direction: column;
45+
justify-content: center;
46+
align-items: center;
47+
}
48+
49+
.title {
50+
margin: 1rem;
51+
padding: 1rem;
52+
text-align: center;
53+
text-transform: uppercase;
54+
font-weight: 900;
55+
font-style: italic;
56+
font-size: 3rem;
57+
color: #7f7fd5;
58+
line-height: 0.8;
59+
background-image: var(--gradient);
60+
background-clip: text;
61+
-webkit-background-clip: text;
62+
color: transparent;
63+
-webkit-text-fill-color: transparent;
64+
background-size: 300%;
65+
transition: background-position 1s;
66+
}
67+
68+
.title:hover {
69+
background-position: right;
70+
}
71+
72+
.btn {
73+
color: #fff;
74+
font: inherit;
75+
border: 0;
76+
cursor: pointer;
77+
padding: 0.5rem 1.25rem;
78+
background: var(--gradient);
79+
background-size: 300%;
80+
background-position: left;
81+
transition: background-position 350ms;
82+
}
83+
84+
.btn:hover {
85+
background-position: right;
86+
}

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
| 83 | [Full-Screen Image Slider](https://github.com/solygambas/html-css-fifty-projects/tree/master/83-full%20screen%20image%20slider) | [Live Demo](https://codepen.io/solygambas/full/JjEoEdb) |
9292
| 84 | [Fluid Image Lightbox](https://github.com/solygambas/html-css-fifty-projects/tree/master/84-fluid%20image%20lightbox) | [Live Demo](https://codepen.io/solygambas/full/MWJKpwg) |
9393
| 85 | [Sneaker Shop](https://github.com/solygambas/html-css-fifty-projects/tree/master/85-sneaker%20shop) | [Live Demo](https://codepen.io/solygambas/full/KKazqNZ) |
94+
| 86 | [Coming Soon Page](https://github.com/solygambas/html-css-fifty-projects/tree/master/86-coming%20soon%20page) | [Live Demo](https://codepen.io/solygambas/pen/bGgwNaM) |
9495

9596
This repository is mostly based on 2 courses by Brad Traversy (2020):
9697

@@ -103,3 +104,4 @@ The other projects are adapted from various YouTube channels:
103104
- Shaun Pelling - [The Net Ninja](https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg)
104105
- Simo Edwin - [Dev Ed](https://www.youtube.com/channel/UClb90NQQcskPUGDIXsQEz5Q)
105106
- Gary Simon - [DesignCourse](https://www.youtube.com/channel/UCVyRiMvfUNMA1UPlDPzG5Ow)
107+
- [Kevin Powell](https://www.youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw)

0 commit comments

Comments
 (0)
Please sign in to comment.