Skip to content

Commit a8576da

Browse files
feat: make LiveEditor and Exporter web apps more prominent
- Homepage hero: two tiles under the course URL field that open the LiveEditor ("Write a new course") and the Exporter web app ("Export for your LMS"), configured via banner.tools in _index.md. - Navbar: add the Exporter web app as a top-level item next to the LiveEditor (own identifier, since "More" already has an "Exporter"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1eecb4d commit a8576da

4 files changed

Lines changed: 137 additions & 6 deletions

File tree

‎assets/css/custom.css‎

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,92 @@
3838
U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
3939
U+2C60-2C7F, U+A720-A7FF;
4040
}
41+
42+
/* Homepage hero: tool entry points (LiveEditor, Exporter) under the URL field.
43+
Flex with margins instead of gap, so old browsers (see legacy.css) get it too. */
44+
.hero-tools {
45+
max-width: 560px;
46+
margin: 2rem auto;
47+
}
48+
.hero-tools-label {
49+
display: flex;
50+
align-items: center;
51+
margin: 0 0 1rem;
52+
font-size: 0.9rem;
53+
color: #717171;
54+
}
55+
.hero-tools-label::before,
56+
.hero-tools-label::after {
57+
content: "";
58+
flex: 1;
59+
height: 1px;
60+
background: #eaeaea;
61+
}
62+
.hero-tools-label span {
63+
padding: 0 0.75rem;
64+
}
65+
.hero-tools-list {
66+
display: flex;
67+
flex-wrap: wrap;
68+
margin: -6px;
69+
}
70+
.hero-tool {
71+
flex: 1 1 240px;
72+
display: flex;
73+
align-items: flex-start;
74+
margin: 6px;
75+
padding: 16px;
76+
border: 1px solid #eaeaea;
77+
border-radius: 12px;
78+
background: #fff;
79+
color: #444;
80+
text-align: left;
81+
text-decoration: none;
82+
transition:
83+
border-color 0.15s,
84+
box-shadow 0.15s;
85+
}
86+
.hero-tool:hover,
87+
.hero-tool:focus-visible {
88+
border-color: #2b7a78;
89+
box-shadow: 0 6px 20px rgba(4, 4, 4, 0.08);
90+
}
91+
.hero-tool-icon {
92+
flex: none;
93+
width: 40px;
94+
height: 40px;
95+
margin-right: 12px;
96+
border-radius: 10px;
97+
background: #2b7a78;
98+
color: #fff;
99+
display: flex;
100+
align-items: center;
101+
justify-content: center;
102+
}
103+
.hero-tool-text {
104+
display: flex;
105+
flex-direction: column;
106+
line-height: 1.4;
107+
}
108+
.hero-tool-text strong {
109+
color: #040404;
110+
font-weight: 600;
111+
}
112+
.hero-tool-text span {
113+
font-size: 0.9rem;
114+
}
115+
.dark .hero-tools-label {
116+
color: #b4afb6;
117+
}
118+
.dark .hero-tools-label::before,
119+
.dark .hero-tools-label::after {
120+
background: #3e3e3e;
121+
}
122+
.dark .hero-tool {
123+
background: #222;
124+
border-color: #3e3e3e;
125+
color: #b4afb6;
126+
}
127+
.dark .hero-tool-text strong {
128+
color: #fff;
129+
}

‎config/_default/menus.en.toml‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,33 @@ weight = 2
1212

1313
[[main]]
1414
name = "LiveEditor"
15-
url = "https://liascript.github.io/LiveEditor"
15+
url = "https://liascript.github.io/LiveEditor/"
1616
weight = 3
1717

18+
[[main]]
19+
name = "Exporter"
20+
identifier = "exporter-web-app"
21+
url = "https://liascript.github.io/LiaScript-Exporter/"
22+
weight = 4
23+
1824
[[main]]
1925
name = "Blog"
2026
pageRef = "blog"
21-
weight = 4
27+
weight = 5
2228

2329
[[main]]
2430
name = "About"
2531
pageRef = "about"
26-
weight = 5
32+
weight = 6
2733

2834
[[main]]
2935
name = "Services"
3036
pageRef = "pages/services"
31-
weight = 6
37+
weight = 7
3238

3339
[[main]]
3440
name = "Community"
35-
weight = 7
41+
weight = 8
3642

3743
[[main]]
3844
parent = "Community"
@@ -47,7 +53,7 @@ pageRef = "pages/community-graph"
4753
weight = 2
4854

4955
[[main]]
50-
weight = 8
56+
weight = 9
5157
name = "More"
5258

5359
[[main]]

‎content/english/_index.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ banner:
1818
<i class="fa fa-arrow-right pl-2"></i>
1919
</button>
2020
image: "/images/main.png"
21+
tools_label: "or start right in your browser"
22+
tools:
23+
- title: "Write a new course"
24+
content: "in the LiveEditor, with live preview"
25+
icon: "fa fa-pen"
26+
link: "https://liascript.github.io/LiveEditor/"
27+
- title: "Export for your LMS"
28+
content: "SCORM, xAPI, PDF, ePub with the Exporter"
29+
icon: "fa fa-box"
30+
link: "https://liascript.github.io/LiaScript-Exporter/"
2131

2232
# Demo Video Section
2333
demo_video:

‎layouts/index.html‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,32 @@ <h1 class="mb-4 text-h3 lg:text-h1">
1111
<p class="mb-8">
1212
{{ .content | markdownify }}
1313
</p>
14+
{{ $label := .tools_label }}
15+
{{ with .tools }}
16+
<div class="hero-tools">
17+
{{ with $label }}
18+
<p class="hero-tools-label"><span>{{ . }}</span></p>
19+
{{ end }}
20+
<div class="hero-tools-list">
21+
{{ range . }}
22+
<a
23+
class="hero-tool"
24+
href="{{ .link | absURL }}"
25+
{{ if strings.HasPrefix .link `http` }}
26+
target="_blank" rel="noopener"
27+
{{ end }}>
28+
<span class="hero-tool-icon" aria-hidden="true"
29+
><i class="{{ .icon }}"></i
30+
></span>
31+
<span class="hero-tool-text">
32+
<strong>{{ .title }}</strong>
33+
<span>{{ .content }}</span>
34+
</span>
35+
</a>
36+
{{ end }}
37+
</div>
38+
</div>
39+
{{ end }}
1440
</div>
1541
<div class="col-12">
1642
{{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "mx-auto lg:!max-w-[800px]" "DisplayXL" "800x" ) }}

0 commit comments

Comments
 (0)