import { component$, $, useOnWindow, useSignal } from "@builder.io/qwik"; import styles from "./next-steps.module.css"; export const GETTING_STARTED_STEPS = [ { message: "Press and hold the ALT/Option key to activate 'Click-to-Source' mode", }, { message: "Select the title of this page while keeping the ALT/Option key pressed", hint: 'Edit the title and save the changes. If your editor does not open, have a look at this page to set the correct LAUNCH_EDITOR value.', }, { message: "Update now the routeLoader$ defined in the src/routes/layout.tsx file", hint: "Instead of returning the current date, you could return any possible string.
The output is displayed in the footer.", }, { message: "Create a new Route called /me", hint: 'Create a new directory called me in src/routes. Within this directory create a index.tsx file or copy the src/routes/index.tsx file. Your new route is now accessible here ✨', }, { message: "Time to have a look at Forms", hint: 'Open the TODO list App and add some items to the list. Try the same with disabled JavaScript 🐰', }, { message: "Congratulations! You are now familiar with the basics! 🎉", hint: "If you need further info on how to use qwik, have a look at qwik.dev or join the Discord channel.", }, ]; export default component$(() => { const gettingStartedStep = useSignal(0); useOnWindow( "keydown", $((e) => { if ((e as KeyboardEvent).key === "Alt") { gettingStartedStep.value = 1; } }), ); return (

Time for a
qwik intro?

{gettingStartedStep.value + 1 < GETTING_STARTED_STEPS.length ? ( ) : ( )}
); });