v1
This commit is contained in:
parent
28ae3a08f4
commit
3ca1bd5b55
@ -1,346 +1,224 @@
|
|||||||
:root {
|
:root {
|
||||||
--color-bg: #ffffff;
|
--color-bg: #ffffff;
|
||||||
--color-text: #1a1a1a;
|
--color-text: #1a202c;
|
||||||
--color-primary: #2563EB; /* Vibrant Blue */
|
--color-text-muted: #4a5568;
|
||||||
--color-secondary: #000000;
|
--color-primary: #1a202c;
|
||||||
--color-accent: #A3E635; /* Lime Green */
|
--color-accent: #3182ce;
|
||||||
--color-surface: #f8f9fa;
|
--color-border: #e2e8f0;
|
||||||
--font-heading: 'Space Grotesk', sans-serif;
|
--color-surface: #f7fafc;
|
||||||
--font-body: 'Inter', sans-serif;
|
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||||
--border-width: 2px;
|
--radius: 4px;
|
||||||
--shadow-hard: 5px 5px 0px #000;
|
--spacing-unit: 1rem;
|
||||||
--shadow-hover: 8px 8px 0px #000;
|
|
||||||
--radius-pill: 50rem;
|
|
||||||
--radius-card: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: var(--font-body);
|
font-family: var(--font-family);
|
||||||
background-color: var(--color-bg);
|
background-color: var(--color-bg);
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
overflow-x: hidden;
|
line-height: 1.6;
|
||||||
|
margin: 0;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6, .navbar-brand {
|
h1, h2, h3, h4 {
|
||||||
font-family: var(--font-heading);
|
font-weight: 700;
|
||||||
letter-spacing: -0.03em;
|
letter-spacing: -0.02em;
|
||||||
}
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
/* Utilities */
|
|
||||||
.text-primary { color: var(--color-primary) !important; }
|
|
||||||
.bg-black { background-color: #000 !important; }
|
|
||||||
.text-white { color: #fff !important; }
|
|
||||||
.shadow-hard { box-shadow: var(--shadow-hard); }
|
|
||||||
.border-2-black { border: var(--border-width) solid #000; }
|
|
||||||
.py-section { padding-top: 5rem; padding-bottom: 5rem; }
|
|
||||||
|
|
||||||
/* Navbar */
|
|
||||||
.navbar {
|
|
||||||
background: rgba(255, 255, 255, 0.9);
|
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
border-bottom: var(--border-width) solid transparent;
|
|
||||||
transition: all 0.3s;
|
|
||||||
padding-top: 1rem;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar.scrolled {
|
|
||||||
border-bottom-color: #000;
|
|
||||||
padding-top: 0.5rem;
|
|
||||||
padding-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-text {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
font-weight: 800;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-link {
|
|
||||||
font-weight: 500;
|
|
||||||
color: var(--color-text);
|
|
||||||
margin-left: 1rem;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-link:hover, .nav-link.active {
|
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Buttons */
|
.container {
|
||||||
.btn {
|
max-width: 1000px;
|
||||||
font-weight: 700;
|
margin: 0 auto;
|
||||||
font-family: var(--font-heading);
|
padding: 0 1.5rem;
|
||||||
padding: 0.8rem 2rem;
|
|
||||||
border-radius: var(--radius-pill);
|
|
||||||
border: var(--border-width) solid #000;
|
|
||||||
transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
|
|
||||||
box-shadow: var(--shadow-hard);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover {
|
/* Header */
|
||||||
transform: translate(-2px, -2px);
|
header {
|
||||||
box-shadow: var(--shadow-hover);
|
border-bottom: 1px solid var(--color-border);
|
||||||
|
padding: 1.5rem 0;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:active {
|
.nav-brand {
|
||||||
transform: translate(2px, 2px);
|
font-weight: 800;
|
||||||
box-shadow: 0 0 0 #000;
|
font-size: 1.25rem;
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--color-primary);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
/* Sections */
|
||||||
background-color: var(--color-primary);
|
section {
|
||||||
border-color: #000;
|
padding: 4rem 0;
|
||||||
color: #fff;
|
border-bottom: 1px solid var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary:hover {
|
section:last-of-type {
|
||||||
background-color: #1d4ed8;
|
border-bottom: none;
|
||||||
border-color: #000;
|
|
||||||
color: #fff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-dark {
|
.section-title {
|
||||||
background-color: #fff;
|
font-size: 0.75rem;
|
||||||
color: #000;
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
color: var(--color-accent);
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-cta {
|
/* Cards & Components */
|
||||||
background-color: var(--color-accent);
|
.card-grid {
|
||||||
color: #000;
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
|
gap: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-cta:hover {
|
.news-card {
|
||||||
background-color: #8cc629;
|
border: 1px solid var(--color-border);
|
||||||
color: #000;
|
padding: 1.5rem;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
transition: border-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hero Section */
|
.news-card:hover {
|
||||||
.hero-section {
|
border-color: var(--color-accent);
|
||||||
min-height: 100vh;
|
|
||||||
padding-top: 80px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.background-blob {
|
.news-date {
|
||||||
position: absolute;
|
font-size: 0.875rem;
|
||||||
border-radius: 50%;
|
color: var(--color-text-muted);
|
||||||
filter: blur(80px);
|
margin-bottom: 0.5rem;
|
||||||
opacity: 0.6;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blob-1 {
|
.news-title {
|
||||||
top: -10%;
|
font-size: 1.125rem;
|
||||||
right: -10%;
|
margin-bottom: 0.5rem;
|
||||||
width: 600px;
|
|
||||||
height: 600px;
|
|
||||||
background: radial-gradient(circle, var(--color-accent), transparent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blob-2 {
|
/* Editorial / Our View */
|
||||||
bottom: 10%;
|
.editorial {
|
||||||
left: -10%;
|
max-width: 700px;
|
||||||
width: 500px;
|
|
||||||
height: 500px;
|
|
||||||
background: radial-gradient(circle, var(--color-primary), transparent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight-text {
|
.editorial-meta {
|
||||||
background: linear-gradient(120deg, transparent 0%, transparent 40%, var(--color-accent) 40%, var(--color-accent) 100%);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: 100% 40%;
|
|
||||||
background-position: 0 88%;
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dot { color: var(--color-primary); }
|
|
||||||
|
|
||||||
.badge-pill {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0.5rem 1rem;
|
|
||||||
border: 2px solid #000;
|
|
||||||
border-radius: 50px;
|
|
||||||
font-weight: 700;
|
|
||||||
background: #fff;
|
|
||||||
box-shadow: 4px 4px 0 #000;
|
|
||||||
font-family: var(--font-heading);
|
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Marquee */
|
|
||||||
.marquee-container {
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
border-top: 2px solid #000;
|
|
||||||
border-bottom: 2px solid #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rotate-divider {
|
|
||||||
transform: rotate(-2deg) scale(1.05);
|
|
||||||
z-index: 10;
|
|
||||||
position: relative;
|
|
||||||
margin-top: -50px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.marquee-content {
|
|
||||||
display: inline-block;
|
|
||||||
animation: marquee 20s linear infinite;
|
|
||||||
font-family: var(--font-heading);
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes marquee {
|
|
||||||
0% { transform: translateX(0); }
|
|
||||||
100% { transform: translateX(-50%); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Portfolio Cards */
|
|
||||||
.project-card {
|
|
||||||
border: 2px solid #000;
|
|
||||||
border-radius: var(--radius-card);
|
|
||||||
overflow: hidden;
|
|
||||||
background: #fff;
|
|
||||||
transition: transform 0.3s ease;
|
|
||||||
box-shadow: var(--shadow-hard);
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: var(--color-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.project-card:hover {
|
.editorial-content {
|
||||||
transform: translateY(-10px);
|
font-size: 1.25rem;
|
||||||
box-shadow: 8px 8px 0 #000;
|
font-weight: 400;
|
||||||
|
color: var(--color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-img-holder {
|
/* Activities */
|
||||||
height: 250px;
|
.activity-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1.5rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.activity-icon {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
background: var(--color-surface);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-bottom: 2px solid #000;
|
border-radius: var(--radius);
|
||||||
position: relative;
|
flex-shrink: 0;
|
||||||
font-size: 4rem;
|
border: 1px solid var(--color-border);
|
||||||
}
|
|
||||||
|
|
||||||
.placeholder-art {
|
|
||||||
transition: transform 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.project-card:hover .placeholder-art {
|
|
||||||
transform: scale(1.2) rotate(10deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-soft-blue { background-color: #e0f2fe; }
|
|
||||||
.bg-soft-green { background-color: #dcfce7; }
|
|
||||||
.bg-soft-purple { background-color: #f3e8ff; }
|
|
||||||
.bg-soft-yellow { background-color: #fef9c3; }
|
|
||||||
|
|
||||||
.category-tag {
|
|
||||||
position: absolute;
|
|
||||||
top: 15px;
|
|
||||||
right: 15px;
|
|
||||||
background: #000;
|
|
||||||
color: #fff;
|
|
||||||
padding: 5px 12px;
|
|
||||||
border-radius: 20px;
|
|
||||||
font-size: 0.75rem;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-body { padding: 1.5rem; }
|
|
||||||
|
|
||||||
.link-arrow {
|
|
||||||
text-decoration: none;
|
|
||||||
color: #000;
|
|
||||||
font-weight: 700;
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-arrow i { transition: transform 0.2s; margin-left: 5px; }
|
|
||||||
.link-arrow:hover i { transform: translateX(5px); }
|
|
||||||
|
|
||||||
/* About */
|
|
||||||
.about-image-stack {
|
|
||||||
position: relative;
|
|
||||||
height: 400px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stack-card {
|
|
||||||
position: absolute;
|
|
||||||
width: 80%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: var(--radius-card);
|
|
||||||
border: 2px solid #000;
|
|
||||||
box-shadow: var(--shadow-hard);
|
|
||||||
left: 10%;
|
|
||||||
transform: rotate(-3deg);
|
|
||||||
background-size: cover;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Forms */
|
/* Forms */
|
||||||
.form-control {
|
.form-group {
|
||||||
border: 2px solid #000;
|
margin-bottom: 1.5rem;
|
||||||
border-radius: 0.5rem;
|
|
||||||
padding: 1rem;
|
|
||||||
font-weight: 500;
|
|
||||||
background: #f8f9fa;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-control:focus {
|
label {
|
||||||
box-shadow: 4px 4px 0 var(--color-primary);
|
display: block;
|
||||||
border-color: #000;
|
font-size: 0.875rem;
|
||||||
background: #fff;
|
font-weight: 600;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Animations */
|
input[type="email"], input[type="text"] {
|
||||||
.animate-up {
|
width: 100%;
|
||||||
opacity: 0;
|
padding: 0.75rem;
|
||||||
transform: translateY(30px);
|
border: 1px solid var(--color-border);
|
||||||
animation: fadeUp 0.8s ease forwards;
|
border-radius: var(--radius);
|
||||||
|
font-family: var(--font-family);
|
||||||
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delay-100 { animation-delay: 0.1s; }
|
input:focus {
|
||||||
.delay-200 { animation-delay: 0.2s; }
|
outline: none;
|
||||||
|
border-color: var(--color-accent);
|
||||||
@keyframes fadeUp {
|
box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Social */
|
.btn {
|
||||||
.social-links a {
|
|
||||||
transition: transform 0.2s;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
padding: 0.75rem 1.5rem;
|
||||||
.social-links a:hover {
|
background: var(--color-primary);
|
||||||
transform: scale(1.2) rotate(10deg);
|
color: #fff;
|
||||||
color: var(--color-accent) !important;
|
border: none;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 1rem;
|
||||||
|
transition: background 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive */
|
.btn:hover {
|
||||||
@media (max-width: 991px) {
|
background: #000;
|
||||||
.rotate-divider {
|
|
||||||
transform: rotate(0);
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-section {
|
|
||||||
padding-top: 120px;
|
|
||||||
text-align: center;
|
|
||||||
min-height: auto;
|
|
||||||
padding-bottom: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.display-1 { font-size: 3.5rem; }
|
|
||||||
|
|
||||||
.blob-1 { width: 300px; height: 300px; right: -20%; }
|
|
||||||
.blob-2 { width: 300px; height: 300px; left: -20%; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-secondary {
|
||||||
|
background: var(--color-surface);
|
||||||
|
color: var(--color-primary);
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary:hover {
|
||||||
|
background: var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
padding: 4rem 0;
|
||||||
|
background: var(--color-surface);
|
||||||
|
border-top: 1px solid var(--color-border);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
h1 { font-size: 2rem; }
|
||||||
|
.card-grid { grid-template-columns: 1fr; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Toast/Notification */
|
||||||
|
#notification {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 2rem;
|
||||||
|
right: 2rem;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: #fff;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
display: none;
|
||||||
|
z-index: 1000;
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
@ -1,73 +1,50 @@
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
$(document).ready(function() {
|
||||||
|
$('#subscribeForm').on('submit', function(e) {
|
||||||
// Smooth scrolling for navigation links
|
e.preventDefault();
|
||||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
|
||||||
anchor.addEventListener('click', function (e) {
|
const $form = $(this);
|
||||||
e.preventDefault();
|
const $btn = $form.find('button');
|
||||||
const targetId = this.getAttribute('href');
|
const originalBtnText = $btn.text();
|
||||||
if (targetId === '#') return;
|
|
||||||
|
$btn.prop('disabled', true).text('Processing...');
|
||||||
const targetElement = document.querySelector(targetId);
|
|
||||||
if (targetElement) {
|
$.ajax({
|
||||||
// Close mobile menu if open
|
url: 'subscribe.php',
|
||||||
const navbarToggler = document.querySelector('.navbar-toggler');
|
method: 'POST',
|
||||||
const navbarCollapse = document.querySelector('.navbar-collapse');
|
data: $form.serialize(),
|
||||||
if (navbarCollapse.classList.contains('show')) {
|
dataType: 'json',
|
||||||
navbarToggler.click();
|
success: function(response) {
|
||||||
|
showNotification(response.message);
|
||||||
|
if (response.success) {
|
||||||
|
$form[0].reset();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
// Scroll with offset
|
error: function() {
|
||||||
const offset = 80;
|
showNotification('An unexpected error occurred.');
|
||||||
const elementPosition = targetElement.getBoundingClientRect().top;
|
},
|
||||||
const offsetPosition = elementPosition + window.pageYOffset - offset;
|
complete: function() {
|
||||||
|
$btn.prop('disabled', false).text(originalBtnText);
|
||||||
window.scrollTo({
|
|
||||||
top: offsetPosition,
|
|
||||||
behavior: "smooth"
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Navbar scroll effect
|
function showNotification(message) {
|
||||||
const navbar = document.querySelector('.navbar');
|
const $notif = $('#notification');
|
||||||
window.addEventListener('scroll', () => {
|
$notif.text(message).fadeIn();
|
||||||
if (window.scrollY > 50) {
|
|
||||||
navbar.classList.add('scrolled', 'shadow-sm', 'bg-white');
|
setTimeout(function() {
|
||||||
navbar.classList.remove('bg-transparent');
|
$notif.fadeOut();
|
||||||
} else {
|
}, 5000);
|
||||||
navbar.classList.remove('scrolled', 'shadow-sm', 'bg-white');
|
}
|
||||||
navbar.classList.add('bg-transparent');
|
|
||||||
}
|
// Smooth scroll for anchor links
|
||||||
|
$('a[href^="#"]').on('click', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
const target = this.hash;
|
||||||
|
if (!target) return;
|
||||||
|
|
||||||
|
$('html, body').animate({
|
||||||
|
scrollTop: $(target).offset().top - 80
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
// Intersection Observer for fade-up animations
|
|
||||||
const observerOptions = {
|
|
||||||
threshold: 0.1,
|
|
||||||
rootMargin: "0px 0px -50px 0px"
|
|
||||||
};
|
|
||||||
|
|
||||||
const observer = new IntersectionObserver((entries) => {
|
|
||||||
entries.forEach(entry => {
|
|
||||||
if (entry.isIntersecting) {
|
|
||||||
entry.target.classList.add('animate-up');
|
|
||||||
entry.target.style.opacity = "1";
|
|
||||||
observer.unobserve(entry.target); // Only animate once
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}, observerOptions);
|
|
||||||
|
|
||||||
// Select elements to animate (add a class 'reveal' to them in HTML if not already handled by CSS animation)
|
|
||||||
// For now, let's just make sure the hero animations run.
|
|
||||||
// If we want scroll animations, we'd add opacity: 0 to elements in CSS and reveal them here.
|
|
||||||
// Given the request, the CSS animation I added runs on load for Hero.
|
|
||||||
// Let's make the project cards animate in.
|
|
||||||
|
|
||||||
const projectCards = document.querySelectorAll('.project-card');
|
|
||||||
projectCards.forEach((card, index) => {
|
|
||||||
card.style.opacity = "0";
|
|
||||||
card.style.animationDelay = `${index * 0.1}s`;
|
|
||||||
observer.observe(card);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|||||||
300
index.php
300
index.php
@ -1,150 +1,172 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
@ini_set('display_errors', '1');
|
require_once __DIR__ . '/db/config.php';
|
||||||
@error_reporting(E_ALL);
|
|
||||||
@date_default_timezone_set('UTC');
|
|
||||||
|
|
||||||
$phpVersion = PHP_VERSION;
|
$projectName = $_SERVER['PROJECT_NAME'] ?? 'FinStream';
|
||||||
$now = date('Y-m-d H:i:s');
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Modern financial communication for elite clients.';
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>New Style</title>
|
<title><?= htmlspecialchars($projectName) ?> | Client Portal</title>
|
||||||
<?php
|
|
||||||
// Read project preview data from environment
|
<?php if ($projectDescription): ?>
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
?>
|
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||||
<?php if ($projectDescription): ?>
|
<?php endif; ?>
|
||||||
<!-- Meta description -->
|
<?php if (isset($_SERVER['PROJECT_IMAGE_URL'])): ?>
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
<meta property="og:image" content="<?= htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']) ?>" />
|
||||||
<!-- Open Graph meta tags -->
|
<meta property="twitter:image" content="<?= htmlspecialchars($_SERVER['PROJECT_IMAGE_URL']) ?>" />
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
<?php endif; ?>
|
||||||
<!-- Twitter meta tags -->
|
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<?php endif; ?>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<?php if ($projectImageUrl): ?>
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet">
|
||||||
<!-- Open Graph image -->
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css">
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?= time() ?>">
|
||||||
<!-- Twitter image -->
|
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<?php 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);
|
|
||||||
}
|
|
||||||
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;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
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: 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
.loader {
|
|
||||||
margin: 1.25rem auto 1.25rem;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
@keyframes spin {
|
|
||||||
from { transform: rotate(0deg); }
|
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
.hint {
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px; height: 1px;
|
|
||||||
padding: 0; margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
white-space: nowrap; border: 0;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 3rem;
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
|
||||||
<div class="card">
|
<header>
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<div class="container d-flex justify-content-between align-items-center">
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<a href="/" class="nav-brand"><?= htmlspecialchars($projectName) ?></a>
|
||||||
<span class="sr-only">Loading…</span>
|
<nav class="d-none d-md-block">
|
||||||
</div>
|
<a href="#news" class="btn btn-secondary btn-sm me-2">News</a>
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
<a href="#view" class="btn btn-secondary btn-sm me-2">Our View</a>
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
<a href="#activities" class="btn btn-secondary btn-sm">Activities</a>
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</header>
|
||||||
<footer>
|
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
<main>
|
||||||
</footer>
|
<!-- Hero -->
|
||||||
|
<section class="hero">
|
||||||
|
<div class="container">
|
||||||
|
<h1 class="display-4">Intelligence for the Modern Investor</h1>
|
||||||
|
<p class="lead text-muted editorial">Stay ahead with our curated insights, direct from our analysts to your dashboard. Precise. Timely. Essential.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Weekly News -->
|
||||||
|
<section id="news">
|
||||||
|
<div class="container">
|
||||||
|
<span class="section-title">Weekly News Digest</span>
|
||||||
|
<div class="card-grid">
|
||||||
|
<article class="news-card">
|
||||||
|
<div class="news-date">January 22, 2026</div>
|
||||||
|
<h3 class="news-title">Global Markets: The Q1 Outlook</h3>
|
||||||
|
<p class="text-muted small">An analysis of emerging market resilience amidst shifting interest rate expectations.</p>
|
||||||
|
</article>
|
||||||
|
<article class="news-card">
|
||||||
|
<div class="news-date">January 15, 2026</div>
|
||||||
|
<h3 class="news-title">Tech Sector Consolidation</h3>
|
||||||
|
<p class="text-muted small">Why mid-cap AI firms are becoming prime acquisition targets for legacy tech giants.</p>
|
||||||
|
</article>
|
||||||
|
<article class="news-card">
|
||||||
|
<div class="news-date">January 08, 2026</div>
|
||||||
|
<h3 class="news-title">Energy Transition Milestones</h3>
|
||||||
|
<p class="text-muted small">New regulatory frameworks in the EU are accelerating offshore wind investments.</p>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Our View -->
|
||||||
|
<section id="view">
|
||||||
|
<div class="container">
|
||||||
|
<span class="section-title">Our View</span>
|
||||||
|
<div class="editorial">
|
||||||
|
<div class="editorial-meta">
|
||||||
|
<strong>By David Sterling</strong>
|
||||||
|
<span>Chief Investment Officer</span>
|
||||||
|
</div>
|
||||||
|
<div class="editorial-content">
|
||||||
|
"The current volatility is not a signal to retreat, but a prompt to recalibrate. We are seeing a structural shift in how liquidity flows through private markets, favoring transparency over raw scale."
|
||||||
|
</div>
|
||||||
|
<p class="mt-4 text-muted">In our latest monthly memo, we dive deep into the 'Transparency Premium' and what it means for long-term capital preservation.</p>
|
||||||
|
<a href="#" class="btn btn-primary mt-2">Read Full Memo</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Activities -->
|
||||||
|
<section id="activities">
|
||||||
|
<div class="container">
|
||||||
|
<span class="section-title">Our Activities</span>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-icon"><i class="bi bi-graph-up-arrow"></i></div>
|
||||||
|
<div>
|
||||||
|
<h3>Portfolio Reviews</h3>
|
||||||
|
<p class="text-muted">Personalized 1-on-1 sessions to align your holdings with our latest research models.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-icon"><i class="bi bi-megaphone"></i></div>
|
||||||
|
<div>
|
||||||
|
<h3>Webinar: Future of Fintech</h3>
|
||||||
|
<p class="text-muted">Join us on Feb 5th for a live discussion with industry pioneers on the next wave of disruption.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="activity-item">
|
||||||
|
<div class="activity-icon"><i class="bi bi-calendar-event"></i></div>
|
||||||
|
<div>
|
||||||
|
<h3>Annual Partners' Summit</h3>
|
||||||
|
<p class="text-muted">Save the date for our flagship event in Zurich, October 2026. Exclusive for tier-1 clients.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Subscription -->
|
||||||
|
<section id="subscribe">
|
||||||
|
<div class="container">
|
||||||
|
<div class="card-grid" style="grid-template-columns: 1fr;">
|
||||||
|
<div class="news-card bg-light border-0">
|
||||||
|
<h2 class="mb-3">Stay Connected</h2>
|
||||||
|
<p class="text-muted mb-4">Receive our weekly digest and exclusive event invitations directly in your inbox.</p>
|
||||||
|
<form id="subscribeForm" class="row g-3">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<input type="email" name="email" class="form-control" placeholder="institutional.email@example.com" required>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<button type="submit" class="btn btn-primary w-100">Subscribe</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<p>© <?= date('Y') ?> <?= htmlspecialchars($projectName) ?>. All rights reserved.</p>
|
||||||
|
<p class="small">Investments involve risk. Past performance is not indicative of future results.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6 text-md-end">
|
||||||
|
<a href="#" class="text-muted me-3">Privacy Policy</a>
|
||||||
|
<a href="#" class="text-muted">Terms of Service</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<div id="notification"></div>
|
||||||
|
|
||||||
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
||||||
|
<script src="assets/js/main.js?v=<?= time() ?>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
30
subscribe.php
Normal file
30
subscribe.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
require_once __DIR__ . '/db/config.php';
|
||||||
|
|
||||||
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
|
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
|
||||||
|
echo json_encode(['success' => false, 'message' => 'Invalid request method.']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
$email = filter_var($_POST['email'] ?? '', FILTER_VALIDATE_EMAIL);
|
||||||
|
|
||||||
|
if (!$email) {
|
||||||
|
echo json_encode(['success' => false, 'message' => 'Please provide a valid email address.']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$stmt = db()->prepare("INSERT INTO subscriptions (email) VALUES (?)");
|
||||||
|
$stmt->execute([$email]);
|
||||||
|
echo json_encode(['success' => true, 'message' => 'Subscription successful. Thank you!']);
|
||||||
|
} catch (PDOException $e) {
|
||||||
|
if ($e->getCode() === '23000') {
|
||||||
|
echo json_encode(['success' => true, 'message' => 'You are already subscribed.']);
|
||||||
|
} else {
|
||||||
|
error_log($e->getMessage());
|
||||||
|
echo json_encode(['success' => false, 'message' => 'A server error occurred. Please try again later.']);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user