Skip to content

Commit 8a14784

Browse files
Modern CSS redesign and dependency updates
- Refresh styling with cleaner, modern design - Add smooth hover effects and improved shadows - Switch to CSS Grid for responsive layout - Improve filter sidebar with rounded corners - Add mobile responsiveness - Update dependencies (dompurify, gatsby)
1 parent 9c93289 commit 8a14784

2 files changed

Lines changed: 159 additions & 23 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
1515
},
1616
"dependencies": {
17-
"dompurify": "2.2.2",
18-
"gatsby": "^5.14.0",
17+
"dompurify": "^2.5.8",
18+
"gatsby": "^3.3.1",
1919
"marked": "^4.1.1",
2020
"react": "18.2.0",
2121
"react-dom": "18.2.0",

src/styles/global.css

Lines changed: 157 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ a {
2828
color: #2c3e50;
2929
font-weight: bold;
3030
}
31-
.page {
32-
}
31+
3332
.content {
3433
padding-left: 1rem;
3534
padding-right: 1rem;
@@ -137,34 +136,171 @@ a {
137136
font-weight: bold;
138137
font-size: 0.9rem;
139138
}
140-
.job a {
141-
}
139+
142140
.job .meta a {
143-
font-weight: normal;
141+
142+
* {
143+
box-sizing: border-box;
144144
}
145-
.badges {
146-
float: right;
145+
146+
html {
147+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
148+
Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
149+
-webkit-font-smoothing: antialiased;
147150
}
148-
.badge {
151+
152+
body {
153+
margin: 0;
154+
background: #f7f9fc;
155+
color: #2c3e50;
156+
}
157+
158+
159+
.content {
160+
max-width: 1200px;
161+
margin: auto;
162+
padding: 2rem;
163+
}
164+
165+
.jobsLayout {
166+
display: flex;
167+
gap: 2rem;
168+
}
169+
170+
171+
.leftColumn {
172+
width: 250px;
173+
flex-shrink: 0;
149174
}
150-
.badge .tooltip {
151-
visibility: hidden;
152-
background-color: #007d8a;
175+
176+
.filter {
177+
background: white;
178+
padding: 1.5rem;
179+
border-radius: 10px;
180+
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
181+
}
182+
183+
.section {
184+
font-weight: 600;
185+
margin-top: 1rem;
186+
margin-bottom: 0.5rem;
187+
}
188+
189+
.filter label {
190+
display: block;
191+
margin: 0.5rem 0;
192+
font-size: 0.9rem;
193+
}
194+
195+
.reset {
196+
margin-top: 1.5rem;
197+
background: #007d8a;
153198
color: white;
154-
text-align: center;
155-
padding-left: 0.5rem;
156-
padding-right: 0.5rem;
157-
padding-top: 0.25rem;
158-
padding-bottom: 0.25rem;
199+
border: none;
200+
padding: 0.6rem;
159201
border-radius: 6px;
202+
cursor: pointer;
203+
transition: 0.3s;
204+
}
205+
206+
.reset:hover {
207+
background: #005f68;
208+
}
209+
210+
/* ========== Jobs Section ========== */
211+
.jobs {
212+
flex-grow: 1;
213+
}
214+
215+
.jobList {
216+
display: grid;
217+
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
218+
gap: 1.5rem;
219+
}
220+
221+
/* ========== Job Card ========== */
222+
.job {
223+
background: white;
224+
padding: 1.5rem;
225+
border-radius: 12px;
226+
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
227+
transition: 0.3s ease;
228+
position: relative;
229+
}
230+
231+
.job:hover {
232+
transform: translateY(-5px);
233+
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
234+
}
235+
236+
.job .title {
237+
font-size: 1.3rem;
238+
font-weight: 600;
239+
color: #007d8a;
240+
margin-bottom: 0.5rem;
241+
}
242+
243+
.job .meta {
244+
font-family: monospace;
245+
font-size: 0.9rem;
246+
color: #e1523d;
247+
}
248+
249+
.job .description {
250+
margin-top: 1rem;
251+
font-size: 0.95rem;
252+
line-height: 1.5;
253+
}
254+
255+
.job .permalink {
256+
margin-top: 1rem;
257+
font-size: 0.85rem;
258+
text-align: right;
259+
}
260+
261+
262+
.expired-banner {
263+
background: #ffe5e8;
264+
color: #c0392b;
265+
padding: 0.4rem;
266+
border-radius: 6px;
267+
text-align: center;
268+
font-size: 0.85rem;
269+
margin-bottom: 0.75rem;
270+
}
271+
272+
273+
.badges {
160274
position: absolute;
161-
z-index: 1;
275+
top: 1rem;
276+
right: 1rem;
162277
}
163-
.badge:hover .tooltip {
164-
visibility: visible;
278+
279+
.badge {
280+
background: #007d8a;
281+
color: white;
282+
padding: 0.3rem 0.6rem;
283+
border-radius: 20px;
284+
font-size: 0.75rem;
285+
margin-left: 0.3rem;
165286
}
287+
288+
166289
.noJobs {
167-
padding: 2rem;
168-
font-size: 200%;
290+
text-align: center;
291+
padding: 3rem;
292+
font-size: 1.5rem;
169293
color: gray;
170294
}
295+
296+
297+
@media (max-width: 900px) {
298+
.jobsLayout {
299+
flex-direction: column;
300+
}
301+
302+
.leftColumn {
303+
width: 100%;
304+
}
305+
}
306+
}

0 commit comments

Comments
 (0)