quickshell-web/src/components/featurelist/FeatureList.astro
2024-11-08 15:58:06 -08:00

78 lines
2.6 KiB
Text

---
import { processMarkdown } from "@config/io/markdown";
let codeString = `\`\`\`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
// 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"
}
\`\`\`
`;
const codeHTML = await processMarkdown(codeString);
---
<ul class="featurelist">
<li class="featurelist-item hot-reloading left">
<section class="feature-text">
<h3 class="feature-title">See your changes in real time</h3>
<span class="feature-subtitle">
Quickshell loads changes as soon as they're saved, letting you iterate as fast as you can type.
</span>
</section>
<section class="feature-showcase">
<video class="feature-video" style="height: 21rem" preload="metadata" controls={false} autoplay loop>
<source src="/assets/simple-shell-livereload.mp4" type="video/mp4"/>
</video>
</section>
</li>
<li class="featurelist-item qml right">
<section class="feature-text">
<h3 class="feature-title">Easy to use language</h3>
<span class="feature-subtitle">
Quickshell is configured in QML, a simple language designed for creating flexible user interfaces.
It also has LSP support.
</span>
</section>
<section class="feature-showcase" id="qml-showcase">
<Fragment set:html={codeHTML}/>
</section>
</li>
<li class="featurelist-item cloud-li left">
<section class="feature-text">
<h3 class="feature-title">Extensive integrations</h3>
<span class="feature-subtitle">
Quickshell comes with a large set of integrations, with new ones arriving all the time.
</span>
</section>
<section class="feature-showcase cloud">
<section class="feature-cloud">
<span class="cloud-item wayland">
<div><img src="/assets/logos/wayland.svg"/></div>
</span>
<span class="cloud-item hyprland">
<div><img src="/assets/logos/hyprland.svg"/></div>
</span>
<span class="cloud-item pipewire">
<div><img src="/assets/logos/pipewire.svg"/></div>
</span>
<span class="cloud-item x-org">
<div><img src="/assets/logos/xorg.svg"/></div>
</span>
<span class="cloud-item sway">
<div><img src="/assets/logos/sway.svg"/></div>
</span>
</section>
</section>
</li>
</ul>