-
Notifications
You must be signed in to change notification settings - Fork 64
Add job board with example data. #1197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 35 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
654b848
Add job board with example data.
nikoshell a418850
Merge branch 'ep2025' into ep2025-job-board
nikoshell 9b7c9c8
Update responsive design.
nikoshell 822fd55
Create single component for TwoColc.
nikoshell 5010718
Fix TS issues.
nikoshell b1a7c94
Merge branch 'ep2025' into ep2025-job-board
clytaemnestra d10618f
Combine sponsors and companies.
nikoshell e5b2326
Fix TS issue. Ammend commit to re-run RTD preview.
nikoshell 81e4d17
Merge branch 'ep2025' into ep2025-job-board
nikoshell 92c36a5
Companies -> sponsors.
nikoshell 53b0aa1
Job card style.
nikoshell bfe1032
Add sponsor display images.
nikoshell feb60a0
Fix responsive.
nikoshell 0f661ff
Fix styles.
nikoshell a8a5ee8
Clean up.
nikoshell 8b5e085
Fix TS warnings.
nikoshell b0dd9ef
Epic - broken localhost image refferer.
nikoshell be7de8b
Fix YouTube types.
nikoshell 3d767e0
Fix YouTube types.
nikoshell 5667366
Fix all warnings.
nikoshell 4c51c57
Merge branch 'ep2025' into ep2025-job-board
nikoshell 182c31c
Merge branch 'ep2025-check' into ep2025-job-board
nikoshell 9395359
Remove acme records.
nikoshell 523f286
Add sections.
nikoshell 0f226b5
Hide sponsor card on mobile, fix ts warnings.
nikoshell 9518e51
Merge branch 'ep2025' into ep2025-job-board
nikoshell 2187b97
Fix brands icons.
nikoshell 3001a20
Add Numberly content.
nikoshell 0381fab
Add community partners.
nikoshell 67c1f4b
Fix for community partners.
nikoshell c90c73b
Filter out drafts, update descriptions.
nikoshell 4e38ac2
Add social links to sponsor.
nikoshell bc349f6
Add draft to job position.
nikoshell 832176a
Remove about for partners and fix for component.
nikoshell 5f0de3d
Disable socials.
nikoshell eadf26a
Fix issues from comments.
nikoshell 68c9158
Remove console log.
nikoshell ed273e9
Update sponsor data.
nikoshell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
import { getEntry } from "astro:content"; | ||
import { marked } from 'marked'; | ||
const { collection, entry:entryId } = Astro.props; | ||
|
||
const entry = await getEntry(collection, entryId); | ||
console.log(entryId) | ||
const html = entry && entry.body ? marked.parse(entry.body) : ""; | ||
|
||
--- | ||
|
||
{ html && | ||
<div class="mb-2 prose prose-li:m-0 prose-ul:m-0 prose-ul:mb-2 prose-a:underline prose-h1:text-text prose-headings:font-title prose-headings:text-text prose-a:text-text hover:prose-a:text-primary-hover prose-strong:text-text prose-strong:font-bold prose-li:marker:text-text p-6"> | ||
<article set:html={html} /> | ||
</div> | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
import { getEntry } from "astro:content"; | ||
const { job:jobId, sponsor:sponsorId } = Astro.props; | ||
|
||
const job = await getEntry("jobs", jobId); | ||
if (!job) { | ||
throw new Error(`Job with ID "${jobId}" not found`); | ||
} | ||
|
||
const sponsor = await getEntry("sponsors", sponsorId); | ||
|
||
if (!sponsor) { | ||
throw new Error(`Sponsor with ID "${sponsorId}" not found`); | ||
} | ||
|
||
// TODO: add tags | ||
const { title, location, type, level, salary, description, responsibilities, requirements, benefits, apply_link, draft } = job.data; | ||
|
||
--- | ||
|
||
<div class="mb-6 last:mb-0 rounded-lg shadow-md bg-white"> | ||
<div class=`flex-1 p-6 ${draft ? "draft": ""}`> | ||
<a href={`/sponsor/${jobId}`}> | ||
<h2 class="text-3xl font-bold mb-2">{title}</h2> | ||
</a> | ||
|
||
<a class="lg:hidden text-[#1a56db] hover:text-[#4f46e5] text-xl pb-2 inline-block font-bold" href={`/sponsor/${sponsor.id}`}> | ||
{sponsor.data.name} | ||
</a> | ||
|
||
{ level && type && location && | ||
<p class="text-gray-600 mb-2">{level} • {type} • {location}</p> | ||
} | ||
<p class="text-gray-700 mb-4">{salary}</p> | ||
<p class="mb-3">{description}</p> | ||
|
||
{ responsibilities && | ||
<h3 class="text-xl font-semibold mb-2">Responsibilities</h3> | ||
<ul class="list-disc list-inside mb-4"> | ||
{responsibilities.map((item:string ) => <li>{item}</li>)} | ||
</ul> | ||
} | ||
|
||
{ requirements && | ||
<h3 class="text-xl font-semibold mb-2">Requirements</h3> | ||
<ul class="list-disc list-inside mb-4"> | ||
{requirements.map((item:string) => <li>{item}</li>)} | ||
</ul> | ||
} | ||
|
||
{ benefits && | ||
<h3 class="text-xl font-semibold mb-2">Benefits</h3> | ||
<ul class="list-disc list-inside mb-6"> | ||
{benefits.map((item:string) => <li>{item}</li>)} | ||
</ul> | ||
} | ||
|
||
<a | ||
href={apply_link} | ||
target="_blank" | ||
class="apply-btn" | ||
> | ||
Apply Now | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<style> | ||
|
||
.apply-btn { | ||
display: inline-block; | ||
padding: 8px 24px; | ||
color: white; | ||
font-weight: 700; | ||
border-radius: 9999px; | ||
border: 1px solid transparent; | ||
text-decoration: none; | ||
transition: all 0.1s ease; | ||
background: linear-gradient(to right, #16a34a, #22c55e); | ||
} | ||
|
||
.apply-btn:hover { | ||
color:white; | ||
} | ||
|
||
a{ | ||
text-decoration: underline; | ||
} | ||
a:hover { | ||
color: var(--color-primary-hover); | ||
text-decoration: underline; | ||
} | ||
|
||
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.