Skip to content

Fixed branding card layout on md breakpoint #179

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
merged 1 commit into from
Aug 16, 2024
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
22 changes: 16 additions & 6 deletions packages/frontendmu-nuxt/components/cards/BrandingCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ function getAssetPath(version: string) {
</script>

<template>
<div class="grid md:grid-cols-3 gap-8 border border-verse-900 dark:border-verse-400 rounded-lg p-8">
<div v-if="asset" class="flex flex-col col-span-1 gap-4 justify-center">
<div class="grid md:grid-cols-[auto_auto] gap-8 border border-verse-900 dark:border-verse-400 rounded-lg p-8">
<div
v-if="asset"
class="flex flex-col gap-4 justify-center"
>
<h3 class="font-bold text-xl md:text-3xl">
{{ asset.name }}
</h3>
Expand All @@ -32,8 +35,12 @@ function getAssetPath(version: string) {

<div class="flex justify-start items-center text-sm uppercase gap-4">
<span>Download</span>
<a v-for="version in asset.versions" :key="version" :href="getAssetPath(version)"
class="border px-4 py-1 cursor-pointer hover:bg-gray-100 rounded-md flex items-center gap-2" download
<a
v-for="version in asset.versions"
:key="version"
:href="getAssetPath(version)"
class="border px-4 py-1 cursor-pointer hover:bg-gray-100 rounded-md flex items-center gap-2"
download
>
<Icon name="carbon:download" />
<span>
Expand All @@ -42,8 +49,11 @@ function getAssetPath(version: string) {
</a>
</div>
</div>
<div class="col-span-2 flex justify-center">
<img class="max-h-64 w-full" :src="defaultPath">
<div class="flex justify-center">
<img
class="max-h-64 w-full"
:src="defaultPath"
>
</div>
</div>
</template>
Loading