Skip to content

Commit d4524a0

Browse files
authored
Refresh of index page (#327)
* Update intro/mission statement * Change style of landing intro Responsife font size (inspired with Bootstrap) Make font size larger Have centered one column design * Use static hero image, put old images on features section * Update hero image * Remove caption, autoplay on viewport on intro carousel * Add smooth scroll on landing page * Update showcase images, make hero size smaller
1 parent c866885 commit d4524a0

10 files changed

Lines changed: 185 additions & 179 deletions

File tree

assets/assets/css/landing.scss

Lines changed: 77 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,92 @@
11
@import "variables";
22

3-
#intro {
4-
// background: linear-gradient(to right bottom,#f7f5fb 50%,#fff 50%);
3+
#intro-carousel {
54

6-
// background-color: $scratch-orange;
7-
// color: white;
5+
.carousel-item-wrapper {
6+
> * {
7+
max-height: 100%;
8+
max-width: 100%;
9+
box-shadow: 0px 0px 1rem 0px rgba(0,0,0,0.5);
10+
}
11+
}
812

9-
min-height: calc(100vh - var(--navbar-height));
13+
.carousel-caption {
14+
background-color: black;
15+
box-shadow: 0px 0px 5px black;
16+
border-radius: 0.25rem;
17+
opacity: 0;
18+
transition: opacity .15s linear
19+
}
1020

11-
.splide {
21+
&:hover .carousel-caption {
22+
opacity: 0.9;
23+
}
1224

13-
.carousel-item-wrapper {
14-
> * {
15-
max-height: 100%;
16-
max-width: 100%;
17-
box-shadow: 0px 0px 1rem 0px rgba(0,0,0,0.5);
18-
}
19-
}
25+
.splide__arrow {
26+
margin-left: 1rem;
27+
margin-right: 1rem;
28+
}
2029

21-
.carousel-caption {
22-
background-color: black;
23-
box-shadow: 0px 0px 5px black;
24-
border-radius: 0.25rem;
25-
opacity: 0;
26-
transition: opacity .15s linear
27-
}
30+
.splide__pagination__page {
31+
background-color: var(--content-cnt);
32+
}
2833

29-
&:hover .carousel-caption {
30-
opacity: 0.9;
31-
}
34+
}
3235

33-
.splide__arrow {
34-
margin-left: 1rem;
35-
margin-right: 1rem;
36-
}
36+
#intro-info {
37+
display: flex;
38+
flex-direction: column;
39+
justify-content: center;
3740

38-
}
39-
40-
#intro-info {
41-
display: flex;
42-
flex-direction: column;
43-
justify-content: center;
41+
h1 {
42+
font-weight: 600;
43+
line-height: 1.2;
44+
font-size: calc(2rem + 2.42vw);
4445

46+
@media (min-width: $bs-breakpoint-lg) {
47+
font-size: 3.5rem;
48+
}
4549
}
4650

47-
#install-intro {
48-
49-
&:not(:focus) {
50-
box-shadow: 0 0 0.5rem 0 rgba(0,0,0,0.75);
51+
.lead {
52+
font-weight: 300;
53+
font-size: calc(1rem + 0.8vw);
54+
55+
@media (min-width: $bs-breakpoint-lg) {
56+
font-size: 1.6rem;
5157
}
52-
53-
p {
54-
margin-bottom: 0;
58+
}
59+
}
5560

56-
&:nth-of-type(1) {
57-
font-size: 1.5rem
58-
}
59-
&:nth-of-type(2) {
60-
font-size: 0.75rem
61-
}
61+
#install-intro {
62+
63+
&:not(:focus) {
64+
box-shadow: 0 0 0.5rem 0 rgba(0,0,0,0.75);
65+
}
66+
67+
p {
68+
margin-bottom: 0;
6269

70+
&:nth-of-type(1) {
71+
font-size: 1.5rem
72+
}
73+
&:nth-of-type(2) {
74+
font-size: 0.75rem
6375
}
6476

6577
}
6678

67-
#read-more {
68-
background-color: transparent;
69-
color: var(--intro-heading-cnt);
70-
border-color: transparent !important;
71-
box-shadow: none !important;
79+
}
7280

73-
:hover {
74-
color: #e2e6ea;
75-
}
81+
#read-more {
82+
background-color: transparent;
83+
color: var(--intro-heading-cnt);
84+
border-color: transparent !important;
85+
box-shadow: none !important;
86+
87+
:hover {
88+
color: #e2e6ea;
7689
}
77-
7890
}
7991

8092
#divider-1, #divider-2, #divider-3 {
@@ -163,14 +175,6 @@
163175

164176
}
165177

166-
main {
167-
// padding-top: 0;
168-
169-
section {
170-
// margin-bottom: 2.5rem
171-
}
172-
}
173-
174178
h2 {
175179
margin-bottom: 1rem
176180
}
@@ -223,7 +227,12 @@ h2 {
223227
opacity: 1;
224228
transform: none;
225229
}
226-
}
230+
}
231+
}
232+
233+
.splide__arrow {
234+
background: white;
235+
transition: opacity .15s linear
227236
}
228237

229238
}
@@ -277,3 +286,7 @@ body.dark.extension-styled {
277286
}
278287

279288
}
289+
290+
html {
291+
scroll-behavior: smooth;
292+
}

content/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Scratch Addons is a browser extension that provides new features and themes for the Scratch (scratch.mit.edu) website and project editor. It has a mission to collect, archive, and put into use userstyles and userscripts, developed by several members of the Scratch community.
2+
description: Scratch Addons combines new and existing features and themes for the Scratch website and project editor into one easy-to-access and configurable browser extension.
33
ignore_i18n: content
44

55
# The contents of this file has been moved to layouts/_default/home.html. This file is left for description translation.

i18n/en.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ PlayerModal:
9797
IndexPage:
9898
Intro:
9999
Tagline: All-in-one browser extension for Scratch
100-
Description: Scratch Addons is a browser extension that provides new features and themes for the Scratch website and project editor. It has a mission to collect, archive, and put into use userstyles and userscripts, developed by several members of the Scratch community.
100+
Description: Scratch Addons combines new and existing features and themes for the Scratch website and project editor into one easy-to-access and configurable browser extension.
101101
InstallButton:
102102
Loading: Loading...
103103
Description: free, open source
@@ -107,13 +107,10 @@ IndexPage:
107107
Caption: The trailer.
108108
Popup:
109109
Caption: The extension pop-up.
110-
ImgAlt: Extension pop-up
111110
Settings:
112111
Caption: The settings page.
113-
ImgAlt: Settings page
114112
Demo:
115113
Caption: Demonstration of the extension. ({{.Count}})
116-
ImgAlt: Demonstration ({{.Count}})
117114
Features:
118115
Heading: Features
119116
AddonsHeading: Addons

0 commit comments

Comments
 (0)