From f236f870050652ad1f6cd13b98b1559ae563b4bf Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Sat, 21 Dec 2024 20:25:46 -0300 Subject: [PATCH] fix links and website meta --- src/playground.gleam | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/playground.gleam b/src/playground.gleam index 8a8a941..c8e4f1e 100644 --- a/src/playground.gleam +++ b/src/playground.gleam @@ -15,13 +15,19 @@ import snag // Meta bits -const meta_title = "The Gleam Playground" +// const meta_title = "The Gleam Playground" -const meta_description = "A playground for the Gleam programming language. Write, run, and share Gleam code in your browser." +// const meta_description = "A playground for the Gleam programming language. Write, run, and share Gleam code in your browser." const meta_image = "https://gleam.run/images/og-image.png" -const meta_url = "https://play.gleam.run" +// const meta_url = "https://play.gleam.run" + +const meta_title = "The Glistix Playground" + +const meta_description = "A playground for the Glistix compiler. Write and compile Gleam code to Nix in your browser." + +const meta_url = "https://glistix.github.io/playground" // Paths @@ -287,16 +293,16 @@ fn file_error( // Shared stylesheets paths -const css__gleam_common = "/common.css" +const css__gleam_common = "common.css" /// Loads fonts and defines font sizes -const css_fonts = "/css/fonts.css" +const css_fonts = "css/fonts.css" /// Derives app colors for both dark & light themes from common.css variables -const css_theme = "/css/theme.css" +const css_theme = "css/theme.css" /// Defines layout unit variables -const css_layout = "/css/layout.css" +const css_layout = "css/layout.css" /// Sensitive defaults for any page const css_defaults_page = [css_fonts, css_theme, css__gleam_common, css_layout] @@ -304,20 +310,20 @@ const css_defaults_page = [css_fonts, css_theme, css__gleam_common, css_layout] // Page stylesheet paths /// Common stylesheet for all playground pages -const css_root = "/css/root.css" +const css_root = "css/root.css" // Path to the css speciic to to lesson & main pages -const css_playground_page = "/css/pages/playground.css" +const css_playground_page = "css/pages/playground.css" // Defines code syntax highlighting for highlightJS & CodeFlash // based on dark / light mode and the currenly loaded color scheme -const css_syntax_highlight = "/css/code/syntax-highlight.css" +const css_syntax_highlight = "css/code/syntax-highlight.css" // Color schemes // TODO: add more color schemes /// Atom One Dark & Atom One Light colors -const css_scheme_atom_one = "/css/code/color-schemes/atom-one.css" +const css_scheme_atom_one = "css/code/color-schemes/atom-one.css" /// Sensitive defaults for any page needing to display Gleam code /// To be used alonside defaults_page @@ -359,11 +365,11 @@ fn home_page() -> Html { // Links html_link("shortcut icon", "https://gleam.run/images/lucy/lucy.svg"), // Scripts - html_script( - "https://plausible.io/js/script.js", - ScriptOptions(defer: True, module: False), - [#("data-domain", "playground.gleam.run")], - ), + // html_script( + // "https://plausible.io/js/script.js", + // ScriptOptions(defer: True, module: False), + // [#("data-domain", "playground.gleam.run")], + // ), // Stylesheets ..{ list.flatten([ @@ -380,7 +386,7 @@ fn home_page() -> Html { h("script", [#("type", "gleam"), #("id", "code")], [ htmb.dangerous_unescaped_fragment(string_builder.from_string(hello_joe)), ]), - html_script("/index.js", ScriptOptions(module: True, defer: False), []), + html_script("index.js", ScriptOptions(module: True, defer: False), []), ] let body_content = [