feat: Initialize Symfony application structure with essential files
- Added index.php for application entry point. - Created app.css for global styles. - Introduced HomeController for handling the home route. - Implemented Kernel class for application kernel. - Added base.html.twig as the main template. - Created index.html.twig for the home page layout. - Set up Docker configurations for development and production environments. - Included opcache configuration for development.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
DirectoryIndex index.php
|
||||
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
RewriteCond %{REQUEST_URI}::$0 ^(/.+)/(.*)::\2$
|
||||
RewriteRule .* - [E=BASE:%1]
|
||||
|
||||
RewriteCond %{HTTP:Authorization} .+
|
||||
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]
|
||||
|
||||
RewriteCond %{ENV:REDIRECT_STATUS} =""
|
||||
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ %{ENV:BASE}/index.php [L]
|
||||
</IfModule>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 768 KiB |
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
|
||||
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
||||
|
||||
return static function (array $context) {
|
||||
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
||||
};
|
||||
@@ -0,0 +1,640 @@
|
||||
:root {
|
||||
--cbc-navy: #0b2f55;
|
||||
--cbc-deep-blue: #0f5f97;
|
||||
--cbc-bright-blue: #1c9dd9;
|
||||
--cbc-ice: #dff3fb;
|
||||
--cbc-white: #f5fbff;
|
||||
--cbc-coffee: #6a3f24;
|
||||
--cbc-gold: #f2bf44;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
color: var(--cbc-white);
|
||||
min-height: 100vh;
|
||||
background:
|
||||
radial-gradient(circle at 8% 10%, #ffffff2e 0 90px, transparent 91px),
|
||||
radial-gradient(circle at 88% 15%, #6ecdf533 0 140px, transparent 141px),
|
||||
linear-gradient(145deg, var(--cbc-navy), var(--cbc-deep-blue) 45%, #0b426f);
|
||||
}
|
||||
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.7rem 1rem;
|
||||
border-bottom: 1px solid #d6f4ff40;
|
||||
background: linear-gradient(180deg, #082540f0, #0b3255db);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.brand-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
color: var(--cbc-ice);
|
||||
text-decoration: none;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #d8f2ff85;
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
display: inline-flex;
|
||||
gap: 0.35rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.top-nav a {
|
||||
color: var(--cbc-white);
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
border: 1px solid #dbf4ff44;
|
||||
border-radius: 999px;
|
||||
padding: 0.28rem 0.72rem;
|
||||
background: #ffffff12;
|
||||
}
|
||||
|
||||
.top-nav a:hover {
|
||||
background: #9adcf83d;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
width: min(980px, 92vw);
|
||||
margin: 3rem auto;
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
padding: 2rem;
|
||||
border: 2px solid #c4ebff5c;
|
||||
border-radius: 24px;
|
||||
background: linear-gradient(170deg, #0a2c4dca, #0e4f80ca 65%, #1b90c2bf);
|
||||
backdrop-filter: blur(8px);
|
||||
box-shadow: 0 14px 44px #03102066;
|
||||
text-align: center;
|
||||
animation: reveal 700ms ease-out both;
|
||||
}
|
||||
|
||||
.logo-wrap {
|
||||
width: min(320px, 72vw);
|
||||
margin: 0 auto 1rem;
|
||||
padding: 0.55rem;
|
||||
border-radius: 20px;
|
||||
background: linear-gradient(135deg, #ffffff26, #70cef747);
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
margin: 0;
|
||||
color: var(--cbc-gold);
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
font-weight: 800;
|
||||
font-size: 0.74rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0.25rem 0 0;
|
||||
font-family: 'Bebas Neue', sans-serif;
|
||||
font-size: clamp(2.4rem, 8vw, 4rem);
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--cbc-ice);
|
||||
}
|
||||
|
||||
.lead {
|
||||
margin: 0.8rem auto 1.2rem;
|
||||
max-width: 55ch;
|
||||
font-size: 1.08rem;
|
||||
}
|
||||
|
||||
.pill-row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.6rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pill {
|
||||
border: 1px solid #d6f4ff7d;
|
||||
border-radius: 999px;
|
||||
padding: 0.35rem 0.9rem;
|
||||
background: #ffffff14;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.info-grid article {
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(165deg, #ffffff17, #7bc6ed26);
|
||||
border: 1px solid #d8eeff47;
|
||||
padding: 1rem 1.1rem;
|
||||
animation: reveal 900ms ease-out both;
|
||||
}
|
||||
|
||||
.info-grid h2 {
|
||||
margin-top: 0;
|
||||
color: var(--cbc-gold);
|
||||
font-size: 1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.info-grid p {
|
||||
margin: 0.45rem 0;
|
||||
color: var(--cbc-white);
|
||||
}
|
||||
|
||||
.menu-board,
|
||||
.reservation-card,
|
||||
.contact-card,
|
||||
.about-card,
|
||||
.admin-card,
|
||||
.section-card {
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(160deg, #f8fdff1a, #88d4f92b);
|
||||
border: 1px solid #d8eeff47;
|
||||
padding: 1rem 1.1rem;
|
||||
animation: reveal 1000ms ease-out both;
|
||||
}
|
||||
|
||||
.menu-board h2,
|
||||
.reservation-card h2,
|
||||
.contact-card h2,
|
||||
.about-card h2,
|
||||
.admin-card h2,
|
||||
.section-card h2 {
|
||||
margin-top: 0;
|
||||
color: var(--cbc-gold);
|
||||
font-size: 1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.menu-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.menu-grid article {
|
||||
background: #0828428a;
|
||||
border: 1px solid #cbeeff45;
|
||||
border-radius: 12px;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.menu-grid h3 {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.menu-grid p {
|
||||
margin: 0.45rem 0;
|
||||
}
|
||||
|
||||
.menu-grid strong {
|
||||
color: var(--cbc-gold);
|
||||
}
|
||||
|
||||
.reservation-form {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.65rem 0.75rem;
|
||||
}
|
||||
|
||||
.reservation-form label {
|
||||
grid-column: span 2;
|
||||
margin-top: 0.2rem;
|
||||
font-weight: 700;
|
||||
color: #dff3fb;
|
||||
}
|
||||
|
||||
.reservation-form input {
|
||||
grid-column: span 2;
|
||||
border: 1px solid #bfe9ff61;
|
||||
border-radius: 10px;
|
||||
background: #072741c7;
|
||||
color: var(--cbc-white);
|
||||
padding: 0.6rem 0.72rem;
|
||||
}
|
||||
|
||||
.reservation-form button {
|
||||
grid-column: span 2;
|
||||
margin-top: 0.3rem;
|
||||
border: 1px solid #f5d47a66;
|
||||
border-radius: 12px;
|
||||
padding: 0.68rem 0.9rem;
|
||||
background: linear-gradient(145deg, #f2bf44, #d29f2f);
|
||||
color: #10243d;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.reservation-form button:hover {
|
||||
filter: brightness(1.06);
|
||||
}
|
||||
|
||||
.status-banner {
|
||||
border-radius: 10px;
|
||||
padding: 0.65rem 0.8rem;
|
||||
font-weight: 700;
|
||||
margin: 0.1rem 0 0.8rem;
|
||||
}
|
||||
|
||||
.status-banner.success {
|
||||
background: #2fa56c33;
|
||||
border: 1px solid #8be4b866;
|
||||
color: #defbe8;
|
||||
}
|
||||
|
||||
.status-banner.error {
|
||||
background: #9f2b2b40;
|
||||
border: 1px solid #ffb4b499;
|
||||
color: #ffe7e7;
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.reservation-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 680px;
|
||||
background: #072b4580;
|
||||
border: 1px solid #bde7ff3d;
|
||||
}
|
||||
|
||||
.reservation-table th,
|
||||
.reservation-table td {
|
||||
border-bottom: 1px solid #bde7ff33;
|
||||
padding: 0.6rem 0.55rem;
|
||||
text-align: left;
|
||||
font-size: 0.94rem;
|
||||
}
|
||||
|
||||
.reservation-table thead th {
|
||||
color: var(--cbc-gold);
|
||||
letter-spacing: 0.03em;
|
||||
font-size: 0.86rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
width: min(980px, 92vw);
|
||||
margin: 0 auto 1.2rem;
|
||||
text-align: center;
|
||||
color: #d2edff;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
@keyframes reveal {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(14px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.site-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.menu-grid {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.reservation-form {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.reservation-form label,
|
||||
.reservation-form input,
|
||||
.reservation-form button {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
.hero-card {
|
||||
padding: 1.4rem;
|
||||
}
|
||||
|
||||
.hours-location-grid,
|
||||
.offerings-list,
|
||||
.amenities-list,
|
||||
.contact-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 540px) {
|
||||
.menu-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Hero CTAs ──────────────────────────────────────── */
|
||||
|
||||
.hero-sub {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: var(--cbc-ice);
|
||||
margin: 0.3rem 0 0.5rem;
|
||||
}
|
||||
|
||||
.btn-row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 1.2rem;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
display: inline-block;
|
||||
padding: 0.6rem 1.4rem;
|
||||
background: linear-gradient(145deg, #f2bf44, #d29f2f);
|
||||
color: #10243d;
|
||||
font-weight: 800;
|
||||
border-radius: 999px;
|
||||
text-decoration: none;
|
||||
font-size: 0.95rem;
|
||||
transition: filter 0.15s;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
filter: brightness(1.1);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
display: inline-block;
|
||||
padding: 0.6rem 1.4rem;
|
||||
background: transparent;
|
||||
color: var(--cbc-ice);
|
||||
font-weight: 700;
|
||||
border-radius: 999px;
|
||||
text-decoration: none;
|
||||
border: 1.5px solid #c4ebff7d;
|
||||
font-size: 0.95rem;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #9adcf83d;
|
||||
}
|
||||
|
||||
/* ── Section card sub-headings ──────────────────────── */
|
||||
|
||||
.section-card h3,
|
||||
.about-card h3,
|
||||
.contact-card h3,
|
||||
.menu-board h3.section-sub {
|
||||
color: var(--cbc-ice);
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
margin: 1.1rem 0 0.4rem;
|
||||
}
|
||||
|
||||
.section-card p,
|
||||
.section-card li {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.contact-card a {
|
||||
color: var(--cbc-bright-blue);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.contact-card a:hover {
|
||||
color: var(--cbc-ice);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ── Hours & Location ───────────────────────────────── */
|
||||
|
||||
.hours-location-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1.5rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.hours-table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.hours-table td {
|
||||
padding: 0.35rem 0;
|
||||
color: var(--cbc-white);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.hours-table td:first-child {
|
||||
font-weight: 700;
|
||||
color: var(--cbc-ice);
|
||||
width: 58%;
|
||||
}
|
||||
|
||||
.quiet-note {
|
||||
margin-top: 0.75rem;
|
||||
font-size: 0.88rem;
|
||||
color: #90d0f5;
|
||||
}
|
||||
|
||||
/* ── Offerings list ─────────────────────────────────── */
|
||||
|
||||
.offerings-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.75rem 0 0;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.offerings-list li {
|
||||
background: #0828428a;
|
||||
border: 1px solid #cbeeff45;
|
||||
border-radius: 12px;
|
||||
padding: 0.85rem 1rem;
|
||||
}
|
||||
|
||||
.offerings-list li strong {
|
||||
display: block;
|
||||
color: var(--cbc-gold);
|
||||
margin-bottom: 0.35rem;
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
/* ── Menu note ──────────────────────────────────────── */
|
||||
|
||||
.menu-note {
|
||||
margin-top: 1rem;
|
||||
padding: 0.7rem 1rem;
|
||||
background: #0828428a;
|
||||
border: 1px solid #cbeeff45;
|
||||
border-radius: 10px;
|
||||
font-size: 0.9rem;
|
||||
color: #b8e4f9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* ── Workspace amenities ────────────────────────────── */
|
||||
|
||||
.amenities-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.75rem 0 1rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.amenities-list li {
|
||||
background: #0828428a;
|
||||
border: 1px solid #cbeeff45;
|
||||
border-radius: 10px;
|
||||
padding: 0.75rem 0.9rem;
|
||||
}
|
||||
|
||||
.amenities-list li strong {
|
||||
display: block;
|
||||
color: var(--cbc-gold);
|
||||
margin-bottom: 0.2rem;
|
||||
font-size: 0.85rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.why-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.5rem 0 0;
|
||||
}
|
||||
|
||||
.why-list li {
|
||||
padding: 0.35rem 0 0.35rem 1.4rem;
|
||||
position: relative;
|
||||
color: var(--cbc-white);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.why-list li::before {
|
||||
content: "→";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--cbc-gold);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ── Events ─────────────────────────────────────────── */
|
||||
|
||||
.event-item {
|
||||
background: #0828428a;
|
||||
border: 1px solid #cbeeff45;
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.1rem;
|
||||
margin-top: 0.85rem;
|
||||
}
|
||||
|
||||
.event-item h3 {
|
||||
margin: 0.3rem 0 0.4rem;
|
||||
color: var(--cbc-ice);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.event-meta {
|
||||
font-size: 0.8rem;
|
||||
color: var(--cbc-gold);
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.07em;
|
||||
}
|
||||
|
||||
/* ── Contact grid ───────────────────────────────────── */
|
||||
|
||||
.contact-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.3fr;
|
||||
gap: 1.5rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.form-fields-preview {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.5rem 0 1rem;
|
||||
}
|
||||
|
||||
.form-fields-preview li {
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-bottom: 1px solid #cbeeff25;
|
||||
color: #b8e4f9;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.social-link {
|
||||
display: inline-block;
|
||||
padding: 0.3rem 0.85rem;
|
||||
border: 1px solid #d6f4ff7d;
|
||||
border-radius: 999px;
|
||||
background: #ffffff12;
|
||||
color: var(--cbc-ice);
|
||||
text-decoration: none;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
background: #9adcf83d;
|
||||
}
|
||||
Reference in New Issue
Block a user