0.01
This commit is contained in:
parent
ea9a79620b
commit
f9332936f5
Binary file not shown.
Binary file not shown.
@ -1,11 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Knowledge Base{% endblock %}</title>
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Visa.ai{% endblock %}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<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=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,154 +1,91 @@
|
||||
{% 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 %}Visa.ai | AI-Powered Visa Counselor{% endblock %}
|
||||
|
||||
{% 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>
|
||||
<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>
|
||||
<!-- Hero Section -->
|
||||
<section class="hero-section">
|
||||
<div class="container">
|
||||
<h1>Your AI-Powered Guide to Global Education</h1>
|
||||
<p class="lead">Making informed decisions about studying abroad has never been easier. Compare countries, find programs, and get AI-driven advice for your application.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Comparison Section -->
|
||||
<section class="comparison-section">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-10">
|
||||
<div class="comparison-form">
|
||||
<h2 class="text-center mb-4">Country Comparison Tool</h2>
|
||||
<p class="text-center text-muted mb-4">Select two or more countries to compare key metrics for international students.</p>
|
||||
<form method="POST" action="#">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
<label for="countries-select" class="form-label">Countries</label>
|
||||
<select multiple class="form-select" id="countries-select" name="countries" size="5">
|
||||
{% for country in available_countries %}
|
||||
<option value="{{ country.code }}">{{ country.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<div class="form-text">Hold Ctrl (or Cmd on Mac) to select multiple countries.</div>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<button type="submit" class="btn btn-primary">Compare Now</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if comparison_results %}
|
||||
<div class="comparison-results">
|
||||
<h3 class="text-center mb-4">Comparison Results</h3>
|
||||
<div class="table-responsive">
|
||||
<div class="comparison-table">
|
||||
<table class="table table-striped table-hover mb-0">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th scope="col">Metric</th>
|
||||
{% for result in comparison_results %}
|
||||
<th scope="col" class="text-center">{{ result.country }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-group-divider">
|
||||
<tr>
|
||||
<th scope="row">Average Tuition</th>
|
||||
{% for result in comparison_results %}
|
||||
<td class="text-center">{{ result.avg_tuition }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Annual Living Costs</th>
|
||||
{% for result in comparison_results %}
|
||||
<td class="text-center">{{ result.living_costs }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Post-Study Work Visa</th>
|
||||
{% for result in comparison_results %}
|
||||
<td class="text-center">{{ result.post_study_visa }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Permanent Residency Pathway</th>
|
||||
{% for result in comparison_results %}
|
||||
<td class="text-center">{{ result.pr_pathway }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
||||
</footer>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import home
|
||||
from django.urls import path
|
||||
|
||||
from .views import index
|
||||
|
||||
urlpatterns = [
|
||||
path("", home, name="home"),
|
||||
path("", index, name="index"),
|
||||
]
|
||||
|
||||
@ -1,25 +1,60 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
from django import get_version as django_version
|
||||
from django.shortcuts import render
|
||||
from django.utils import timezone
|
||||
|
||||
# Mock data for the country comparison
|
||||
MOCK_COUNTRY_DATA = {
|
||||
'CA': {
|
||||
'country': 'Canada',
|
||||
'avg_tuition': '$15,000 - $35,000 CAD',
|
||||
'living_costs': '$15,000 - $20,000 CAD/year',
|
||||
'post_study_visa': 'Up to 3 years (PGWP)',
|
||||
'pr_pathway': 'Strong (Express Entry, PNP)',
|
||||
},
|
||||
'AU': {
|
||||
'country': 'Australia',
|
||||
'avg_tuition': '$25,000 - $45,000 AUD',
|
||||
'living_costs': '$21,041 AUD/year (minimum)',
|
||||
'post_study_visa': '2-4 years (TGV)',
|
||||
'pr_pathway': 'Moderate (Points-based system)',
|
||||
},
|
||||
'GB': {
|
||||
'country': 'United Kingdom',
|
||||
'avg_tuition': '£15,000 - £38,000',
|
||||
'living_costs': '£12,000 - £15,000/year',
|
||||
'post_study_visa': '2 years (Graduate Route)',
|
||||
'pr_pathway': 'Limited (Skilled Worker Visa)',
|
||||
},
|
||||
'US': {
|
||||
'country': 'United States',
|
||||
'avg_tuition': '$28,000 - $55,000 USD',
|
||||
'living_costs': '$15,000 - $25,000 USD/year',
|
||||
'post_study_visa': '1-3 years (OPT)',
|
||||
'pr_pathway': 'Difficult (H-1B lottery)',
|
||||
},
|
||||
'DE': {
|
||||
'country': 'Germany',
|
||||
'avg_tuition': 'Often free at public universities',
|
||||
'living_costs': '€11,208/year (minimum)',
|
||||
'post_study_visa': '18 months (Job Seeker Visa)',
|
||||
'pr_pathway': 'Good (EU Blue Card)',
|
||||
}
|
||||
}
|
||||
|
||||
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()
|
||||
AVAILABLE_COUNTRIES = [
|
||||
{'code': 'CA', 'name': 'Canada'},
|
||||
{'code': 'AU', 'name': 'Australia'},
|
||||
{'code': 'GB', 'name': 'United Kingdom'},
|
||||
{'code': 'US', 'name': 'United States'},
|
||||
{'code': 'DE', 'name': 'Germany'},
|
||||
]
|
||||
|
||||
def index(request):
|
||||
comparison_results = []
|
||||
if request.method == 'POST':
|
||||
selected_countries = request.POST.getlist('countries')
|
||||
comparison_results = [MOCK_COUNTRY_DATA[code] for code in selected_countries if code in MOCK_COUNTRY_DATA]
|
||||
|
||||
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", ""),
|
||||
'available_countries': AVAILABLE_COUNTRIES,
|
||||
'comparison_results': comparison_results,
|
||||
}
|
||||
return render(request, "core/index.html", context)
|
||||
return render(request, "core/index.html", context)
|
||||
101
static/css/custom.css
Normal file
101
static/css/custom.css
Normal file
@ -0,0 +1,101 @@
|
||||
/* Visa.ai Custom Styles */
|
||||
|
||||
:root {
|
||||
--primary-color: #0A2540;
|
||||
--accent-color: #00D4B3;
|
||||
--background-color: #F6F9FC;
|
||||
--text-color: #333;
|
||||
--heading-font: 'Poppins', sans-serif;
|
||||
--body-font: 'Lato', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--body-font);
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--heading-font);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--accent-color);
|
||||
border-color: var(--accent-color);
|
||||
font-weight: 600;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: 0.5rem;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #00bfa5;
|
||||
border-color: #00bfa5;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
background: linear-gradient(135deg, var(--primary-color), #1e3a5f);
|
||||
color: white;
|
||||
padding: 6rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-section h1 {
|
||||
font-size: 3.5rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hero-section p {
|
||||
font-size: 1.25rem;
|
||||
max-width: 600px;
|
||||
margin: 1rem auto;
|
||||
}
|
||||
|
||||
.comparison-section {
|
||||
padding: 4rem 0;
|
||||
}
|
||||
|
||||
.comparison-form {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.comparison-results {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.comparison-table {
|
||||
background: white;
|
||||
border-radius: 0.75rem;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.comparison-table th {
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.comparison-table .table-group-divider {
|
||||
border-top-color: #d1d9e6;
|
||||
}
|
||||
|
||||
.comparison-table td, .comparison-table th {
|
||||
vertical-align: middle;
|
||||
padding: 1.25rem 1rem;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
font-weight: 600;
|
||||
font-family: var(--heading-font);
|
||||
}
|
||||
|
||||
.form-select {
|
||||
min-height: 400px;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user