|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | | - <meta charset="UTF-8"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | | - <title>Elevate Your Career | Simpatico HR</title> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | + <title>Current Openings | Simpatico HR</title> |
7 | 7 | <link rel="stylesheet" href="CSS/style.css"> |
| 8 | + <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> |
8 | 9 | <style> |
9 | | - /* This removes the boring white background */ |
10 | | - body { |
11 | | - background: linear-gradient(135deg, #0a0a1a 0%, #001a33 100%); |
12 | | - color: white; |
13 | | - min-height: 100vh; |
14 | | - } |
15 | | - |
16 | | - /* This creates a professional 'Glass' card for the form */ |
17 | | - .glass-container { |
18 | | - max-width: 900px; |
19 | | - margin: -80px auto 60px; /* Pulls the form up into the banner area */ |
20 | | - padding: 30px; |
21 | | - background: rgba(255, 255, 255, 0.05); |
22 | | - backdrop-filter: blur(15px); |
23 | | - border-radius: 24px; |
24 | | - border: 1px solid rgba(255, 255, 255, 0.1); |
25 | | - box-shadow: 0 25px 50px rgba(0,0,0,0.5); |
26 | | - z-index: 10; |
27 | | - position: relative; |
28 | | - } |
29 | | - |
30 | | - iframe { |
31 | | - width: 100%; |
32 | | - height: 1800px; |
33 | | - border-radius: 12px; |
34 | | - background: #ffffff; /* Contrast so the form is easy to read */ |
35 | | - border: none; |
36 | | - } |
| 10 | + .job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 40px 20px; max-width: 1200px; margin: auto; } |
| 11 | + .job-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 5px solid #007bff; } |
| 12 | + .job-card h3 { margin-bottom: 10px; color: #333; } |
| 13 | + .job-card p { font-size: 0.9rem; color: #666; margin-bottom: 15px; } |
| 14 | + .apply-btn { display: inline-block; background: #007bff; color: white; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: bold; } |
37 | 15 | </style> |
38 | 16 | </head> |
39 | 17 | <body> |
40 | | - |
41 | 18 | <nav> |
42 | 19 | <div class="nav-inner"> |
43 | | - <a href="index.html" class="logo-link">Simpatico HR</a> |
| 20 | + <div class="logo"><strong style="font-size: 1.6rem; color: #007bff;">Simpatico HR</strong></div> |
44 | 21 | <ul class="nav-links"> |
45 | 22 | <li><a href="index.html">Home</a></li> |
46 | 23 | <li><a href="about.html">About</a></li> |
|
50 | 27 | </div> |
51 | 28 | </nav> |
52 | 29 |
|
53 | | - <header class="page-banner" style="height: 60vh;"> |
54 | | - <h1>Elevate Your Career</h1> |
55 | | - <p>Apply to Simpatico HR Consultancy</p> |
| 30 | + <header class="page-banner-small"> |
| 31 | + <h1>Current Job Openings</h1> |
| 32 | + <p>Find your next global opportunity</p> |
56 | 33 | </header> |
57 | 34 |
|
58 | | - <div class="glass-container"> |
59 | | - <iframe |
60 | | - src="https://docs.google.com/forms/d/e/1FAIpQLSdB_kE4VNDfxRINcg125miaAo-v-vBNnGW7TuXWPzAribpLwQ/viewform?embedded=true"> |
61 | | - Loading… |
62 | | - </iframe> |
| 35 | + <div id="jobList" class="job-grid"> |
| 36 | + <p>Loading jobs...</p> |
63 | 37 | </div> |
64 | 38 |
|
65 | | - <footer> |
66 | | - <p>© 2026 Simpatico HR Consultancy. All rights reserved.</p> |
67 | | - </footer> |
| 39 | + <script> |
| 40 | + const SUPABASE_URL = "https://cvkxtsvgnynxexmemfuy.supabase.co"; |
| 41 | + const SUPABASE_ANON_KEY = "sb_publishable_DGT-x86M-BwI4zA7S_97CA_3v3O3b0A"; |
| 42 | + const supabase = window.supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY); |
| 43 | + |
| 44 | + async function fetchJobs() { |
| 45 | + const { data: jobs, error } = await supabase |
| 46 | + .from('jobs') |
| 47 | + .select('*') |
| 48 | + .eq('is_active', true); |
| 49 | + |
| 50 | + const container = document.getElementById('jobList'); |
| 51 | + container.innerHTML = ''; |
68 | 52 |
|
| 53 | + if (error || !jobs.length) { |
| 54 | + container.innerHTML = '<p>No active openings at the moment. Please check back soon!</p>'; |
| 55 | + return; |
| 56 | + } |
| 57 | + |
| 58 | + jobs.forEach(job => { |
| 59 | + container.innerHTML += ` |
| 60 | + <div class="job-card"> |
| 61 | + <h3>${job.title}</h3> |
| 62 | + <p><strong>Location:</strong> ${job.location || 'Remote / Global'}</p> |
| 63 | + <p>${job.description ? job.description.substring(0, 100) + '...' : 'Click apply to view details.'}</p> |
| 64 | + <a href="apply.html?job_id=${job.id}" class="apply-btn">Apply Now</a> |
| 65 | + </div> |
| 66 | + `; |
| 67 | + }); |
| 68 | + } |
| 69 | + fetchJobs(); |
| 70 | + </script> |
69 | 71 | </body> |
70 | 72 | </html> |
71 | 73 |
|
0 commit comments