-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay.html
More file actions
104 lines (91 loc) · 2.09 KB
/
Copy pathdisplay.html
File metadata and controls
104 lines (91 loc) · 2.09 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
<!DOCTYPE html>
<html>
<head>
<title>Art Display</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #fafafa;
margin: 0;
padding: 0;
}
h1 {
text-align: center;
padding: 20px;
background-color: #333;
color: white;
margin: 0;
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
gap: 20px;
}
.art-card {
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
width: 250px;
padding: 10px;
text-align: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.art-card img {
width: 100%;
height: auto;
border-radius: 6px;
}
.art-card a {
display: inline-block;
margin-top: 10px;
color: #007BFF;
text-decoration: none;
}
.art-card a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Art Gallery</h1>
<div class="gallery">
<!-- Art Piece 1 -->
<div class="art-card">
<img src="starry.jpeg" alt="Art 1">
<h3>Starry Night</h3>
<p>by Vincent van Gogh</p>
<a href="art1.html">View Details</a>
</div>
<!-- Art Piece 2 -->
<div class="art-card">
<img src="monalisa.jpeg" alt="Art 2">
<h3>Mona Lisa</h3>
<p>by Leonardo da Vinci</p>
<a href="art2.html">View Details</a>
</div>
<!-- Art Piece 3 -->
<div class="art-card">
<img src="persistance.jpeg" alt="Art 3">
<h3>The Persistence of Memory</h3>
<p>by Salvador Dalí</p>
<a href="art3.html">View Details</a>
</div>
<!-- Art Piece 4 -->
<div class="art-card">
<img src="scream.jpeg" alt="Art 4">
<h3>The Scream</h3>
<p>by Edvard Munch</p>
<a href="art4.html">View Details</a>
</div>
<!-- Art Piece 5 -->
<div class="art-card">
<img src="girl.jpeg" alt="Art 5">
<h3>Girl with a Pearl Earring</h3>
<p>by Johannes Vermeer</p>
<a href="art5.html">View Details</a>
</div>
</div>
</body>
</html>