Skip to content

Commit bf1f472

Browse files
feat: support four cards on home page (#893)
* feat: support four cards on home page * chore(cms): adjust copy * chore(cms): change order
1 parent cafc104 commit bf1f472

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/assets/styles/base/_helpers.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
box-shadow: 0 0.5rem 0 0 var(--fl-fgColor, var(--color-red-45));
117117
inline-size: 64px;
118118
left: calc(50% - 64px / 2);
119-
top: calc(35% - 64px / 2);
119+
top: calc(25% - 64px / 2);
120120
}
121121

122122
&:hover,
@@ -129,7 +129,7 @@
129129
&:active {
130130
.play-button {
131131
box-shadow: 0 6px 0 0 var(--fl-fgColor, var(--color-red-45));
132-
top: calc(35% - 30px);
132+
top: calc(25% - 30px);
133133
}
134134
}
135135
}
@@ -177,8 +177,8 @@
177177
margin: calc(var(--space) / 2);
178178
}
179179

180-
.switcher > * > :nth-last-child(n+4),
181-
.switcher > * > :nth-last-child(n+4) ~ * {
180+
.switcher > * > :nth-last-child(n+5),
181+
.switcher > * > :nth-last-child(n+5) ~ * {
182182
flex-basis: 100%;
183183
}
184184

src/index.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ headerCallToActionText: Create
33
createSection:
44
title: Let's check out Weavly!
55
cards:
6+
- title: Customize Weavly
7+
link: https://youtu.be/eAG2VnmCotc
8+
image: /assets/media/customizing-weavly.png
69
- link: https://youtu.be/zg-TmHyBx0E
7-
title: How to create a program in Weavly
10+
title: Create a program
811
image: /assets/media/creating-a-program-in-weavly.png
9-
- title: How to customize Weavly
10-
link: https://youtu.be/eAG2VnmCotc
12+
- title: Customize backgrounds
13+
link: https://www.youtube.com/watch?v=3c5YW8N_Gdg
1114
image: /assets/media/customizing-weavly.png
12-
- title: How to share a program
15+
- title: Share a program
1316
link: https://youtu.be/VZyaot1YL9U
1417
image: /assets/media/sharing-programs.png
1518
learnSection:

0 commit comments

Comments
 (0)