File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed
Sources/AdaEngineWebsite/Pages Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,9 @@ html {
282282 border-color : var (--donate );
283283 text-decoration : none;
284284 color : var (--text-color );
285+ font-weight : 400 ;
286+ font-family : "Primary" , sans-serif;
287+ font-size : 1.4em ;
285288}
286289
287290.header-buttons p {
@@ -293,6 +296,12 @@ html {
293296 border-color : var (--fill-gray );
294297}
295298
299+ .header-buttons-github {
300+ font-weight : 400 ;
301+ font-family : "Primary" , sans-serif;
302+ font-size : 1.2em ;
303+ }
304+
296305.carousel-container {
297306 width : 100% ;
298307 height : 100% ;
@@ -395,6 +404,15 @@ pre code .highlight {
395404/* Small screen */
396405
397406@media (max-width : 803px ) {
407+
408+ .header-buttons-github {
409+ font-size : 1.2rem ;
410+ }
411+
412+ .header-buttons {
413+ font-size : 1.2rem ;
414+ }
415+
398416 .ae-header-title {
399417 font-size : 2.5rem ;
400418 }
Original file line number Diff line number Diff line change @@ -127,10 +127,13 @@ struct MainPage: StaticPage {
127127
128128 @HTMLBuilder
129129 var body : some HTML {
130- VStack ( alignment : . center , spacing : 100 ) {
130+ Div {
131131 header ( )
132+ . padding ( . bottom, 100 )
132133 carousel ( )
134+ . padding ( . bottom, 100 )
133135 latestNews ( )
136+ . padding ( . bottom, 100 )
134137 features ( )
135138 }
136139
@@ -161,8 +164,7 @@ extension MainPage {
161164
162165 HStack ( spacing: 30 ) {
163166 Link ( target: . learn) {
164- Text ( " Get Started " )
165- . font ( . primary( size: . em( 1.4 ) ) )
167+ " Get Started "
166168 }
167169 . class ( " header-buttons " )
168170
@@ -174,7 +176,7 @@ extension MainPage {
174176 Span ( " ... stars on GitHub " )
175177 . id ( " main-page-callout-stars-count " )
176178 }
177- . font ( . primary ( size : . em ( 1.2 ) ) )
179+ . class ( " header-buttons-github " )
178180 }
179181 . padding ( . top, 20 )
180182 }
@@ -205,6 +207,8 @@ extension MainPage {
205207 } else {
206208 Text ( " Latest News " )
207209 . font ( . primary( size: . rem( 3 ) ) )
210+ . horizontalAlignment ( . center)
211+ . padding ( . bottom, 100 )
208212
209213 Div {
210214 Grid ( alignment: . topLeading, spacing: 10 ) {
@@ -224,6 +228,8 @@ extension MainPage {
224228 fileprivate func features( ) -> some HTML {
225229 Text ( " Features " )
226230 . font ( . primary( size: . rem( 3 ) ) )
231+ . horizontalAlignment ( . center)
232+ . padding ( . bottom, 100 )
227233
228234 Div {
229235 ForEach ( items. enumerated ( ) ) { index, item in
You can’t perform that action at this time.
0 commit comments