Skip to content

Commit 28fccec

Browse files
authored
[DO-600] Swap prev/next buttons and GitHub options buttons (#55)
* Swap github actions and surround cards * Reduce space between article and next/prev buttons
1 parent 21d3ca7 commit 28fccec

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

pages/[...slug].vue

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,32 @@
2222
<article class="mb-10">
2323
<ContentRenderer v-if="doc && doc._type === 'markdown'" :value="doc">
2424
<ContentRendererMarkdown :value="doc" class="gevamu-prose" />
25-
<nav
26-
class="justify-center grid sm:grid-cols-2 gap-8 items-start mt-32 print:hidden"
27-
>
28-
<EpLayoutSurroundDocCard
29-
v-if="doc.before"
30-
:doc="doc.before"
31-
direction="before"
32-
/>
33-
<EpLayoutSurroundDocCard
34-
v-if="doc.after"
35-
:doc="doc.after"
36-
direction="after"
37-
/>
38-
</nav>
25+
<EpLayoutGithubActions
26+
v-if="doc"
27+
:doc="doc"
28+
class="mt-10 print:hidden"
29+
/>
3930
</ContentRenderer>
4031
<div v-else-if="doc" class="gevamu-prose w-screen">
4132
<h1>{{ doc._dir.title }} pages</h1>
4233
<!-- TODO: Generate index page -->
4334
</div>
4435
</article>
45-
<EpLayoutGithubActions v-if="doc" :doc="doc" class="print:hidden" />
36+
<nav
37+
v-if="doc"
38+
class="justify-center grid sm:grid-cols-2 gap-8 items-start mt-24 print:hidden"
39+
>
40+
<EpLayoutSurroundDocCard
41+
v-if="doc.before"
42+
:doc="doc.before"
43+
direction="before"
44+
/>
45+
<EpLayoutSurroundDocCard
46+
v-if="doc.after"
47+
:doc="doc.after"
48+
direction="after"
49+
/>
50+
</nav>
4651
</div>
4752
</NuxtLayout>
4853
</template>

0 commit comments

Comments
 (0)