-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
94 lines (83 loc) · 3.42 KB
/
index.php
File metadata and controls
94 lines (83 loc) · 3.42 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ToDoNotes</title>
<link rel="stylesheet" href="styles/first-page/container.css">
<link rel="stylesheet" href="styles/first-page/main.css">
<link rel="stylesheet" href="styles/first-page/global.css">
<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=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
</head>
<body>
<div class="page-container">
<div class="first-line">
<div class="logo">
<img src="images/ToDoNotes_icon.png" alt="logotype" class="logo-img">
<span class="text-logo">ToDoNotes</span>
</div>
<a href="">
<button class="btn">
Source Code
</button>
</a>
</div>
<div class="to-center">
<div style="display:block;">
<div class="second-line">
<span class="text-bold" id="existing-text">
Streamline your tasks: your ultimate
To-Do list & Notes hub
</span>
</div>
<div class="third-line">
<span class="text-under" id="log-in">
Unlock the full potential of our website:
Sign up or log in now to access exclusive features.
Rest assured, we respect your inbox –
no subscription emails, ever!
</span>
</div>
<div class="last-line">
<a href="log_in/log_in.php">
<button class="button-log">
Log In
</button>
</a>
<a href="sign_up/sign_up.php">
<button class="button-sign">
Sign Up
</button>
</a>
</div>
</div>
</div>
</div>
<footer class="footer">
<img src="images/desktop.png" class="bottom-image-desktop">
<img src="images/laptop.png" class="bottom-image-laptop">
<img src="images/tablet.png" class="bottom-image-tablet">
<img src="images/mobile.png" class="bottom-image-mobile">
</footer>
<?php
session_start();
// Check if signup success parameter is present in URL query string
if (isset($_GET['signup_success']) && $_GET['signup_success'] === 'true') {
$_SESSION['signup_success'] = true;
}
?>
<script>
//Change your text if signed up
if (<?php echo isset($_SESSION['signup_success']) ? 'true' : 'false'; ?>) {
document.getElementById("existing-text").innerText = "Congratulations! You're now part of our community!";
document.getElementById("log-in").innerText = "Welcome aboard! Your account is all set. Let's start organizing your tasks!"
}
</script>
<?php
// Unset the session variable after displaying the congratulations message
unset($_SESSION['signup_success']);
?>
</body>
</html>