-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
107 lines (95 loc) · 3.6 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mads985</title>
<!-- Placeholder for favicon -->
<link rel="icon" type="image/png" href="archlinux-512.png">
<!-- End of favicon placeholder -->
<style>
@font-face {
font-family: 'Daydream';
src: url('Daydream.ttf') format('truetype');
}
body {
margin: 0;
padding: 0;
background-image: url('background.png'); /* Replace 'background.jpg' with your background image path */
background-size: cover;
background-position: center;
background-attachment: fixed;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative; /* Added */
}
.logo {
width: 250px; /* Adjust width as needed */
height: auto; /* Keeps aspect ratio */
margin-top: 50px; /* Adjust top margin as needed */
}
.buttons {
display: flex;
justify-content: space-between;
margin-top: 20px; /* Decreased top margin */
width: 60%; /* Adjust width as needed */
}
.button {
width: 160px; /* Adjust width as needed */
height: 90px; /* Adjust height as needed */
background-image: url('button.png'); /* Replace 'button_image.png' with your button image path */
background-size: cover;
background-position: center;
border: none;
cursor: pointer;
transition: transform 0.3s ease;
position: relative;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none; /* Disable underlines */
}
.button span {
text-align: center;
color: white;
font-family: 'Daydream', sans-serif;
font-size: 15px; /* Adjust font size */
}
.button:hover {
transform: scale(1.1); /* Scale up slightly on hover */
}
.image-container {
position: absolute; /* Added */
bottom: 20px; /* Adjust distance from bottom as needed */
display: flex;
justify-content: space-around;
width: 100%; /* Adjust width as needed */
}
.image {
width: 100px; /* Adjust width as needed */
height: auto; /* Keeps aspect ratio */
}
</style>
</head>
<body>
<audio id="hoverSound">
<source src="quack_5.mp3" type="audio/mp3"> <!-- Replace 'hover_sound.mp3' with your sound file path -->
</audio>
<img src="mads985.png" alt="Logo" class="logo"> <!-- Replace 'logo.png' with your logo image path -->
<div class="buttons">
<a href="https://modrinth.com/user/mads985" class="button" onmouseover="playHoverSound()"><span>Modrinth</span></a>
<a href="https://www.fiverr.com/s/4v5L6R" class="button" onmouseover="playHoverSound()"><span>Pixel Art</span></a>
<a href="https://github.com/mads985" class="button" onmouseover="playHoverSound()"><span>Github</span></a>
<a href="https://www.youtube.com/watch?v=3kNPEOqCBEE" class="button" onmouseover="playHoverSound()"><span>My Feet</span></a>
</div>
<script>
function playHoverSound() {
var sound = document.getElementById("hoverSound");
sound.play();
}
</script>
</body>
</html>