Skip to content
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

Opportunities Feature #627

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Opportunities/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
124 changes: 124 additions & 0 deletions Opportunities/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Opportunities Hub</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Header Section -->
<header>
<div class="logo">
<h1>Opportunities Hub</h1>
</div>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#categories">Categories</a></li>
<li><a href="#dashboard">Dashboard</a></li>
<li><a href="#community">Community</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<div class="auth-buttons">
<button>Login</button>
<button>Sign Up</button>
</div>
</header>
<section id="admin-panel" class="admin-section">
<h3>Admin Panel</h3>
<div id="pending-opportunities" class="admin-grid"></div>
<div id="loading-spinner" style="display:none;">Loading...</div>
</section>
<!-- Hero Section -->
<section id="home" class="hero-section">
<div class="hero-content">
<h2>Discover Opportunities in the Tech Industry</h2>
<p>Explore jobs, internships, hackathons, open-source projects, and more!</p>
<div class="search-bar">
<input type="text" id="search-input" placeholder="Search for opportunities...">
<button id="search-btn">Search</button>
</div>
</div>
</section>
<section id="categories" class="categories-section">
<h3>Filter by Category</h3>
<div class="category-dropdown">
<select id="category-select" onchange="filterByCategoryDropdown()">
<!-- Options will be dynamically added here -->
</select>
</div>
</section>

<!-- Featured Opportunities -->
<section class="featured-section">
<h3>Featured Opportunities</h3>
<div id="opportunity-container" class="featured-grid">
<div class="opportunity-card">
<h4>Remote Developer Job</h4>
<p>Company: XYZ Corp</p>
<p>Tags: Remote, Full-time</p>
<button>Apply Now</button>
</div>
<div class="opportunity-card">
<h4>UI/UX Internship</h4>
<p>Company: ABC Design</p>
<p>Tags: Internship, Paid</p>
<button>Apply Now</button>
</div>
<!-- We can add more cards as needed -->
</div>
</section>

<!-- Call to Action -->
<section class="cta-section">
<h3>Start Your Journey Today!</h3>
<p>Submit an opportunity or explore categories to find your next big break.</p>
<div class="cta-buttons">
<button>Submit Opportunity</button>
<button>Explore Categories</button>
</div>
</section>
<section id="submit-opportunity" class="submit-section">
<h3>Submit an Opportunity</h3>
<form id="opportunity-form">
<label for="title">Title:</label>
<input type="text" id="title" name="title" required>

<label for="company">Company:</label>
<input type="text" id="company" name="company" required>

<label for="category">Category:</label>
<select id="category" name="category" required>
<option value="Jobs">Jobs</option>
<option value="Internships">Internships</option>
<option value="Hackathons">Hackathons</option>
<option value="Open Source">Open Source</option>
<option value="Tech Events">Tech Events</option>
</select>

<label for="tags">Tags (comma-separated):</label>
<input type="text" id="tags" name="tags">

<label for="applyLink">Application Link:</label>
<input type="url" id="applyLink" name="applyLink" required>

<button type="submit">Submit</button>
</form>
<div id="loading-spinner" style="display:none;">Loading...</div>
<p id="submission-success" style="display: none; color: green;">Opportunity submitted successfully!</p>
</section>

<!-- Footer -->
<footer>
<p>&copy; 2024 Opportunities Hub. All rights reserved.</p>
<ul class="footer-links">
<li><a href="#privacy">Privacy Policy</a></li>
<li><a href="#terms">Terms of Service</a></li>
<li><a href="#social">Follow Us</a></li>
</ul>
</footer>
<script src="script.js" defer></script>
</body>
</html>
14 changes: 14 additions & 0 deletions Opportunities/opportunities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"id": 1735293289674,
"title": "Remote Developer Job",
"company": "Full Stackers",
"category": "Jobs",
"tags": [
"Remote",
"Paid"
],
"applyLink": "http://127.0.0.1:5500/Opportunities/index.html",
"status": "approved"
}
]
Loading
Loading