-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
179 lines (147 loc) Β· 5 KB
/
index.html
File metadata and controls
179 lines (147 loc) Β· 5 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<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>Art - My hobby </title>
<style>
body {
background-image: url(https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/668/original/graffiti-1874452_1920.jpg?1665805672);
background: cover;
}
h1 {
text-align: center;
}
h2 {
text-align: center;
}
img {
max-width: 100%;
}
p {
font-size: 18px;
line-height: 1.5;
}
button {
display: block;
margin: 0 auto;
border: 1px solid rgb(95, 16, 6);
background: white;
font-size: 20px;
border-radius: 8px;
padding: 10px 15px;
transition: all 150ms ease-in-out;
}
button:hover {
background: rgb(167, 13, 57);
cursor: pointer;
}
.container {
max-width: 600px;
margin: 20px auto;
background: white;
padding: 20px;
border-radius: 10px;
}
footer {
text-align: center;
margin: 10px 0;
font-size: 25px;
}
.theme-button {
font-size: 16px;
background: rgb(167, 13, 57);
color: white;
padding: 5 8px;
}
.theme-button:hover {
color: black;
background: white;
}
.art-girl-picture {
border-radius: 10px;
transition: all 150ms ease-in-out;
}
.art-girl-picture:hover {
filter: contrast(80%);
transform: scale(1.1);
}
.grid {
margin: 15px 0;
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 20px;
}
.grid img {
width: 100%;
border-radius: 8px;
transition: all 150ms ease-in-out;
}
.grid img:hover {
transform: scale(2);
}
.dark {
background: black;
color: white;
}
.dark .container {
background: rgb(50, 8, 8);
}
</style>
</head>
<body>
<button class="theme-button">Change theme</button>
<div class="container">
<h1>
What is Art? π¨ π©πΎβπ¨ ππ
</h1>
<h2>One of my favorite hobbies</h2>
<a href="https://en.wikipedia.org/wiki/Art_history" target="_blank">
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/628/original/girl-2696947_1920.jpg?1665782791"
alt="girl face" class="art-girl-picture" />
</a>
<div class="grid">
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/629/original/jazz-1273574_1920.jpg?1665783396"
alt="jazz" />
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/630/original/colorful-2137080_1920.jpg?1665783497"
alt="color pencils" />
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/631/original/portrait-3113651_1920.jpg?1665783546"
alt="portrait" />
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/635/original/louvre.jpeg?1665784231"
alt="louvre" />
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/634/original/graffiti-508272_1920.jpg?1665783670"
alt="graffiti" />
<img src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/048/662/original/graffiti-623003_1920.jpg?1665802468"
alt="graffiti2">
</div>
<p>
The definition of Art is the expression or application of human creative skill and imagination, typically in
a
visual form such as painting or sculpture, producing works to be appreciated primarily for their beauty or
emotional power.
<br /><br>
π
<a href="https://en.wikipedia.org/wiki/Art_history" target="_blank">
<strong>Read on wikipedia</strong>
</a>
</p>
<button>Learn about Art</button>
</div>
<footer>
<strong>Coded with β€οΈ by Yandia Alexis</strong>
</footer>
<script>
function changeTheme() {
let body = document.querySelector("body");
if (body.classList.contains("dark")) {
body.classList.remove("dark");
} else {
body.classList.add("dark");
}
}
let themeButton = document.querySelector(".theme-button");
themeButton.addEventListener("click", changeTheme);
</script>
</body>
</html>