Skip to content

Commit f3b3a19

Browse files
committed
chore: scaffold sections
1 parent 79da460 commit f3b3a19

File tree

12 files changed

+77
-90
lines changed

12 files changed

+77
-90
lines changed

src/components/Divider.astro

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,9 @@ const {
2121
height = "",
2222
} = Astro.props;
2323
24-
const style = `transform: scaleX(${flipHorizontal ? -1 : 1}) scaleY(${flipVertical ? -1 : 1})${fixAntialiasingTop ? "; margin-block-start: -1px;" : ""}${fixAntialiasingBottom ? "; margin-block-end: -1px;" : ""}`;
24+
const style = `transform: scaleX(${flipHorizontal ? -1 : 1}) scaleY(${flipVertical ? -1 : 1})${fixAntialiasingTop ? "; margin-block-start: -1.1px;" : ""}${fixAntialiasingBottom ? "; margin-block-end: -1.1px;" : ""}`;
2525
---
2626

27-
<style define:vars={{ firstSegmentColor, secondSegmentColor, height }}>
28-
svg {
29-
--first-segment: var(--firstSegmentColor, var(--color-primary));
30-
--second-segment: var(--secondSegmentColor, var(--color-primary-110));
31-
width: 100%;
32-
height: var(--height, var(--size-height-divider));
33-
}
34-
</style>
35-
3627
{
3728
kind === "single" ? (
3829
<svg viewBox="0 0 100 100" preserveAspectRatio="none" style={style} class="divider">
@@ -48,3 +39,12 @@ const style = `transform: scaleX(${flipHorizontal ? -1 : 1}) scaleY(${flipVertic
4839
</svg>
4940
) : null
5041
}
42+
43+
<style define:vars={{ firstSegmentColor, secondSegmentColor, height }}>
44+
svg {
45+
--first-segment: var(--firstSegmentColor, var(--color-primary));
46+
--second-segment: var(--secondSegmentColor, var(--color-primary-110));
47+
width: 100%;
48+
height: var(--height, var(--size-height-divider));
49+
}
50+
</style>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import QuestionsSection from "../../../layouts/sections/QuestionsSection.astro";
2+
3+
<QuestionsSection>
4+
Hallo
5+
</QuestionsSection>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ReferencesSection from "../../../layouts/sections/ReferencesSection.astro";
2+
3+
<ReferencesSection>
4+
Hallo
5+
</ReferencesSection>

src/content/sections/de/Tools.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ToolsSection from "../../../layouts/sections/ToolsSection.astro";
2+
3+
<ToolsSection>
4+
Hallo
5+
</ToolsSection>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import QuestionsSection from "../../../layouts/sections/QuestionsSection.astro";
2+
3+
<QuestionsSection>
4+
Hello
5+
</QuestionsSection>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ReferencesSection from "../../../layouts/sections/ReferencesSection.astro";
2+
3+
<ReferencesSection>
4+
Hello
5+
</ReferencesSection>

src/content/sections/en/Tools.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import ToolsSection from "../../../layouts/sections/ToolsSection.astro";
2+
3+
<ToolsSection>
4+
Here are some of the tools we use and recommend:
5+
</ToolsSection>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<section>
2+
<slot />
3+
</section>
4+
<style>
5+
section {
6+
background-color: var(--color-white);
7+
padding: 8rem var(--size-page-padding);
8+
}
9+
</style>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<section>
2+
<slot />
3+
</section>
4+
<style>
5+
section {
6+
background-color: var(--color-background);
7+
padding: 8rem var(--size-page-padding);
8+
z-index: 1;
9+
}
10+
</style>

src/layouts/sections/ServicesSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<style>
66
section {
77
background-color: var(--color-white);
8-
padding: 8rem var(--size-page-padding);
8+
padding: 8rem var(--size-page-padding) var(--size-gutter-big) var(--size-page-padding);
99
z-index: 1;
1010

1111
.tab {

0 commit comments

Comments
 (0)