Skip to content

Commit bf01ca0

Browse files
updated gradients hero section
1 parent 8df6088 commit bf01ca0

File tree

2 files changed

+40
-22
lines changed

2 files changed

+40
-22
lines changed

content/english/_index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@ banner:
1818
<i class="fa fa-arrow-right pl-2"></i>
1919
</button>
2020
image: "/images/main.png"
21-
button:
22-
enable: true
23-
label: "LiaScript Hello World"
24-
link: "https://liascript.github.io/course/?https://raw.githubusercontent.com/LiaScript/Hello-LiaScript/refs/heads/main/README.md#1"
25-
21+
2622
# Demo Video Section
2723
demo_video:
2824
enable: true
2925
title: "See LiaScript in Action"
3026
description: "A short demo showcasing how plain Markdown becomes an interactive course."
3127
video: "https://www.youtube.com/embed/rbqm6MN0We4"
28+
button:
29+
enable: true
30+
label: "LiaScript Hello World"
31+
link: "https://liascript.github.io/course/?https://raw.githubusercontent.com/LiaScript/Hello-LiaScript/refs/heads/main/README.md#1"
32+
3233

3334
# Features
3435
features:

themes/hugoplate/layouts/index.html

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,46 @@ <h1 class="mb-4 text-h3 lg:text-h1">
3434
{{ end }}
3535
<!-- /Banner -->
3636

37-
<!-- Demo Video -->
37+
<!-- Demo Video (Full Bleed) -->
3838
{{ with .Params.demo_video }}
3939
{{ if .enable }}
40-
<section class="section py-2">
41-
<div class="container">
42-
<div class="mx-auto max-w-8xl text-center">
40+
<section class="w-full py-2 px-0 mb-16">
41+
<!-- Full-width wrapper -->
42+
<div class="w-full mx-auto px-0">
43+
<!-- Optional heading -->
44+
<div class="text-center mb-10">
4345
<h2 class="h2 mb-4">
4446
{{ .title | markdownify }}
4547
</h2>
46-
<p class="text-lg mb-8 text-gray-600">
48+
<p class="text-lg text-gray-600">
4749
{{ .description | markdownify }}
4850
</p>
4951

50-
<div
51-
class="relative"
52-
style="padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px;">
53-
<iframe
54-
src="{{ .video }}"
55-
frameborder="0"
56-
allowfullscreen
57-
style="position: absolute; top:0; left:0; width:100%; height:100%; border-radius: 12px;">
58-
</iframe>
59-
</div>
52+
{{ with .button }}
53+
{{ if .enable }}
54+
<a
55+
class="btn btn-primary block w-fit mx-auto mt-6"
56+
href="{{ .link | absURL }}"
57+
{{ if strings.HasPrefix .link `http` }}
58+
target="_blank" rel="noopener"
59+
{{ end }}>
60+
{{ .label }}
61+
<i class="fa fa-arrow-right pl-2"></i>
62+
</a>
63+
{{ end }}
64+
{{ end }}
65+
</div>
66+
67+
<!-- Full-bleed responsive video -->
68+
<div
69+
class="relative w-full"
70+
style="padding-bottom: 56.25%; height: 0; overflow: hidden;">
71+
<iframe
72+
src="{{ .video }}"
73+
frameborder="0"
74+
allowfullscreen
75+
style="position:absolute; top:0; left:0; width:100%; height:100%;">
76+
</iframe>
6077
</div>
6178
</div>
6279
</section>
@@ -66,7 +83,7 @@ <h2 class="h2 mb-4">
6683

6784
<!-- Features -->
6885
{{ range $i, $e:= .Params.features }}
69-
<section class="section-sm {{ if (modBool $i 2) }}bg-gradient{{ end }}">
86+
<section class="section-sm bg-gradient">
7087
<div class="container">
7188
<div class="row items-center justify-between">
7289
<div
@@ -111,7 +128,7 @@ <h2 class="mb-4">
111128
<!-- Testimonials -->
112129
{{ with site.GetPage "sections/testimonial" }}
113130
{{ if .Params.enable }}
114-
<section class="section">
131+
<section class="section bg-gradient">
115132
<div class="container">
116133
<div class="row">
117134
<div class="md:col-10 lg:col-8 xl:col-6 mx-auto mb-12 text-center">

0 commit comments

Comments
 (0)