-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgun.html
141 lines (134 loc) · 3.81 KB
/
gun.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body
{
background-image: url("ingun.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
/*Basic reset*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*Gallery container*/
.gallery
{
display: flex;
flex-direction: column;
gap: 10px;
padding: 20px;
width: 300px;
}
/*Photo container*/
.photo
{
position: relative;
overflow: hidden;
}
.photoimg
{
width: 100%;
height: auto;
display: block;
transition: transform 0.3s ease;
border-radius: 5px;
}
/*Hover effect*/
.photo:hover img
{
transform: scale(1.2);
z-index: 2;
}
}
.photo::before
{
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
transition: opacity 0.3s ease;
}
.photo:hover::before
{
opacity: 1;
}
.my-image
{
width: 300px;
height: 200px;
}
.fixed-width
{
width: 280px;
background-color: black;
/*background-color: #007bff;*/ /* Button color */
border: none;
color: #fff;
padding: 15px 40px;
outline: none;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
z-index: 0;
border-radius: 5px;
outline: none;
position: relative;
/*transition: background-color 0.3s ease, box-shadow 0.3s ease;*/
}
.fixed-width:hover
{
background-color: #0056b3; /* Darker color on hover */
box-shadow: 0 0 20px rgba(0, 123, 255, 0.7); /* Glowing effect */
}
</style>
</head>
<body>
<div class="gallery">
<div class="photo">
<a href="https://www.justdial.com/Guntur/Restaurants/nct-10408936?trkid=277-remotecity-fcat&term=">
<img src="knr.jpeg" alt="photo1" class="my-image">
<button type="button"class="fixed-width">Restaurants</button></a>
</a>
</div>
<div class="photo">
<a href="https://www.justdial.com/Guntur/Hotels/nct-10255012?trkid=174-remotecity-fcat&term=">
<img src="residency.jpg" alt="photo2" class="my-image">
<button type="button" class="fixed-width">Residency</button></a>
</a>
</div>
<div class="photo">
<a href="https://www.justdial.com/Guntur/Hospitals/nct-10253670?trkid=173-remotecity-fcat&term=">
<img src="hospital.jpg" alt="photo3" class="my-image">
<button type="button" class="fixed-width">Hospital</button></a>
</a>
</div>
<div class="photo">
<a href="https://www.justdial.com/Guntur/Shopping-Malls/nct-10310530?trkid=42674-remotecity-fcat&term=">
<img src="mall.jpg" alt="photo3" class="my-image">
<button type="button" class="fixed-width">Mall</button></a>
</a>
</div>
<div class="photo">
<a href="https://www.justdial.com/Guntur/Tourist-Attraction/nct-10596038?trkid=7101-remotecity-fcat&term=">
<img src="tourist.jpeg" alt="photo3" class="my-image">
<button type="button" class="fixed-width">Tourist places</button></a>
</a>
</div>
</div>
</body>
<script src="script.js"></script>
</html>