Skip to content

Commit 71c867c

Browse files
committed
Make the section top element full-width
The colored boxes of the section top element should span the full screen width without a gap after the header. The content remains within the content bounding box.
1 parent 25c64b5 commit 71c867c

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed

components/FfSectionTop.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Style guide references:
1010
- Web components/Example web pages/Section top
1111
-->
1212
<template>
13-
<div class="flex flex-col desktop:flex-row flex-wrap mt-20">
13+
<div class="flex flex-col desktop:flex-row flex-wrap mt-[4px] desktop:mt-0">
1414
<slot></slot>
1515
</div>
1616
</template>

components/FfSectionTopItem.vue

+16-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,26 @@ Section top
44
The section top presents a summary of the topic with a sub-navigation and
55
signposts to child pages in the section.
66

7+
Use with the "full-width" layout only to have the colored boxes span the full
8+
width of the screen.
9+
710
Style guide references:
811
- Web components/Example web pages/Section top
912
-->
1013
<template>
11-
<div class="basis-1/2 overflow-hidden text-white p-32 desktop:p-64" :class="wrapperClass">
12-
<div class="flex-col phone:flex-row flex space-x-16">
14+
<div class="group basis-1/2 overflow-hidden text-white p-32 desktop:p-64" :class="wrapperClass">
15+
<!-- 1600px/2 - 96px padding == 706px -->
16+
<div class="flex flex-col phone:flex-row
17+
space-x-16
18+
desktop:max-w-[706px]
19+
tablet:px-48
20+
px-24
21+
group-odd:ms-auto group-odd:me-0
22+
group-even:ms-0 group-even:me-auto
23+
group-odd:tablet:ps-48
24+
group-odd:desktop:ps-96
25+
group-even:tablet:pe-48
26+
group-even:desktop:pe-96">
1327
<div>
1428
<component :is="icons[icon]" class="text-[100px] mx-auto" />
1529
</div>

content/our-work/0.index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: content
2+
layout: full-width
33
title: What we do
44
---
55

content/our-work/1.projects.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Our projects
3+
layout: content
34
---
45

56
::ff-cards{class="mt-64"}

layouts/full-width.vue

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!--
2+
Full-width content layout with header.
3+
4+
Use for full-width content pages. Use the "default" layout if no header is
5+
required.
6+
-->
7+
<template>
8+
<div class="w-full">
9+
<FfHeader />
10+
<main>
11+
<FfContainer>
12+
<FfNavSub />
13+
</FfContainer>
14+
<FfHeaderTextFrontmatter />
15+
<slot />
16+
</main>
17+
<FfFooter />
18+
</div>
19+
</template>

0 commit comments

Comments
 (0)