import type { Dialog } from "@/lib/tinyvn";
import { getRelativeLocaleUrl } from "astro:i18n";

const distroQuizDialogs: Dialog[] = [
    {
        title: "Let's pick a Linux distribution.",
        content:
            "Linux has many flavors, each with its own weakness and strength. Do you want to learn about the choices?",
        choices: [
            {
                text: "Give me the choices!",
                action: "jump",
                data: 1,
            },
            {
                text: "Just recommend me one",
                action: "jump",
                data: 3,
            },
        ],
    }, // 0
    {
        title: "In the sea of distributions",
        content: `These are 3 of the biggest distributions, each with their strength and weaknesses.`,
        choices: [
            {
                action: "jump",
                data: 2,
                text: `<h2 class="text-2xl">
                            <img src="/logos/debian-openlogo-nd.svg" alt="Debian logo" class="inline-block size-10" />
                            Debian
                        </h2>
                        <p>
                            Maximum stability.
                        </p>`,
            },
            {
                action: "jump",
                data: 3,
                text: `<img src="/logos/fedora_default-horizontal_cropped.svg" alt="Fedora Linux logo" class="h-10" />
                        <p>
                            Balancing stability and up-to-date software.
                        </p>`,
            },
            {
                action: "jump",
                data: 4,
                text: `<div id="archLogo"></div>
                        <p>
                            Bleeding edge software.
                        </p>`,
            },
        ],
    }, // 1
    {
        title: "Debian",
        content: "",
        choices: [
            {
                text: "Download",
                action: "link",
                data: "https://www.debian.org/",
            },
        ],
    }, // 2
    {
        title: "Fedora Linux",
        content: "It is a Linux distribution which balances between stability and having up-to-date software.",
        choices: [
            {
                text: "Continue",
                action: "link",
                data: getRelativeLocaleUrl("en", "fedora/0"),
            },
        ],
    }, // 3
    {
        title: "Arch Linux",
        content: "",
        choices: [
            {
                text: "Continue",
                action: "link",
                data: "https://archlinux.org/",
            },
        ],
    }, // 4
];

export default distroQuizDialogs;
