Skip to content

Commit d6483fd

Browse files
authored
Refactor jobs.html for updated layout and functionality
1 parent 57e5bb5 commit d6483fd

1 file changed

Lines changed: 46 additions & 44 deletions

File tree

jobs.html

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,23 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<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>
77
<link rel="stylesheet" href="CSS/style.css">
8+
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
89
<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; }
3715
</style>
3816
</head>
3917
<body>
40-
4118
<nav>
4219
<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>
4421
<ul class="nav-links">
4522
<li><a href="index.html">Home</a></li>
4623
<li><a href="about.html">About</a></li>
@@ -50,22 +27,47 @@
5027
</div>
5128
</nav>
5229

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>
5633
</header>
5734

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>
6337
</div>
6438

65-
<footer>
66-
<p>&copy; 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 = '';
6852

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>
6971
</body>
7072
</html>
7173

0 commit comments

Comments
 (0)