vineelagampa TheFrogGod commited on
Commit
7551e05
·
verified ·
1 Parent(s): 63c2810

Added styling changes. (#7)

Browse files

- Added styling changes. (11532c90352a9e71482c03b17f228ff5778dfd35)


Co-authored-by: Aanya Choudhary <TheFrogGod@users.noreply.huggingface.co>

Files changed (1) hide show
  1. web/index.html +26 -91
web/index.html CHANGED
@@ -5,81 +5,7 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>CTRL + ALT + HEAL</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
- <link
9
- href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap"
10
- rel="stylesheet"
11
- />
12
- <style>
13
- :root {
14
- --tropical-indigo: rgb(120, 187, 242);
15
- --wisteria: rgb(197, 217, 251);
16
- --latte-cream: #ffffff;
17
- }
18
-
19
- body {
20
- font-family: "Rubik", sans-serif;
21
- background-color: var(--latte-cream);
22
- color: #333;
23
- }
24
-
25
- .fade-in {
26
- opacity: 0;
27
- transform: translateY(30px);
28
- transition: all 0.8s ease-out;
29
- }
30
- .fade-in.show {
31
- opacity: 1;
32
- transform: translateY(0);
33
- }
34
-
35
- .glass-card {
36
- background: rgba(162, 160, 160, 0.075);
37
- backdrop-filter: blur(12px);
38
- border-radius: 1rem;
39
- border: 1px solid rgba(255, 255, 255, 0.3);
40
- padding: 2rem;
41
- text-align: center;
42
- transition: transform 0.3s ease, box-shadow 0.3s ease;
43
- }
44
- .glass-card:hover {
45
- transform: translateY(-5px);
46
- box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
47
- }
48
-
49
- .nav-link {
50
- position: relative;
51
- padding-bottom: 4px;
52
- transition: color 0.3s;
53
- }
54
- .nav-link::after {
55
- content: "";
56
- position: absolute;
57
- width: 0%;
58
- height: 2px;
59
- bottom: 0;
60
- left: 0;
61
- background-color: var(--tropical-indigo);
62
- transition: width 0.3s ease;
63
- }
64
- .nav-link:hover::after {
65
- width: 100%;
66
- }
67
-
68
- .parallax {
69
- background-attachment: fixed;
70
- background-size: cover;
71
- background-position: center;
72
- position: relative;
73
- }
74
-
75
- /* Typing effect styles */
76
- #typed-heading,
77
- #typed-paragraph {
78
- overflow: hidden;
79
- white-space: nowrap;
80
- border-right: 2px solid var(--tropical-indigo);
81
- }
82
- </style>
83
  </head>
84
  <body>
85
  <!-- NAVBAR -->
@@ -101,9 +27,9 @@
101
  <ul class="hidden md:flex space-x-6 font-medium text-gray-800">
102
  <li><a href="index.html" class="nav-link">Home</a></li>
103
  <li><a href="analyzer.html" class="nav-link">Analyzer</a></li>
104
- <li><a href="past_data.html" class="nav-link">Past Reports</a></li>
105
- <li><a href="profile.html" class="nav-link">Profile</a></li>
106
- <li id="authNavItem"><a href="login.html" class="nav-link">Login</a></li>
107
  </ul>
108
 
109
  <!-- Hamburger Menu -->
@@ -169,9 +95,9 @@
169
 
170
  <!-- HERO SECTION -->
171
  <section
172
- class="relative min-h-[600px] flex items-center justify-center"
173
  style="
174
- background-image: url('https://videos.openai.com/vg-assets/assets%2Ftask_01k2qzfsscev8vmftcka1wp2et%2F1755299042_img_1.webp?st=2025-08-15T21%3A17%3A52Z&se=2025-08-21T22%3A17%3A52Z&sks=b&skt=2025-08-15T21%3A17%3A52Z&ske=2025-08-21T22%3A17%3A52Z&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skoid=3d249c53-07fa-4ba4-9b65-0bf8eb4ea46a&skv=2019-02-02&sv=2018-11-09&sr=b&sp=r&spr=https%2Chttp&sig=j0aFWc%2BchHFLtaa8JPylXkDFsrtP8zazpKyO8Edy5n8%3D&az=oaivgprodscus');
175
  background-size: cover;
176
  background-position: center;
177
  "
@@ -284,9 +210,18 @@
284
  </footer>
285
 
286
  <script type="module">
287
- import { initializeApp } from 'https://www.gstatic.com/firebasejs/9.22.0/firebase-app.js';
288
- import { getAuth, onAuthStateChanged, signOut } from 'https://www.gstatic.com/firebasejs/9.22.0/firebase-auth.js';
289
- import { getFirestore, doc, getDoc, updateDoc } from 'https://www.gstatic.com/firebasejs/9.22.0/firebase-firestore.js';
 
 
 
 
 
 
 
 
 
