Skip to content

Commit c6b3482

Browse files
committed
feat: optimize for mobiles
1 parent 83989a4 commit c6b3482

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed

app/components/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<footer
3-
class="flex justify-between gap-4 border-t border-slate-300 px-6 py-2 text-sm text-slate-500"
3+
class="flex flex-col justify-between gap-4 border-t border-slate-300 px-6 py-2 text-sm text-slate-500 lg:flex-row"
44
>
55
<span
66
>🚀 Do you want to try Sphinx as service?

app/components/Header.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<header
3-
class="flex items-center justify-between gap-20 border-t border-b border-slate-300 bg-[#f8fafc] px-6 py-1 text-slate-500 dark:bg-slate-800 dark:text-slate-400"
3+
class="flex flex-col items-center justify-between gap-4 border-t border-b border-slate-300 bg-[#f8fafc] px-6 py-1 text-slate-500 lg:flex-row dark:bg-slate-800 dark:text-slate-400"
44
>
55
<!-- Left-side logo and motto -->
6-
<div class="flex items-center gap-2">
7-
<a href="https://documatt.com">
6+
<div class="flex items-center gap-4">
7+
<a href="https://documatt.com" class="">
88
<NuxtImg
99
src="/images/documatt-logo.svg"
1010
alt="Documatt logo"

app/components/Topbar.vue

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
<template>
22
<div
3-
class="flex items-center gap-2 border-b border-slate-300 px-6 py-1 text-slate-700 dark:text-slate-300"
3+
class="flex flex-col items-center gap-2 border-b border-slate-300 px-6 py-1 text-slate-700 lg:flex-row dark:text-slate-300"
44
>
5-
I want to preview
5+
<div>I want to preview</div>
66

7-
<div class="tooltip tooltip-left" data-tip="Switch syntax">
8-
<select
9-
:value="previewStore.syntax"
10-
class="select select-ghost text-base"
11-
@change="onSyntaxChange"
12-
>
13-
<option :value="Syntax.RST" selected>reStructuredText</option>
14-
<option :value="Syntax.MD">Markdown</option>
15-
</select>
7+
<div>
8+
<div class="tooltip tooltip-left" data-tip="Switch syntax">
9+
<select
10+
:value="previewStore.syntax"
11+
class="select select-ghost text-base"
12+
@change="onSyntaxChange"
13+
>
14+
<option :value="Syntax.RST" selected>reStructuredText</option>
15+
<option :value="Syntax.MD">Markdown</option>
16+
</select>
17+
</div>
1618
</div>
1719

18-
using
20+
<div>
21+
using
1922

20-
<NuxtImg
21-
src="/images/sphinx-logo.svg"
22-
alt="Sphinx logo"
23-
class="inline h-[0.75lh] dark:hidden"
24-
/>
25-
<NuxtImg
26-
src="/images/sphinx-logo-dark.svg"
27-
alt="Sphinx logo"
28-
class="inline h-[0.75lh] not-dark:hidden"
29-
/>
23+
<NuxtImg
24+
src="/images/sphinx-logo.svg"
25+
alt="Sphinx logo"
26+
class="inline h-[0.75lh] dark:hidden"
27+
/>
28+
<NuxtImg
29+
src="/images/sphinx-logo-dark.svg"
30+
alt="Sphinx logo"
31+
class="inline h-[0.75lh] not-dark:hidden"
32+
/>
3033

31-
Sphinx 8.2.1
34+
Sphinx 8.2.1
35+
</div>
3236

3337
<!-- More info -->
3438
<!--

0 commit comments

Comments
 (0)