-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (119 loc) · 5.57 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!doctype html>
<html data-theme="autumn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Demo</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Courgette&family=Dosis:[email protected]&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/cd89490de5.js" crossorigin="anonymous"></script>
<style>
@keyframes fadeInBackground {
from {
opacity: 0;
filter: blur(10px);
}
to {
opacity: 1;
filter: blur(0px);
}
}
#mainImage {
animation: fadeInBackground 0.5s ease-out forwards;
}
.corugette {
font-family: "Courgette", cursive;
font-weight: 400;
font-style: normal;
}
.dosis {
font-family: "Dosis", sans-serif;
font-optical-sizing: auto;
font-style: normal;
}
.middle-background {
background-position-x:1000px !important;
}
</style>
</head>
<body class="bg-base-300">
<div id="mainImage" class="hero min-h-screen max-md:!bg-[top_left_1200px] max-sm:!bg-[top_left_900px]">
<div class="hero-overlay bg-opacity-60">
</div>
<div class="hero-content text-center text-neutral-content">
<div class="max-w-md">
<h1 class="text-xl font-bold corugette flex flex-row justify-center pt-0 px-10">Denver, Colorado</h1>
<h1 class="text-5xl font-bold corugette">Kolten <i class="fa-solid fa-circle-ampersand fa-xs"></i> Angelica</h1>
<h1 class="text-xl font-bold corugette flex flex-row justify-between pt-0 px-10"><span>Robison</span> <span>Manuel</span></h1>
<div class="grid grid-flow-col gap-5 text-center auto-cols-max inline-grid">
<div class="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span class="font-mono text-5xl">
<span id="countday">-</span>
</span>
days
</div>
<div class="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span class="countdown font-mono text-5xl">
<span id="counthour" style="--value:-;"></span>
</span>
hours
</div>
<div class="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span class="countdown font-mono text-5xl">
<span id="countminute" style="--value:-;"></span>
</span>
min
</div>
<div class="flex flex-col p-2 bg-neutral rounded-box text-neutral-content">
<span class="countdown font-mono text-5xl">
<span id="countsecond" style="--value:-;"></span>
</span>
sec
</div>
</div>
<h1 class="text-xl font-bold corugette flex flex-row justify-center pt-0 px-10 mt-2">March 14th, 2025</h1>
<p class="mb-5 dosis text-3xl">We are getting married! Thank you for joining us and celebrating with our two amazing families <i class="fa-sharp fa-solid fa-heart"></i></p>
<button class="btn btn-outline dosis btn-lg !border-white !text-white">Event Details</button>
<button class="btn btn-outline dosis btn-lg !border-white !text-white">Gallery</button>
<a href=""><button class="btn btn-success dosis btn-lg !text-white" >RSVP</button></a>
</div>
</div>
</div>
<footer class="footer items-center p-4 bg-neutral text-neutral-content">
<div class="items-center grid-flow-col">
<p>Copyright © <span id="year"></span> Kolten Robison</p>
</div>
</footer>
</body>
<script>
document.getElementById('mainImage').style.backgroundImage = "url('AXH27858_websafe.jpg')";
const countDownDate = new Date("Mar 14, 2025 17:00:00").getTime();
const currentYear = new Date().getFullYear();
document.getElementById("year").innerHTML = currentYear
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("countday").innerHTML = days
document.getElementById("counthour").style.setProperty("--value", hours)
document.getElementById("countminute").style.setProperty("--value", minutes)
document.getElementById("countsecond").style.setProperty("--value", seconds)
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</html>