Skip to content

space issue on sponsor page #264

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

Merged
1 commit merged into from
Feb 20, 2025
Merged
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
61 changes: 41 additions & 20 deletions packages/frontendmu-nuxt/pages/sponsors.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import sponsorTypes from '../../frontendmu-data/data/sponsors.js'
import { vTransitionName } from '@/utils/helpers'
import sponsorTypes from "../../frontendmu-data/data/sponsors.js";
import { vTransitionName } from "@/utils/helpers";

const title = 'Our sponsors'
const description = ''
const title = "Our sponsors";
const description = "";
</script>

<template>
Expand All @@ -13,36 +13,55 @@ const description = ''
<BaseHeading>Sponsors</BaseHeading>
<p class="text-xl text-verse-600 dark:text-verse-200">
We're lucky to have sponsors support our community. If you're
interested in sponsoring us,<a href="mailto:hello@frontend.mu"
class="underline hover:bg-verse-50 dark:bg-verse-950" title="Please reach out to us via email"> please reach
out to the organizers
here</a>.
interested in sponsoring us,<a
href="mailto:hello@frontend.mu"
class="underline hover:bg-verse-50 dark:bg-verse-950"
title="Please reach out to us via email"
>
please reach out to the organizers here</a
>.
</p>
</div>
<div class="grid gap-20 pt-12 md:grid-cols-2">
<template v-for="sponsorType in sponsorTypes" :key="sponsorType.title">
<div class="flex flex-col">
<div class="flex flex-col justify-between">
<div class="space-y-5 sm:mx-auto sm:space-y-2">
<h3
class="text-3xl font-bold tracking-tight text-center md:text-left sm:text-4xl sm:tracking-tight text-verse-500 dark:text-verse-200">
class="text-3xl font-bold tracking-tight text-center md:text-left sm:text-4xl sm:tracking-tight text-verse-500 dark:text-verse-200"
>
{{ sponsorType.title }}
</h3>
<p class="max-w-2xl text-xl text-verse-600 dark:text-verse-200">
{{ sponsorType.description }}
</p>
</div>
<ul role="list"
class="grid grid-cols-1 sm:ml-0 sm:mr-auto mx-auto mt-6 gap-x-4 gap-y-2 sm:grid-cols-2 md:gap-x-6 lg:gap-x-8 lg:gap-y-12">
<template v-for="(sponsor, index) in sponsorType.sponsors" :key="index">
<ul
role="list"
class="grid grid-cols-1 sm:ml-0 sm:mr-auto mx-auto mt-6 gap-x-4 gap-y-2 sm:grid-cols-2 md:gap-x-6 lg:gap-x-8 lg:gap-y-12"
>
<template
v-for="(sponsor, index) in sponsorType.sponsors"
:key="index"
>
<li class="pt-4">
<a target="_blank" :href="sponsor.sponsorUrl"
class="relative flex flex-col items-center justify-center gap-2 p-6 mt-4 transition-all bg-white border-t-8 border-verse-500 border-solid shadow-md md:mt-0 rounded-xl group hover:shadow-lg h-full">
<img v-if="sponsor.logo" class="w-48 h-52 object-contain" :src="`/img/sponsors/${sponsor.logo}`"
:style="vTransitionName('sponsor-name', sponsor.name)">
<a
target="_blank"
:href="sponsor.sponsorUrl"
class="relative flex flex-col items-center justify-center gap-2 p-6 mt-4 transition-all bg-white border-t-8 border-verse-500 border-solid shadow-md md:mt-0 rounded-xl group hover:shadow-lg h-full"
>
<img
v-if="sponsor.logo"
class="w-48 h-52 object-contain"
:src="`/img/sponsors/${sponsor.logo}`"
:style="vTransitionName('sponsor-name', sponsor.name)"
/>
<div v-else>
<span class="text-2xl font-bold">{{ sponsor.name }}</span>
</div>
<p v-if="sponsor.description" class="text-center text-gray-500">
<p
v-if="sponsor.description"
class="text-center text-gray-500"
>
{{ sponsor.description }}
</p>
</a>
Expand All @@ -55,11 +74,13 @@ const description = ''
<div>
<div class="space-y-5 sm:mx-auto sm:space-y-2 py-4">
<h3
class="text-3xl font-bold tracking-tight text-center md:text-left sm:text-4xl sm:tracking-tight text-verse-500 dark:text-verse-200">
class="text-3xl font-bold tracking-tight text-center md:text-left sm:text-4xl sm:tracking-tight text-verse-500 dark:text-verse-200"
>
Past meetup sponsors
</h3>
<p class="max-w-2xl text-xl text-verse-600 dark:text-verse-200">
These wonderful companies have sponsored our meetups in the past. We're grateful for their support.
These wonderful companies have sponsored our meetups in the past.
We're grateful for their support.
</p>
</div>

Expand Down