Auto commit: 2025-11-02T13:33:57.735Z
This commit is contained in:
parent
649eb0a320
commit
d01d49b475
Binary file not shown.
Binary file not shown.
@ -6,6 +6,90 @@
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Job Portal{% endblock title %}</title>
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
|
||||
<!-- Google Fonts & Custom CSS -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="p-3 mb-3 border-bottom bg-white">
|
||||
<div class="container">
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
|
||||
<a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-dark text-decoration-none h4" style="font-family: var(--font-family-headings); color: var(--primary-color)!important;">
|
||||
JobPortal
|
||||
</a>
|
||||
|
||||
<ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
|
||||
<li><a href="#" class="nav-link px-2 link-secondary">Find Jobs</a></li>
|
||||
<li><a href="#" class="nav-link px-2 link-dark">Company Reviews</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="text-end">
|
||||
<button type="button" class="btn btn-outline-primary me-2">Login</button>
|
||||
<button type="button" class="btn btn-primary">Sign-up</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{% block content %}{% endblock content %}
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 mb-3">
|
||||
<a href="/" class="d-flex align-items-center mb-3 text-decoration-none h4" style="font-family: var(--font-family-headings); color: #FFFFFF!important;">
|
||||
JobPortal
|
||||
</a>
|
||||
<p class="text-muted">© 2025. Find your dream job.</p>
|
||||
</div>
|
||||
<div class="col-6 col-lg-2 offset-lg-1 mb-3">
|
||||
<h5>Job Seekers</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li class="mb-2"><a href="#">Search Jobs</a></li>
|
||||
<li class="mb-2"><a href="#">Create Resume</a></li>
|
||||
<li class="mb-2"><a href="#">Job Alerts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-6 col-lg-2 mb-3">
|
||||
<h5>Employers</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li class="mb-2"><a href="#">Post a Job</a></li>
|
||||
<li class="mb-2"><a href="#">Search Resumes</a></li>
|
||||
<li class="mb-2"><a href="#">Pricing</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-6 col-lg-2 mb-3">
|
||||
<h5>Company</h5>
|
||||
<ul class="list-unstyled">
|
||||
<li class="mb-2"><a href="#">About Us</a></li>
|
||||
<li class="mb-2"><a href="#">Contact</a></li>
|
||||
<li class="mb-2"><a href="#">Blog</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,154 +1,59 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{{ project_name }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
{% if project_description %}
|
||||
<meta name="description" content="{{ project_description }}">
|
||||
<meta property="og:description" content="{{ project_description }}">
|
||||
<meta property="twitter:description" content="{{ project_description }}">
|
||||
{% endif %}
|
||||
{% if project_image_url %}
|
||||
<meta property="og:image" content="{{ project_image_url }}">
|
||||
<meta property="twitter:image" content="{{ project_image_url }}">
|
||||
{% endif %}
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
@keyframes bg-pan {
|
||||
0% {
|
||||
background-position: 0% 0%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2.5rem 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
|
||||
font-weight: 700;
|
||||
margin: 0 0 1.2rem;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.loader {
|
||||
margin: 1.5rem auto;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border: 4px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.runtime code {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
padding: 0.15rem 0.45rem;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: 0.85rem;
|
||||
opacity: 0.75;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
{% block title %}Find Your Next Job | Job Portal{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your app…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
<div class="hero-section text-center">
|
||||
<div class="container">
|
||||
<h1 class="display-4">Find Your Dream Job Today</h1>
|
||||
<p class="lead mb-5">The best place to discover opportunities and build your career.</p>
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<form class="d-flex gap-2 search-form p-3" action="/" method="GET">
|
||||
<input class="form-control form-control-lg" type="text" placeholder="Job title, keyword, or company" name="q">
|
||||
<input class="form-control form-control-lg" type="text" placeholder="City, state, or zip code" name="location">
|
||||
<button class="btn btn-primary btn-lg px-4" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
|
||||
<p class="runtime">
|
||||
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
|
||||
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
||||
</footer>
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
<div class="py-5">
|
||||
<div class="container">
|
||||
<h2 class="text-center mb-5">Featured Jobs</h2>
|
||||
<div class="row g-4">
|
||||
{% for job in featured_jobs %}
|
||||
<div class="col-lg-4 col-md-6">
|
||||
<div class="job-card d-flex flex-column">
|
||||
<div class="d-flex align-items-start mb-3">
|
||||
<div class="company-logo me-3">
|
||||
{{ job.logo_initial }}
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="job-title mb-1"><a href="#" class="text-decoration-none stretched-link">{{ job.title }}</a></h3>
|
||||
<p class="job-company mb-1">{{ job.company }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-auto">
|
||||
<p class="job-location mb-2">{{ job.location }}</p>
|
||||
{% if job.type == 'Full-time' %}
|
||||
<span class="job-badge full-time">{{ job.type }}</span>
|
||||
{% elif job.type == 'Part-time' %}
|
||||
<span class="job-badge part-time">{{ job.type }}</span>
|
||||
{% else %}
|
||||
<span class="job-badge contract">{{ job.type }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="text-center mt-5">
|
||||
<a href="#" class="btn btn-outline-primary btn-lg">Browse All Jobs</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import home
|
||||
from .views import index
|
||||
|
||||
urlpatterns = [
|
||||
path("", home, name="home"),
|
||||
path("", index, name="index"),
|
||||
]
|
||||
|
||||
@ -1,25 +1,53 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
from django import get_version as django_version
|
||||
from django.shortcuts import render
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
def home(request):
|
||||
"""Render the landing screen with loader and environment details."""
|
||||
host_name = request.get_host().lower()
|
||||
agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
|
||||
now = timezone.now()
|
||||
def index(request):
|
||||
# Placeholder data for featured jobs
|
||||
featured_jobs = [
|
||||
{
|
||||
'title': 'Senior Frontend Developer',
|
||||
'company': 'Innovate Inc.',
|
||||
'location': 'New York, NY',
|
||||
'type': 'Full-time',
|
||||
'logo_initial': 'I'
|
||||
},
|
||||
{
|
||||
'title': 'UX/UI Designer',
|
||||
'company': 'Creative Solutions',
|
||||
'location': 'Remote',
|
||||
'type': 'Contract',
|
||||
'logo_initial': 'C'
|
||||
},
|
||||
{
|
||||
'title': 'Data Scientist',
|
||||
'company': 'Analytics Co.',
|
||||
'location': 'San Francisco, CA',
|
||||
'type': 'Full-time',
|
||||
'logo_initial': 'A'
|
||||
},
|
||||
{
|
||||
'title': 'Junior Backend Developer',
|
||||
'company': 'Tech Starters',
|
||||
'location': 'Austin, TX',
|
||||
'type': 'Part-time',
|
||||
'logo_initial': 'T'
|
||||
},
|
||||
{
|
||||
'title': 'Product Manager',
|
||||
'company': 'Visionary Products',
|
||||
'location': 'Boston, MA',
|
||||
'type': 'Full-time',
|
||||
'logo_initial': 'V'
|
||||
},
|
||||
{
|
||||
'title': 'DevOps Engineer',
|
||||
'company': 'Cloud Services Ltd.',
|
||||
'location': 'Remote',
|
||||
'type': 'Full-time',
|
||||
'logo_initial': 'C'
|
||||
},
|
||||
]
|
||||
|
||||
context = {
|
||||
"project_name": "New Style",
|
||||
"agent_brand": agent_brand,
|
||||
"django_version": django_version(),
|
||||
"python_version": platform.python_version(),
|
||||
"current_time": now,
|
||||
"host_name": host_name,
|
||||
"project_description": os.getenv("PROJECT_DESCRIPTION", ""),
|
||||
"project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
|
||||
'featured_jobs': featured_jobs
|
||||
}
|
||||
return render(request, "core/index.html", context)
|
||||
return render(request, 'core/index.html', context)
|
||||
172
static/css/custom.css
Normal file
172
static/css/custom.css
Normal file
@ -0,0 +1,172 @@
|
||||
/* static/css/custom.css */
|
||||
|
||||
/* Google Fonts */
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');
|
||||
|
||||
:root {
|
||||
--primary-color: #2563EB;
|
||||
--secondary-color: #F97316;
|
||||
--neutral-base: #F8FAFC;
|
||||
--text-color: #1E293B;
|
||||
--card-bg: #FFFFFF;
|
||||
--card-border: #E2E8F0;
|
||||
--font-family-headings: 'Poppins', sans-serif;
|
||||
--font-family-body: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--neutral-base);
|
||||
font-family: var(--font-family-body);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--font-family-headings);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #1D4ED8; /* Darker shade of primary */
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: var(--secondary-color);
|
||||
border-color: var(--secondary-color);
|
||||
color: #FFFFFF;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #EA580C; /* Darker shade of secondary */
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* Hero Section */
|
||||
.hero-section {
|
||||
background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
|
||||
padding: 6rem 0;
|
||||
}
|
||||
|
||||
.hero-section h1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hero-section .lead {
|
||||
font-size: 1.25rem;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
/* Search Form */
|
||||
.search-form {
|
||||
background: var(--card-bg);
|
||||
padding: 1rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.search-form .form-control {
|
||||
border: none;
|
||||
padding: 1rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.search-form .form-control:focus {
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Job Card */
|
||||
.job-card {
|
||||
background-color: var(--card-bg);
|
||||
border: 1px solid var(--card-border);
|
||||
border-radius: 0.75rem;
|
||||
padding: 1.5rem;
|
||||
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.job-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.job-card .company-logo {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 0.5rem;
|
||||
background-color: #E0F2FE;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
color: var(--primary-color);
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.job-card .job-title {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.job-card .job-company {
|
||||
font-weight: 500;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.job-card .job-location {
|
||||
color: #64748B;
|
||||
}
|
||||
|
||||
.job-badge {
|
||||
display: inline-block;
|
||||
padding: 0.35em 0.65em;
|
||||
font-size: .75em;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
|
||||
.job-badge.full-time {
|
||||
background-color: #34D399;
|
||||
}
|
||||
|
||||
.job-badge.part-time {
|
||||
background-color: #FBBF24;
|
||||
}
|
||||
|
||||
.job-badge.contract {
|
||||
background-color: #A78BFA;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
background-color: #1E293B;
|
||||
color: #94A3B8;
|
||||
padding: 3rem 0;
|
||||
margin-top: 5rem;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
color: #E2E8F0;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.footer a:hover {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user