-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.html
177 lines (168 loc) · 4.77 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
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Course Dashboard</title>
<link rel="stylesheet" href="main.css">
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #000; /* Black background */
color: #fff; /* White text */
}
header {
background-color: #1a1a1a;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.8);
}
header h1 {
color: #ffd700; /* Yellow */
}
.container {
padding: 2rem;
}
.section {
margin-bottom: 2rem;
}
h2 {
color: #ffd700;
margin-bottom: 1rem;
}
select, button {
background-color: #333;
color: #ffd700;
border: 2px solid #ffd700;
padding: 0.5rem;
margin-right: 1rem;
border-radius: 5px;
font-size: 1rem;
}
button {
cursor: pointer;
}
button:hover {
background-color: #ffd700;
color: #000;
}
.card {
background-color: #1a1a1a;
padding: 1rem;
border: 1px solid #ffd700;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(255, 215, 0, 0.2);
margin-bottom: 1rem;
}
.card:hover {
box-shadow: 0px 8px 16px rgba(255, 215, 0, 0.4);
}
.file-upload {
margin-top: 2rem;
}
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #000; /* Black background */
color: #ffd700; /* Yellow text */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
h1 {
margin-bottom: 20px;
font-size: 3rem;
text-align: center;
text-shadow: 0px 4px 8px rgba(255, 215, 0, 0.8);
}
button {
background-color: #333;
color: #ffd700;
border: 2px solid #ffd700;
padding: 1rem 2rem;
font-size: 1.2rem;
border-radius: 5px;
margin: 10px;
cursor: pointer;
transition: all 0.3s ease;
}
button:hover {
background-color: #ffd700;
color: #000;
}
.buttons {
display: flex;
flex-direction: column;
align-items: center;
}
</style>
</head>
<body>
<header>
<h1>Course Dashboard</h1>
<nav>
<button onclick="alert('Login functionality pending')">Login</button>
</nav>
</header>
<div class="container">
<div class="section">
<h2>BTech</h2>
<label for="btech-branches">Select Branch:</label>
<select id="btech-branches" onchange="redirectToBranch('btech')">
<option value="" disabled selected>Select</option>
<option value="computer-engineering">Computer Engineering</option>
<option value="cyber-security">Cyber Security</option>
<option value="ai-ds">Artificial Intelligence and Data Science</option>
<option value="information-technology">Information Technology</option>
<option value="electronics-telecom">Electronics and Telecommunication</option>
<option value="electronics-compsci">Electronic & Computer Science</option>
<option value="electronics-vlsi">Electronic Engineering (VLSI)</option>
<option value="electronics-comm">Electronics & Communication (ACT)</option>
</select>
</div>
<div class="section">
<h2>BVoc</h2>
<label for="bvoc-branches">Select Branch:</label>
<select id="bvoc-branches" onchange="redirectToBranch('bvoc')">
<option value="" disabled selected>Select</option>
<option value="cyber-security">Cyber Security</option>
<option value="ai-ds">Artificial Intelligence and Data Science</option>
</select>
</div>
<div class="file-upload">
<h2>File Upload</h2>
<p>Upload documents for the selected course:</p>
<input type="file" id="fileInput" />
<button onclick="uploadFile()">Upload</button>
</div>
<div class="uploaded-files">
<h2>Uploaded Files</h2>
<div class="card">No files uploaded yet...</div>
</div>
</div>
<script>
function redirectToBranch(course) {
const selectedBranch = document.getElementById(`${course}-branches`).value;
if (selectedBranch) {
alert(`Redirecting to ${selectedBranch} page!`);
// Simulating a redirect
// Replace with actual redirection URL or logic
}
}
function uploadFile() {
const fileInput = document.getElementById('fileInput');
if (fileInput.files.length > 0) {
const fileName = fileInput.files[0].name;
alert(`File "${fileName}" uploaded successfully!`);
} else {
alert("Please select a file to upload.");
}
}
</script>
</body>
</html>