Skip to content

Commit ed349ca

Browse files
committed
grid background done
1 parent 9e8ebea commit ed349ca

File tree

3 files changed

+64
-6
lines changed

3 files changed

+64
-6
lines changed

wa/wa11/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const btn = document.querySelector('button');
55
const overlay = document.querySelector('.overlay');
66

77
/* Declaring the array of image filenames */
8-
const images = ['pic1.jpg', 'pic2.jpg', 'pic3.jpg', 'pic4.jpg', 'pic5.jpg'];
8+
const images = ['vegas1.jpg', 'vegas2.jpg', 'vegas3.jpg', 'vegas4.jpg', 'vegas5.jpg'];
99

1010
/* Declaring the alternative text for each image file */
1111
const altTxt = ['Closeup of a human eye', 'Closeup of a rock', 'Closeup of some flowers', 'Egyptian painting', 'A butterfly with its wings open'];

wa/wa11/style.css

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,47 @@ h1 {
1111
0px 0px 60px hotpink,
1212
0px 0px 75px hotpink,
1313
0px 0px 100px hotpink,
14-
0px 0px 150px hotpink;
14+
0px 0px 125px hotpink;
15+
animation: flickerText 1.5s infinite alternate;
1516
}
1617

1718
body {
1819
background-color: black;
1920
width: 640px;
2021
margin: 0 auto;
22+
background-image:
23+
linear-gradient(hotpink 2px, transparent 1px),
24+
linear-gradient(90deg, hotpink 2px, transparent 1px),
25+
radial-gradient(circle at center, hotpink 0%, transparent 50%);
26+
background-size: 60px 60px;
27+
background-position: center;
28+
position: relative;
29+
}
30+
31+
body:after {
32+
content: "";
33+
position: fixed;
34+
top: 0;
35+
left: 0;
36+
right: 0;
37+
bottom: 0;
38+
background: radial-gradient(circle at center, transparent 0%, black 70%);
39+
z-index: -1;
2140
}
2241

2342
.full-img {
24-
/* border-radius: 5px; */
2543
position: relative;
2644
display: block;
2745
width: 640px;
2846
height: 480px;
2947
}
3048

49+
.displayed-img{
50+
width: 639px;
51+
height: 479px;
52+
border-radius: 7px;
53+
}
54+
3155
.overlay {
3256
border: 1px solid white;
3357
border-radius: 10px;
@@ -37,8 +61,8 @@ body {
3761
position: absolute;
3862
top: 0;
3963
left: 0;
40-
width: 639px;
41-
height: 479px;
64+
width: 638px;
65+
height: 478px;
4266
background-color: rgba(0,0,0,0);
4367
}
4468

@@ -51,11 +75,45 @@ button {
5175
cursor: pointer;
5276
top: 2px;
5377
left: 2px;
78+
border-radius: 7px;
79+
}
80+
81+
.thumb-bar{
82+
position: absolute;
83+
width: 640px;
84+
border-radius: 7px;
85+
box-shadow: 0px 0px 5px white,
86+
0px 0px 15px lightpink,
87+
0px 0px 25px hotpink;
5488
}
5589

5690
.thumb-bar img {
5791
display: block;
5892
width: 20%;
5993
float: left;
6094
cursor: pointer;
95+
}
96+
97+
.thumb-bar img:nth-child(1){
98+
border-radius: 7px 0 0 7px;
99+
}
100+
101+
.thumb-bar img:nth-child(5){
102+
border-radius: 0 7px 7px 0;
103+
}
104+
105+
@keyframes flickerText{
106+
0%, 18%, 22%, 25%, 53%, 57%, 100%{
107+
text-shadow: 0px 0px 5px white,
108+
0px 0px 15px white,
109+
0px 0px 25px lightpink,
110+
0px 0px 50px hotpink,
111+
0px 0px 60px hotpink,
112+
0px 0px 75px hotpink,
113+
0px 0px 100px hotpink,
114+
0px 0px 150px hotpink;
115+
}
116+
20%, 24%, 55%{
117+
text-shadow: none;
118+
}
61119
}

wa/wa11/wa11.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<h1>Vegas Spring Break</h1>
1616

1717
<div class="full-img">
18-
<img class="displayed-img" src="images/pic1.jpg" alt="Closeup of a human eye">
18+
<img class="displayed-img" src="images/vegas1.jpg" alt="Closeup of a human eye">
1919
<div class="overlay"></div>
2020
<button class="dark">Pink-ify</button>
2121
</div>

0 commit comments

Comments
 (0)