Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 58 additions & 15 deletions frontend/src/app.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use 'sass:map';
@use 'design-system/typographies.scss';


// Theme configuration is done by giving value to Bulma variables
// https://bulma.io/documentation/customize/concepts/

Expand Down Expand Up @@ -152,7 +151,7 @@ body {
// background-position: top;
// background-size: cover;
min-height: 100vh;
font-family: 'Lora', sans-serif;
font-family: $font-family-secondary;
}

.container-all {
Expand All @@ -165,18 +164,18 @@ body {
left: 0;
background-color: #cceaf5;
width: 100vw !important;
margin-left: calc(-50vw + 50%) !important;
margin-left: calc(-50vw + 50%) !important;
transition: transform 0.1s ease-in-out;
padding: 2rem 0;
font-family: 'Cinzel', sans-serif;
font-family: $font-family-primary;
&-item {
font-weight: 600;
color: $color-primary;
padding-left: 1.5rem !important;
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
padding-right: 1.5rem !important;
&:hover {
background-color: #43b2dc !important;
color: $color-white !important;
color: $color-white !important;
border-radius: 30px !important;
}

Expand All @@ -186,10 +185,24 @@ body {
}

&.brand {
// FIXME
@include mixins.desktop {
padding: 0;
transform: scale(1.2);
transform-origin: left center;
}
}

.brand-home-label {
font-family: $font-family-primary;
font-size: 1em;
font-weight: 600;
line-height: inherit;
color: inherit;
white-space: nowrap;

@include mixins.desktop {
transform: scale(0.8333);
transform-origin: left center;
}
}
}
Expand All @@ -201,13 +214,15 @@ body {
&-right {
width: 100%;
justify-content: flex-end;
padding-right: 5rem;
padding-right: 5rem;
}

&-left {
width: 100%;
justify-content: flex-start;
padding-left: 5rem;
padding-left: 5rem;
}

&-burger {
color: $color-primary;
&:hover {
Expand All @@ -230,7 +245,7 @@ body {
background-size: cover;
}

.hero-body {
.hero-body {
padding: 8rem 4rem;
@include mixins.mobile {
padding: 3rem 2rem;
Expand Down Expand Up @@ -292,9 +307,9 @@ footer {
background-image: linear-gradient(to right, $color-dark, $color-dark);
color: $color-white;
width: 100vw !important;
margin-left: calc(-50vw + 50%) !important;
position: relative;
left: 0;
margin-left: calc(-50vw + 50%) !important;
position: relative;
left: 0;
a {
color: $color-white;
}
Expand Down Expand Up @@ -391,6 +406,31 @@ footer {
}
}

.content {
ul {
list-style: none;
padding-left: 0;
margin-left: 0;
}

ul li {
position: relative;
padding-left: 1.4rem;
margin-bottom: 0.75rem;
line-height: 1.65;
}

ul li::before {
content: '✦';
position: absolute;
left: 0;
top: 0.05rem;
color: #b06b2d;
font-size: 0.9rem;
line-height: 1.65;
}
}

.content-location {
h4 {
margin-top: 3rem;
Expand Down Expand Up @@ -481,4 +521,7 @@ footer {
margin-bottom: 0.625rem;
}
}
@import 'https://fonts.googleapis.com/css?family=Vollkorn:400,700';

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap');
/* @import 'https://fonts.googleapis.com/css?family=Vollkorn:400,700'; */
145 changes: 130 additions & 15 deletions frontend/src/routes/venue-info/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,21 +1,136 @@
<script lang="ts">
import SvelteMarkdown from '@humanspeak/svelte-markdown'
import * as m from '$lib/paraglide/messages.js'
let { data } = $props();
import SvelteMarkdown from '@humanspeak/svelte-markdown';
import * as m from '$lib/paraglide/messages.js';
let { data } = $props();
</script>

<section class="hero page-title">
<h3 class="title">{data.title || m.venue_info()}</h3>
<h3 class="title">{data.title || m.venue_info()}</h3>
</section>
<section class="section">
<div class="container">
<div class="content content-border">
<div class="columns">
<div class="column is-five-fifths">
{#if data.content}
<SvelteMarkdown options={{mangle: false}} source={data.content}/>
{/if}
</div>
</div>
</div>
</div>
<div class="container">
<div class="content content-border">
<div class="columns">
<div class="column is-five-fifths">
{#if data.content}
<div class="strapi-markdown venue-markdown">
<SvelteMarkdown options={{ mangle: false }} source={data.content} />
</div>
{/if}
</div>
</div>
</div>
</div>
</section>

<style>
:global(.venue-markdown) {
max-width: 1100px;
margin: 0 auto;
}

:global(.venue-markdown p) {
font-size: clamp(1.05rem, 1.8vw, 1.45rem);
line-height: 1.65;
margin: 1.5rem 0;
}

:global(.venue-markdown strong) {
font-weight: 700;
color: #0d3b44;
}

/* Galería automática para párrafos Markdown que contienen imágenes */
:global(.venue-markdown p:has(img)) {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.5rem;
margin: 2.5rem 0;
padding: 1rem;
border-radius: 1.5rem;
background: linear-gradient(135deg, rgba(204, 234, 245, 0.65), rgba(255, 255, 255, 0.92));
box-shadow: 0 18px 45px rgba(13, 59, 68, 0.12);
}

:global(.venue-markdown p:has(img) img) {
width: 100%;
height: 320px;
object-fit: cover;
display: block;
border-radius: 1rem;
box-shadow: 0 10px 25px rgba(13, 59, 68, 0.18);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
filter 0.25s ease;
}

/* Efecto tipo postal */
:global(.venue-markdown p:has(img) img:first-child) {
transform: rotate(-1.2deg);
}

:global(.venue-markdown p:has(img) img:nth-child(2)) {
transform: rotate(1.2deg);
}

:global(.venue-markdown p:has(img) img:hover) {
transform: rotate(0deg) translateY(-4px) scale(1.02);
box-shadow: 0 18px 35px rgba(13, 59, 68, 0.26);
filter: saturate(1.08);
}

/* Separador elegante después de la galería */
:global(.venue-markdown p:has(img) + p) {
margin-top: 2rem;
padding-top: 1.5rem;
}

/* Ajuste para imágenes sueltas, si alguna vez pones solo una */
:global(.venue-markdown p:has(img) img:only-child) {
grid-column: 1 / -1;
max-width: 760px;
margin: 0 auto;
}

@media screen and (max-width: 768px) {
:global(.venue-markdown) {
max-width: 100%;
}

:global(.venue-markdown p) {
font-size: 1.05rem;
line-height: 1.6;
margin: 1.25rem 0;
}

:global(.venue-markdown p:has(img)) {
grid-template-columns: 1fr;
gap: 1rem;
padding: 0.75rem;
margin: 1.75rem 0;
border-radius: 1.25rem;
box-shadow: 0 12px 28px rgba(13, 59, 68, 0.12);
}

:global(.venue-markdown p:has(img) img),
:global(.venue-markdown p:has(img) img:first-child),
:global(.venue-markdown p:has(img) img:nth-child(2)) {
width: 100%;
height: auto;
max-height: none;
transform: none;
border-radius: 0.9rem;
}

:global(.venue-markdown p:has(img) img:hover) {
transform: none;
box-shadow: 0 10px 25px rgba(13, 59, 68, 0.18);
}

:global(.venue-markdown p:has(img) + p) {
margin-top: 1.5rem;
padding-top: 1.25rem;
}
}
</style>
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading