Add landing page for kjol, documentation
This commit is contained in:
@@ -155,7 +155,7 @@ const (
|
||||
|
||||
// Tailwind classes, verbatim from the TSX.
|
||||
const (
|
||||
tutorialPopoverClass = "fixed z-200 bg-white rounded-default shadow-lg border border-neutral-200 max-w-sm"
|
||||
tutorialPopoverClass = "fixed z-200 bg-surface rounded-default shadow-lg border border-line max-w-sm"
|
||||
tutorialSpotlightClass = "fixed z-150 pointer-events-none rounded-default"
|
||||
tutorialCatcherClass = "fixed inset-0 -z-10 cursor-pointer"
|
||||
tutorialBackdropClass = "fixed inset-0 bg-black/50 z-150"
|
||||
@@ -701,23 +701,23 @@ func (t *Tutorial) content(step *TutorialStep, idx, total int) *vdom.VNode {
|
||||
// Header: optional title + "X of N", and a close button.
|
||||
headerLeft := []vdom.Mod{vdom.Attr("class", "flex items-center gap-2")}
|
||||
if step != nil && step.Title != "" {
|
||||
headerLeft = append(headerLeft, vdom.Span(vdom.Attr("class", "font-medium text-neutral-900"),
|
||||
headerLeft = append(headerLeft, vdom.Span(vdom.Attr("class", "font-medium text-ink"),
|
||||
vdom.Text(step.Title)))
|
||||
}
|
||||
headerLeft = append(headerLeft, vdom.Span(vdom.Attr("class", "text-xs text-neutral-500"),
|
||||
headerLeft = append(headerLeft, vdom.Span(vdom.Attr("class", "text-xs text-ink-muted"),
|
||||
vdom.Text(strconv.Itoa(idx+1)+" of "+strconv.Itoa(total))))
|
||||
|
||||
header := vdom.Div(vdom.Attr("class", "flex items-center justify-between p-4 pb-2"),
|
||||
vdom.Div(headerLeft...),
|
||||
vdom.Button(vdom.Attr("type", "button"),
|
||||
vdom.Attr("class", "cursor-pointer text-neutral-400 bg-transparent border-0 p-0 leading-none transition-colors hover:text-neutral-600"),
|
||||
vdom.Attr("class", "cursor-pointer text-ink-faint bg-transparent border-0 p-0 leading-none transition-colors hover:text-ink-soft"),
|
||||
vdom.On(vdom.EVENT_CLICK, t.End),
|
||||
Icon("xmark", 18, ""),
|
||||
),
|
||||
)
|
||||
|
||||
// Body.
|
||||
bodyMods := []vdom.Mod{vdom.Attr("class", "px-4 pb-4 text-sm text-neutral-700")}
|
||||
bodyMods := []vdom.Mod{vdom.Attr("class", "px-4 pb-4 text-sm text-ink-soft")}
|
||||
if step != nil && step.Content != nil {
|
||||
if c := step.Content(); c != nil {
|
||||
bodyMods = append(bodyMods, c)
|
||||
@@ -749,7 +749,7 @@ func (t *Tutorial) content(step *TutorialStep, idx, total int) *vdom.VNode {
|
||||
if total > 1 {
|
||||
dotMods := []vdom.Mod{vdom.Attr("class", "flex justify-center gap-1.5 pb-3")}
|
||||
for i := 0; i < total; i++ {
|
||||
state := "bg-neutral-300"
|
||||
state := "bg-surface-strong"
|
||||
if i == idx {
|
||||
state = "bg-sky-600 scale-110"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user