290
 
291
  const firebaseConfig = {
292
  apiKey: "AIzaSyAPhM_Ee7cLzyKHs5zyFy8g5ZOk9-pubRI",
@@ -294,7 +229,7 @@
294
  projectId: "login-tutorial-7a9e1",
295
  storageBucket: "login-tutorial-7a9e1.firebasestorage.app",
296
  messagingSenderId: "491093197824",
297
- appId: "1:491093197824:web:9f866..."
298
  };
299
 
300
  const app = initializeApp(firebaseConfig);
@@ -304,28 +239,28 @@
304
  let currentUser = null;
305
 
306
  onAuthStateChanged(auth, (user) => {
307
- const authNavItem = document.getElementById('authNavItem');
308
  if (authNavItem) {
309
  if (user) {
310
- authNavItem.innerHTML = '<button onclick="logout()" class="hover:text-[#6B9080] text-red-600">Logout</button>';
 
311
  } else {
312
- authNavItem.innerHTML = '<a href="login.html" class="hover:text-[#6B9080]">Login</a>';
 
313
  }
314
  }
315
  });
316
 
317
-
318
  window.logout = async () => {
319
  try {
320
  await signOut(auth);
321
  localStorage.clear();
322
- window.location.href = 'login.html';
323
  } catch (error) {
324
  console.error("Error signing out:", error);
325
  }
326
  };
327
 
328
-
329
  // Fade-in on scroll
330
  const fadeObserver = new IntersectionObserver(
331
  (entries) => {
@@ -375,4 +310,4 @@
375
  }
376
  </script>
377
  </body>
378
- </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>CTRL + ALT + HEAL</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="style.css" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  </head>
10
  <body>
11
  <!-- NAVBAR -->
 
27
  <ul class="hidden md:flex space-x-6 font-medium text-gray-800">
28
  <li><a href="index.html" class="nav-link">Home</a></li>
29
  <li><a href="analyzer.html" class="nav-link">Analyzer</a></li>
30
+ <li id="authNavItem">
31
+ <a href="login.html" class="nav-link">Login</a>
32
+ </li>
33
  </ul>
34
 
35
  <!-- Hamburger Menu -->
 
95
 
96
  <!-- HERO SECTION -->
97
  <section
98
+ class="relative min-h-[600px] flex items-center justify-center mt-20"
99
  style="
100
+ background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTPzQvOMCaRXTQhCvcYwmi_vdYxJtMpMW7KBA&s');
101
  background-size: cover;
102
  background-position: center;
103
  "
 
210
  </footer>
211
 
212
  <script type="module">
213
+ import { initializeApp } from "https://www.gstatic.com/firebasejs/9.22.0/firebase-app.js";
214
+ import {
215
+ getAuth,
216
+ onAuthStateChanged,
217
+ signOut,
218
+ } from "https://www.gstatic.com/firebasejs/9.22.0/firebase-auth.js";
219
+ import {
220
+ getFirestore,
221
+ doc,
222
+ getDoc,
223
+ updateDoc,
224
+ } from "https://www.gstatic.com/firebasejs/9.22.0/firebase-firestore.js";
225
 
226
  const firebaseConfig = {
227
  apiKey: "AIzaSyAPhM_Ee7cLzyKHs5zyFy8g5ZOk9-pubRI",
 
229
  projectId: "login-tutorial-7a9e1",
230
  storageBucket: "login-tutorial-7a9e1.firebasestorage.app",
231
  messagingSenderId: "491093197824",
232
+ appId: "1:491093197824:web:9f866...",
233
  };
234
 
235
  const app = initializeApp(firebaseConfig);
 
239
  let currentUser = null;
240
 
241
  onAuthStateChanged(auth, (user) => {
242
+ const authNavItem = document.getElementById("authNavItem");
243
  if (authNavItem) {
244
  if (user) {
245
+ authNavItem.innerHTML =
246
+ '<button onclick="logout()" class="hover:text-[#6B9080] text-red-600">Logout</button>';
247
  } else {
248
+ authNavItem.innerHTML =
249
+ '<a href="login.html" class="hover:text-[#6B9080]">Login</a>';
250
  }
251
  }
252
  });
253
 
 
254
  window.logout = async () => {
255
  try {
256
  await signOut(auth);
257
  localStorage.clear();
258
+ window.location.href = "login.html";
259
  } catch (error) {
260
  console.error("Error signing out:", error);
261
  }
262
  };
263
 
 
264
  // Fade-in on scroll
265
  const fadeObserver = new IntersectionObserver(
266
  (entries) => {
 
310
  }
311
  </script>
312
  </body>
313
+ </html>