ya permite añadir logos de organizadores

pull/2/head
Borja Robert 2 years ago
parent 33077a1148
commit 848dc95034

@ -40,7 +40,7 @@
removeOrganizer(i); removeOrganizer(i);
}} }}
> >
X x
</div> </div>
<img class="organized-logo" src={organization.image} alt={organization.text} /> <img class="organized-logo" src={organization.image} alt={organization.text} />
<input class="logo-title" type="text" bind:value={organization.text} /> <input class="logo-title" type="text" bind:value={organization.text} />

@ -45,6 +45,7 @@
{#if newdate}<div class="time">{newdate.time}</div>{/if} {#if newdate}<div class="time">{newdate.time}</div>{/if}
<div class="address">{$address}</div> <div class="address">{$address}</div>
{#if $organizedBy[0]} {#if $organizedBy[0]}
<div class="imagetitle">Organiza:</div>
<div class="organized-by"> <div class="organized-by">
{#each $organizedBy as organization, i} {#each $organizedBy as organization, i}
<div class="organization"> <div class="organization">
@ -171,31 +172,46 @@
max-height: 4rem; max-height: 4rem;
overflow: hidden; overflow: hidden;
} }
.imagetitle {
position: absolute;
top: 700px;
font-size: 0.7rem;
color: #555;
}
.organized-by { .organized-by {
position: absolute; position: absolute;
top: 730px; top: 720px;
left: 1rem; left: 1rem;
right: 1rem; right: 1rem;
display: flex; display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%/3, max(64px, 100%/5)), 1fr));
grid-template-rows: min-content;
grid-auto-rows: auto;
justify-content: center; justify-content: center;
align-items: center;
} }
.organization { .organization {
/* grid-row: 2/3; */
margin: 0 1rem; margin: 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
/* width: 64px;
height: 64px;
max-width: 100%; */
} }
.organization img { .organization img {
max-height: 64px; max-height: 64px;
max-width: 100px;
margin: 0 auto; margin: 0 auto;
opacity: 75%; opacity: 75%;
} }
.caption { .caption {
margin: 0.5rem 0;
font-size: 0.8rem; font-size: 0.8rem;
font-family: monospace; font-family: monospace;
color: #666; color: #666;

Loading…
Cancel
Save