-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisitor.html
165 lines (144 loc) · 4.68 KB
/
visitor.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Visitor Portal</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" href="logo.png" type="image/x-icon" />
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
<style>
.portal-container {
display: grid;
grid-template-columns: 1fr 300px;
height: 100vh;
overflow: hidden;
}
.main-content {
padding: 2rem;
overflow-y: auto;
}
.notice-board {
background: rgba(0, 0, 0, 0.2);
padding: 1rem;
height: 100vh;
overflow-y: auto;
}
.notice-item {
background: rgba(255, 255, 255, 0.05);
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.nav-buttons {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 5.5rem;
margin-top: 3rem;
}
.nav-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 1rem;
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 8px;
color: white;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1rem;
}
.nav-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.nav-btn i {
font-size: 1.2rem;
}
.about-btn { border-left: 4px solid #33cc33; }
.map-btn { border-left: 4px solid #3366ff; }
.contact-btn { border-left: 4px solid #ff3366; }
.admission-btn { border-left: 4px solid #ffcc33; }
.back-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: rgba(255, 51, 102, 0.9);
border-radius: 8px;
border: none;
color: white;
cursor: pointer;
transition: all 0.3s ease;
}
.back-btn:hover {
background: #ff4477;
transform: translateY(-2px);
}
</style>
</head>
<body>
<div class="portal-container">
<div class="main-content">
<div class="header">
<h1>Visitor Portal</h1>
<button onclick="window.location.href='index.html'" class="back-btn">
<i class="fas fa-home"></i>
Back to Home
</button>
</div>
<div class="nav-buttons">
<!-- Replace 'your-admission-page.html' with your actual admission query page URL -->
<button onclick="window.location.href='https://docs.google.com/forms/d/e/1FAIpQLSe8liR01G3eDYACiY-bsU3V6xQlyUuphrJjt6nI56hnXfF--Q/viewform'" class="nav-btn admission-btn">
<i class="fas fa-user-graduate"></i>
Admission Query
</button>
<!-- Replace 'your-map-page.html' with your actual map page URL -->
<button onclick="window.location.href='map.html'" class="nav-btn map-btn">
<i class="fas fa-map-marked-alt"></i>
Campus Map
</button>
<!-- Replace 'your-about-page.html' with your actual about page URL -->
<button onclick="window.location.href='about-visitor.html'" class="nav-btn about-btn">
<i class="fas fa-info-circle"></i>
About Us
</button>
<!-- Replace 'your-contact-page.html' with your actual contact page URL -->
<button onclick="window.location.href='contact.html'" class="nav-btn contact-btn">
<i class="fas fa-envelope"></i>
Contact Admin
</button>
</div>
</div>
<div class="notice-board">
<h2>Notice Board</h2>
<div id="notices"></div>
</div>
</div>
<script>
function displayNotices() {
const database = JSON.parse(localStorage.getItem('database'));
const noticesDiv = document.getElementById('notices');
const visitorNotices = database.notices.filter(notice =>
notice.targets.includes('Visitors')
);
noticesDiv.innerHTML = visitorNotices.length > 0
? visitorNotices.map(notice => `
<div class="notice-item">
<p>${notice.text}</p>
</div>
`).join('')
: '<p>No notices available</p>';
}
displayNotices();
</script>
</body>
</html>