-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
170 lines (158 loc) · 7.09 KB
/
main.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
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
<!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 class="navbar bg-base-100">
<div class="navbar-start">
<div class="dropdown">
<div tabindex="0" role="button" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" /></svg>
</div>
<ul tabindex="0" class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li><a>Item 1</a></li>
<li>
<a>Parent</a>
<ul class="p-2">
<li><a>Submenu 1</a></li>
<li><a>Submenu 2</a></li>
</ul>
</li>
<li><a>Item 3</a></li>
</ul>
</div>
<a class="btn btn-ghost text-xl">daisyUI</a>
</div>
<div class="navbar-center hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<li><a>Item 1</a></li>
<li>
<details>
<summary>Parent</summary>
<ul class="p-2">
<li><a>Submenu 1</a></li>
<li><a>Submenu 2</a></li>
</ul>
</details>
</li>
<li><a>Item 3</a></li>
</ul>
</div>
<div class="navbar-end">
<a class="btn">Button</a>
</div>
</div>
<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="rsvp_login.html"><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>