From 4546105f2148d9bb6639420fd96c3e9beb50de0e Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 8 Nov 2024 23:36:03 -0800 Subject: [PATCH] fix frontpage feature card scaling --- src/components/featurelist/FeatureList.astro | 46 ++++++++++++--- src/styles/components/featurelist.css | 61 +++++++++++++------- src/styles/components/marquee.css | 2 +- src/styles/main-page.css | 2 +- 4 files changed, 82 insertions(+), 29 deletions(-) diff --git a/src/components/featurelist/FeatureList.astro b/src/components/featurelist/FeatureList.astro index 916b538..e2cd58d 100644 --- a/src/components/featurelist/FeatureList.astro +++ b/src/components/featurelist/FeatureList.astro @@ -1,12 +1,14 @@ --- import { processMarkdown } from "@config/io/markdown"; -let codeString = `\`\`\`qml +const codeDesktop = await processMarkdown(`\`\`\`qml // a standard desktop window FloatingWindow { Timer { - id: timer // give the timer a name to refer to it by - property bool invert: false // our custom property + // assign an id to the object, which can be + // used to reference it + id: timer + property bool invert: false // a custom property // change the value of invert every half second running: true; repeat: true @@ -17,10 +19,35 @@ FloatingWindow { // change the window's color when timer.invert changes color: timer.invert ? "purple" : "green" } -\`\`\` -`; +\`\`\``); -const codeHTML = await processMarkdown(codeString); +const codeMobile = await processMarkdown(`\`\`\`qml +// a standard desktop window +FloatingWindow { + Timer { + // assign an id to the + // object, which can be + // used to reference it + id: timer + // a custom property + property bool invert: false + + // change the value of invert + // every half second + running: true; repeat: true + interval: 500 // ms + onTriggered: { + timer.invert = !timer.invert + } + } + + // change the window's color + // when timer.invert changes + color: timer.invert + ? "purple" + : "green" +} +\`\`\``); ---