434 lines
16 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="events_page_template" name="Events Page">
<t t-call="website.layout">
<t t-set="no_header" t-value="True"/>
<t t-set="no_footer" t-value="True"/>
<style>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&amp;family=Inter:wght@300;400;500;600&amp;display=swap');
/* Hide Header and Footer Forcefully as requested */
header, footer, #bottom, #top_menu, .o_header_standard {
display: none !important;
}
body {
background-color: rgba(232, 217, 249, 1) !important;
}
.events-page-wrapper {
background-color: rgba(232, 217, 249, 1);
min-height: 100vh;
font-family: 'Inter', sans-serif;
padding-bottom: 100px;
}
/* Header Area */
.events-hero {
position: relative;
padding: 60px 5% 40px 5%;
overflow: hidden;
background: white url("/dance_new_theme/static/src/img/hero_bg.png") no-repeat center center;
background-size: cover;
border-radius: 0 0 40px 40px;
box-shadow: 0 10px 30px rgba(112, 34, 186, 0.04);
}
.header-content {
position: relative;
z-index: 2;
display: flex;
align-items: flex-start;
gap: 25px;
max-width: 1400px;
margin: 0 auto;
}
.hero-dancer-img {
position: absolute;
right: 8%;
bottom: -10px;
height: 130%;
max-height: 260px;
object-fit: contain;
z-index: 1;
pointer-events: none;
filter: drop-shadow(0 10px 20px rgba(112, 34, 186, 0.15));
}
@media (max-width: 992px) {
.hero-dancer-img {
display: none;
}
}
.header-icon-box {
width: 76px;
height: 76px;
background: white;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 34px;
color: #5b21b6;
box-shadow: 0 10px 30px rgba(91, 33, 182, 0.08);
flex-shrink: 0;
}
.header-text-box h1 {
font-family: 'Playfair Display', serif;
font-size: 52px;
font-weight: 700;
color: #0f172a;
margin-bottom: 15px;
display: flex;
align-items: center;
}
.header-text-box h1 .amp {
color: #7c3aed;
margin: 0 12px;
}
.header-text-box p {
font-size: 18px;
color: #475569;
line-height: 1.6;
max-width: 500px;
margin: 0;
}
.sparkle-icon {
color: #8b5cf6;
font-size: 24px;
margin-left: 5px;
transform: translateY(-15px);
}
/* Filters Area */
.filters-container {
max-width: 1400px;
margin: 20px auto 40px auto;
display: flex;
justify-content: space-between;
flex-wrap: nowrap; /* Force single row */
gap: 20px;
padding: 0 5%;
align-items: center;
}
.filter-group {
display: flex;
gap: 12px;
flex-wrap: nowrap; /* Force buttons to stay in line */
}
.filter-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 24px;
border-radius: 30px;
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none !important;
white-space: nowrap; /* Prevent text wrap inside button */
}
.filter-btn-outline {
background: white;
color: #4b5563;
border: 1px solid #e2e8f0;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.filter-btn-outline:hover {
border-color: #8b5cf6;
color: #6d28d9;
}
.filter-btn-active {
background: #7c3aed;
color: white;
border: 1px solid #7c3aed;
box-shadow: 0 6px 15px rgba(124, 58, 237, 0.25);
}
.filter-btn-active:hover {
background: #6d28d9;
color: white;
}
.filter-btn i {
font-size: 14px;
}
.divider-line {
width: 1px;
height: 30px;
background: #cbd5e1;
margin: 0 10px;
align-self: center;
}
/* Events Grid */
.events-grid {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr); /* Force exactly 4 columns in one row */
gap: 20px;
padding: 0 5%;
}
.event-card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.03);
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
flex-direction: column;
border: 1px solid #f1f5f9;
}
.event-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(109, 40, 217, 0.08);
}
.event-image-wrapper {
position: relative;
height: 180px;
width: 100%;
}
.event-image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}
.event-badge {
position: absolute;
top: 15px;
left: 15px;
padding: 6px 14px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
color: white;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.badge-competition { background: #6d28d9; }
.badge-workshop { background: #f59e0b; }
.badge-recital { background: #be185d; }
.badge-annual { background: #3b82f6; }
.event-card-body {
padding: 24px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.event-card-title {
font-family: 'Playfair Display', serif;
font-size: 20px;
font-weight: 700;
color: #0f172a;
margin: 0 0 16px 0;
line-height: 1.3;
}
.event-meta {
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
color: #64748b;
margin-bottom: 10px;
}
.event-meta i {
color: #8b5cf6;
font-size: 15px;
width: 16px;
text-align: center;
}
.event-desc {
font-size: 14px;
color: #475569;
line-height: 1.6;
margin: 16px 0 24px 0;
flex-grow: 1;
}
.event-btn {
display: block;
width: 100%;
text-align: center;
padding: 12px 0;
border: 1px solid #e9d5ff;
background: white;
color: #6d28d9;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
text-decoration: none !important;
transition: all 0.3s ease;
}
.event-btn:hover {
background: #fdfaef;
border-color: #d8b4fe;
color: #5b21b6;
box-shadow: 0 4px 10px rgba(109, 40, 217, 0.05);
}
/* Responsive Design for Tablets and Mobile */
@media (max-width: 1024px) {
.events-grid {
grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablet */
}
}
@media (max-width: 768px) {
.header-content {
flex-direction: column;
align-items: center;
text-align: center;
}
.header-text-box h1 {
font-size: 36px;
justify-content: center;
}
.header-text-box p {
font-size: 16px;
}
.filters-container {
overflow-x: auto; /* Enable horizontal scroll for filters on mobile */
-webkit-overflow-scrolling: touch;
padding-bottom: 15px;
}
/* Hide scrollbar for a cleaner look */
.filters-container::-webkit-scrollbar {
display: none;
}
.filters-container {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
.events-grid {
grid-template-columns: 1fr; /* 1 card per row on mobile */
gap: 30px;
}
}
</style>
<div id="wrap" class="oe_structure oe_empty events-page-wrapper">
<!-- Hero Section -->
<section class="events-hero">
<div class="header-content">
<div class="header-icon-box">
<i class="fa fa-calendar-check-o"></i>
</div>
<div class="header-text-box">
<h1>
Events <span class="amp">&amp;</span> Performances
<i class="fa fa-star sparkle-icon"></i>
</h1>
<p>
Discover upcoming competitions, workshops, recitals and academy showcases.
</p>
</div>
</div>
<img src="/dance_new_theme/static/src/img/hero_img.png" class="hero-dancer-img" alt="Dancer Silhouette"/>
</section>
<!-- Filters Section -->
<section class="filters-container">
<div class="filter-group">
<a href="#" class="filter-btn filter-btn-active">
<i class="fa fa-th-large"></i> All Events
</a>
<a href="#" class="filter-btn filter-btn-outline">
<i class="fa fa-trophy"></i> Competition
</a>
<a href="#" class="filter-btn filter-btn-outline">
<i class="fa fa-television"></i> Workshop
</a>
<a href="#" class="filter-btn filter-btn-outline">
<i class="fa fa-street-view"></i> Recital
</a>
<a href="#" class="filter-btn filter-btn-outline">
<i class="fa fa-calendar-o"></i> Annual Day
</a>
</div>
<div class="divider-line d-none d-xl-block"></div>
<div class="filter-group">
<a href="#" class="filter-btn filter-btn-active">
<i class="fa fa-calendar"></i> Upcoming
</a>
<a href="#" class="filter-btn filter-btn-outline">
<i class="fa fa-history"></i> Completed
</a>
</div>
</section>
<!-- Events Grid -->
<section class="events-grid">
<t t-foreach="events" t-as="event">
<div class="event-card">
<div class="event-image-wrapper">
<t t-if="event.event_type == 'competition'">
<span class="event-badge badge-competition">Competition</span>
</t>
<t t-elif="event.event_type == 'workshop'">
<span class="event-badge badge-workshop">Workshop</span>
</t>
<t t-elif="event.event_type == 'recital'">
<span class="event-badge badge-recital">Recital</span>
</t>
<t t-else="">
<span class="event-badge badge-annual">Annual Day</span>
</t>
<img src="https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?auto=format&amp;fit=crop&amp;w=600&amp;q=80" alt="Event Cover"/>
</div>
<div class="event-card-body">
<h3 class="event-card-title"><t t-esc="event.name"/></h3>
<div class="event-meta">
<i class="fa fa-calendar"></i> <t t-esc="event.date"/>
</div>
<div class="event-meta">
<i class="fa fa-map-marker"></i> <t t-esc="event.venue or 'Venue TBA'"/>
</div>
<p class="event-desc">
<t t-esc="event.notes or 'Join us for this exciting dance event.'"/>
</p>
<a href="#" class="event-btn">View Details <i class="fa fa-arrow-right ms-1"></i></a>
</div>
</div>
</t>
<t t-if="not events">
<div class="col-12 text-center py-5">
<h4>No upcoming events found.</h4>
</div>
</t>
</section>
</div>
</t>
</template>
</odoo>