-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
115 lines (100 loc) · 3.5 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
<!-- This is an OpenSource Project:
Give Credits before using it anywhere and changes.
Thanks to
Rohit Vishu Achari
Varun Gaur
Vansh Dixit
for Helping and Fixing everything -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Study Session</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@500&display=swap');
body {
margin: 0%;
padding: 0%;
background-image: url(images/wall5.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
font-family: 'Open Sans', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#welcomeModal {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.8);
/* Use a semi-transparent color for the modal background */
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 10px;
text-align: center;
/* Adjust the blur value as needed */
}
#welcomeModal h2 {
color: #333;
}
/* Style the button */
button {
background-color: #0a0a23; /* Black background color */
color: #ffffff; /* White text color */
padding: 15px; /* Add padding to the button */
border: none; /* Remove default border */
border-radius: 10px; /* Round up the edges */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow effect */
font-size: 16px; /* Increase font size */
cursor: pointer; /* Change cursor to pointing hand */
}
/* Style the button when hovered */
button:hover {
background-color: #4c90af; /* Change background color to blue on hover */
transition: background-color 0.3s ease; /* Smooth transition effect */
}
/* Style the button when active ( clicked ) */
button:active {
transform: translateY(2px); /* Move the button slightly down on click */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add a deeper shadow effect on click */
}
#continueBtn {
background-color: rgb(76, 144, 175);
color: #fff;
border: none;
padding: 10px 20px;
margin-top: 20px;
cursor: pointer;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="welcontianer">
<div id="welcomeModal">
<h2>Welcome to Study Session!</h2>
<p>Thanks for visiting this site. This is still in development! Would you like to improve / suggest something <br>
visit <a href="https://github.com/iamharshit188/study-session">here</a> or Continue with your Studies </p>
<button id="continueBtn">Continue</button>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
var modal = document.getElementById('welcomeModal');
var continueBtn = document.getElementById('continueBtn');
// Show the modal when the page loads
modal.style.display = 'block';
// Redirect to the second page when the "Continue" button is clicked
continueBtn.addEventListener('click', function () {
window.location.href = "secpage.html"; // Change the URL accordingly
});
});
</script>
</body>
</html>