Skip to content

Commit 9fbb45e

Browse files
committed
feat: day 1
1 parent 392f471 commit 9fbb45e

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

001-expanding cards/index.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
1010
crossorigin="anonymous"
1111
/> -->
12+
<!-- Add a favicon. -->
13+
<link rel="icon" href="favicon.ico" />
1214
<link rel="stylesheet" href="style.css" />
1315
<title>Expanding cards</title>
1416
</head>
@@ -20,39 +22,49 @@
2022
background-image: url('https://images.unsplash.com/photo-1610212570473-6015f631ae96?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
2123
"
2224
>
23-
<h3>Explore the world</h3>
25+
<!-- Change the Card Titles -->
26+
<h3>Canada</h3>
2427
</div>
2528
<div
2629
class="panel"
2730
style="
2831
background-image: url('https://images.unsplash.com/photo-1606838830438-5f380a664a4e?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1350&q=80');
2932
"
3033
>
31-
<h3>Explore the world</h3>
34+
<h3>Argentina</h3>
3235
</div>
3336
<div
3437
class="panel"
3538
style="
3639
background-image: url('https://images.unsplash.com/photo-1606059100151-b09b22709477?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1778&q=80');
3740
"
3841
>
39-
<h3>Explore the world</h3>
42+
<h3>Paris</h3>
4043
</div>
4144
<div
4245
class="panel"
4346
style="
4447
background-image: url('https://images.unsplash.com/photo-1603048675767-6e79ff5b8fc1?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
4548
"
4649
>
47-
<h3>Explore the world</h3>
50+
<h3>Tokyo</h3>
4851
</div>
4952
<div
5053
class="panel"
5154
style="
5255
background-image: url('https://images.unsplash.com/photo-1595433502559-d8f05e6a1041?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
5356
"
5457
>
55-
<h3>Explore the world</h3>
58+
<h3>Brazil</h3>
59+
</div>
60+
<!-- Add a New Panel -->
61+
<div
62+
class="panel"
63+
style="
64+
background-image: url('https://images.unsplash.com/photo-1746105625407-5d49d69a2a47?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
65+
"
66+
>
67+
<h3>Vietnam</h3>
5668
</div>
5769
</div>
5870
<script src="script.js"></script>

001-expanding cards/style.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ body {
2424
background-position: center;
2525
background-repeat: no-repeat;
2626
height: 80vh;
27-
border-radius: 50px;
27+
/* Adjust Card Corner Style */
28+
border-radius: 0px;
2829
color: #fff;
2930
cursor: pointer;
3031
flex: 0.5;
3132
margin: 10px;
3233
position: relative;
33-
transition: flex 0.7s ease-in;
34-
-webkit-transition: all 700ms ease-in;
34+
/* Modify Transition Speed */
35+
transition: flex 0.2s ease-in;
36+
-webkit-transition: all 200ms ease-in;
3537
}
3638

3739
.panel h3 {
@@ -50,6 +52,8 @@ body {
5052
.panel.active h3 {
5153
opacity: 1;
5254
transition: opacity 0.3s ease-in 0.4s;
55+
/* Change Active Panel Text Color */
56+
color: silver;
5357
}
5458

5559
@media (max-width: 480px) {

0 commit comments

Comments
 (0)