A slide roulette app: one random topic and 3 (or more) random slides (with just an image) to test your improvising skills!
https://github.com/user-attachments/assets/1f5ebb68-74ec-496f-8157-2bc0210c239a
...just open a PR! 🙃 I'll be happy to review it and merge it if it's good!
First time contributing to an open source project? See First Contributions repo and How to make your first Open Source contribution.
See Slide Roulette Project for more details about next steps (WIP).
src/topics folder, called as the language code (e.g. en.ts for English)// src/topics/en.ts export default { languageCode: "en", languageName: "English", conjunction: "and", one: ["shadows", "trees"], two: ["with a strange shape of clowns", "created to scare people"] }
and for English, e for Italian, etc.)one array (e.g shadows, trees, etc.)two arrayone arrayone array and compose them with the conjunctiontwo arraysrc/topics/en.ts in the src/utils/topics.ts file and add a switch case for that specific file// src/utils/topics.ts import en from "../topics/en"; // <- IMPORT FILE switch (lang) { // ... case "en": // <- ADD A SWITCH CASE topics = en; break; // ... }
src/config.ts file inside the languages.list array in order to show it in the language selector dropdown menu.// src/config.ts const config = { //... languages: { list: [ // ADD A NEW LANGUAGE HERE {code: "en", name: "English"}, ], }, // ... }
Error: [PLUGIN_ERROR]: Invalid module "@qwik-city-plan" is not a valid package name imported from /Users/daniel/Projects/github/slide-roulette/node_modules/@builder.io/qwik-city/index.qwik.mjs
dependencies to devDependenciesJust add a &customTopic=My custom topic at the end of the URL created after clicking "Setup done".