Skip to content

Commit e4c1378

Browse files
authored
fix(ui): responsive mobile fixes for footer, steps, cards, contact form, and docs layout (#125)
Closes #118, closes #121, closes #122, closes #123, closes #124
1 parent 6dfd600 commit e4c1378

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

components/AppFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const footerColumns = computed(() => [
3131
<UFooter :ui="{ top: 'border-b border-t border-default' }">
3232
<template #top>
3333
<UContainer>
34-
<UFooterColumns :columns="footerColumns" :ui="{ root: 'block!', left: 'hidden!', center: 'grid! grid-cols-3! gap-8' }" />
34+
<UFooterColumns :columns="footerColumns" :ui="{ root: 'block!', left: 'hidden!', center: 'grid! grid-cols-1! sm:grid-cols-3! gap-8' }" />
3535
</UContainer>
3636
</template>
3737
<template #left>

components/content/LandingFeature.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defineProps<{
66
</script>
77

88
<template>
9-
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-6">
9+
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-4 sm:p-6">
1010
<div v-if="icon" class="mb-4 flex size-10 items-center justify-center rounded-lg bg-primary/10">
1111
<UIcon :name="icon" class="size-5 text-primary" />
1212
</div>

components/content/LandingProblemCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defineProps<{
55
</script>
66

77
<template>
8-
<div class="landing-problem-card rounded-xl border-2 border-primary/30 bg-zinc-50 p-6 text-center">
8+
<div class="landing-problem-card rounded-xl border-2 border-primary/30 bg-zinc-50 p-4 sm:p-6 text-center">
99
<div v-if="icon" class="mb-4 mx-auto flex size-10 items-center justify-center rounded-lg bg-primary/10">
1010
<UIcon :name="icon" class="size-5 text-primary" />
1111
</div>

components/content/LandingReference.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ defineProps<{
66
</script>
77

88
<template>
9-
<div class="flex flex-col rounded-xl border border-zinc-200 bg-white p-6">
9+
<div class="flex flex-col rounded-xl border border-zinc-200 bg-white p-4 sm:p-6">
1010
<div class="mb-3 flex items-center gap-3">
11-
<NuxtImg v-if="logo" :src="logo" :alt="title" class="h-16 w-28 shrink-0 object-contain" />
11+
<NuxtImg v-if="logo" :src="logo" :alt="title" class="h-12 w-20 sm:h-16 sm:w-28 shrink-0 object-contain" />
1212
<h3 class="text-base font-semibold">
1313
{{ title }}
1414
</h3>

components/content/LandingStep.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defineProps<{
2323
</div>
2424

2525
<!-- Card -->
26-
<div class="flex h-full flex-col items-center rounded-xl border border-zinc-200 bg-white px-6 pb-6 pt-8 text-center shadow-sm">
26+
<div class="flex h-full flex-col items-center rounded-xl border border-zinc-200 bg-white px-4 pb-4 sm:px-6 sm:pb-6 pt-8 text-center shadow-sm">
2727
<h3 class="text-lg font-semibold">
2828
{{ title }}
2929
</h3>
@@ -36,7 +36,7 @@ defineProps<{
3636

3737
<style scoped>
3838
/* Horizontal chevron arrow between steps (desktop) */
39-
@media (min-width: 640px) {
39+
@media (min-width: 768px) {
4040
.landing-step:not(:last-child)::after {
4141
content: '';
4242
position: absolute;
@@ -51,7 +51,7 @@ defineProps<{
5151
}
5252
5353
/* Vertical chevron arrow between steps (mobile) */
54-
@media (max-width: 639px) {
54+
@media (max-width: 767px) {
5555
.landing-step:not(:last-child)::after {
5656
content: '';
5757
position: absolute;

components/content/LandingSteps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defineProps<{
1010
<section class="py-16 sm:py-24 bg-zinc-50">
1111
<UContainer>
1212
<LandingSectionHeader :headline="headline" :title="title" :description="description" />
13-
<div class="mt-12 grid gap-y-10 pt-6 sm:grid-cols-3 sm:gap-x-12">
13+
<div class="mt-12 grid gap-y-14 pt-6 md:grid-cols-3 md:gap-x-12">
1414
<MDCSlot :use="$slots.default" />
1515
</div>
1616
</UContainer>

components/content/LandingUseCase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defineProps<{
66
</script>
77

88
<template>
9-
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-6">
9+
<div class="rounded-xl border border-zinc-200 bg-zinc-50 p-4 sm:p-6">
1010
<div class="mb-4 flex items-center gap-3">
1111
<div v-if="icon" class="flex size-12 shrink-0 items-center justify-center rounded-lg bg-primary/10">
1212
<UIcon :name="icon" class="size-6 text-primary" />

layouts/docs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const docsNavigation = computed(() => {
5151
<AppHeader />
5252

5353
<UContainer class="flex-1">
54-
<div class="flex gap-8 py-8">
54+
<div class="flex gap-4 py-4 sm:gap-8 sm:py-8">
5555
<aside class="hidden lg:block w-64 shrink-0">
5656
<nav class="sticky top-20">
5757
<UContentNavigation

pages/contact.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function onSubmit() {
3636
<template>
3737
<UContainer class="py-16">
3838
<div class="mx-auto max-w-xl">
39-
<h1 class="text-3xl font-bold tracking-tight">
39+
<h1 class="text-2xl sm:text-3xl font-bold tracking-tight">
4040
{{ t('contact.title') }}
4141
</h1>
4242
<p class="mt-4 text-muted">
@@ -96,7 +96,7 @@ function onSubmit() {
9696
/>
9797
</UFormField>
9898

99-
<UButton type="submit" size="lg">
99+
<UButton type="submit" size="lg" class="w-full sm:w-auto">
100100
{{ t('contact.send') }}
101101
</UButton>
102102
</form>

0 commit comments

Comments
 (0)