Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/issue 164 event list #169

Closed
wants to merge 3 commits into from
Closed
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
17 changes: 11 additions & 6 deletions app/src/components/shared/EventListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@
</script>

<a
class="flex flex-col justify-between rounded-md px-3 py-4 hover:transition-[3s] border border-gray-200 hover:border-gray-800 dark:border-zinc-800
dark:bg-zinc-800 dark:hover:bg-zinc-700 md:flex-row"
class="flex flex-wrap md:flex-nowrap items-center rounded-md px-3 py-4 border border-gray-200
hover:border-gray-800 dark:border-zinc-800 dark:bg-zinc-800 dark:hover:bg-zinc-700"
href={`/event/${event._id}`}
style="gap: 4px;"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kan bruke tailwind class for dette.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gap-4

>
<div class="flex flex-col gap-3 px-0 font-light md:flex-row lg:gap-2 lg:px-2">
<h2 class="max-w-md truncate whitespace-pre-wrap pr-3 text-xl">
<div class="md:w-[45%] mr-1">
<h2 class="max-w-full truncate whitespace-pre-wrap text-xl">
{event.title}
</h2>
</div>
<div class="md:w-[30%] mr-1">
<EventBadges {event} />
</div>
<div class="flex flex-row items-center justify-between gap-6 pt-4 md:pt-0">
<div class="md:w-[20%] mr-1">
<EventLogos {event} height={5} />
<ArrowRight class="mr-2" />
</div>
<div class="w-auto ml-auto flex-shrink-0 flex items-center justify-end">
<ArrowRight class="w-5 h-5" />
</div>
</a>
4 changes: 2 additions & 2 deletions app/src/components/shared/EventLogos.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
export let height: number;
</script>

<div class="flex items-center gap-4">
{#if event.organisers === "Alle"}
<div class="flex flex-wrap items-center gap-4">
{#if event.organisers === "Alle"}
<img class="block h-{height} dark:hidden" alt="Capra-logo" src={capraLogoBlack} />
<img class="hidden h-{height} dark:block" alt="Capra-logo" src={capraLogoWhite} />
<img class="block h-{height} dark:hidden" alt="Liflig-logo" src={lifligLogoBlack} />
Expand Down
Loading