Skip to content

Commit 6c80510

Browse files
committed
feat: day 7
1 parent dafc030 commit 6c80510

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

007-split landing page/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
<body>
1010
<div class="container">
1111
<div class="split left">
12-
<h1>PlayStation 5</h1>
13-
<a href="#" class="btn">Buy Now</a>
12+
<!-- Change the Titles -->
13+
<h1>Ocean Breeze</h1>
14+
<!-- Change Button Text -->
15+
<a href="#" class="btn">Dive In</a>
1416
</div>
1517
<div class="split right">
16-
<h1>Xbox Series X</h1>
17-
<a href="#" class="btn">Buy Now</a>
18+
<h1>Mountain View</h1>
19+
<a href="#" class="btn">Explore Peaks</a>
1820
</div>
1921
</div>
2022
<script src="script.js"></script>

007-split landing page/style.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
22

33
:root {
4-
--left-bg-color: rgba(87, 84, 236, 0.7);
5-
--right-bg-color: rgba(43, 43, 43, 0.8);
6-
--left-btn-hover-color: rgba(87, 84, 236, 1);
7-
--right-btn-hover-color: rgba(28, 122, 28, 1);
8-
--hover-width: 75%;
9-
--minimize-width: 25%;
10-
--transition-speed: 1s;
4+
--left-bg-color: rgba(97, 135, 160, 0.7);
5+
--right-bg-color: rgba(97, 96, 50, 0.8);
6+
/* Change Button Styling */
7+
--left-btn-hover-color: rgba(40, 61, 74, 1);
8+
--right-btn-hover-color: rgba(24, 24, 13, 1);
9+
/* Modify Hover Widths */
10+
--hover-width: 60%;
11+
--minimize-width: 40%;
12+
/* Adjust Transition Speed */
13+
--transition-speed: 0.5s;
1114
}
1215

1316
* {
@@ -40,7 +43,7 @@ h1 {
4043
left: 50%;
4144
top: 40%;
4245
transform: translateX(-50%);
43-
border: #fff solid 0.2rem;
46+
border: rgba(255, 255, 255, 0.25) solid 0.2rem;
4447
text-decoration: none;
4548
font-size: 1rem;
4649
font-weight: bold;
@@ -75,7 +78,8 @@ h1 {
7578

7679
.split.left {
7780
left: 0;
78-
background: url("https://images.unsplash.com/photo-1606144042614-b2417e99c4e3?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
81+
/* Use Different Background Images */
82+
background: url("https://images.unsplash.com/photo-1542914119-8da84e777eb4?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1762&q=80")
7983
no-repeat center / cover;
8084
}
8185

@@ -89,7 +93,7 @@ h1 {
8993

9094
.split.right {
9195
right: 0;
92-
background: url("https://images.unsplash.com/photo-1607853827120-6847830b38b0?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1762&q=80")
96+
background: url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80")
9397
no-repeat center / cover;
9498
}
9599

0 commit comments

Comments
 (0)