πŸ“¦ jonasholbech / courses-a2023

β˜… 0 stars β‘‚ 0 forks πŸ‘ 0 watching
πŸ“₯ Clone https://github.com/jonasholbech/courses-a2023.git
HTTPS git clone https://github.com/jonasholbech/courses-a2023.git
SSH git clone git@github.com:jonasholbech/courses-a2023.git
CLI gh repo clone jonasholbech/courses-a2023
Jonas Holbech Jonas Holbech 11.use-client 5fd4a2f 2 years ago πŸ“ History
πŸ“‚ main View all commits β†’
πŸ“ public
πŸ“ src
πŸ“„ .gitignore
πŸ“„ .npmrc
πŸ“„ .stackblitzrc
πŸ“„ astro.config.mjs
πŸ“„ deploy.js
πŸ“„ package.json
πŸ“„ README.md
πŸ“„ scanFolders.js
πŸ“„ test.js
πŸ“„ TODO.md
πŸ“„ tsconfig.json
πŸ“„ README.md

TODO

  • skal tests uploades?
  • Tests skal
  • pupeteer til at uploade til fronter? nok virkelig skidt ide
  • men nΓ₯r vi skifter til sharepoint kan det gΓΈres gennem onedrive?
  • Gauge component laves (og bruges) der er lavet scafolding)
  • timer comp skal laves responsive
  • plugins: chalkboard, reveal menu
  • configurations file til paths
  • spotlight component? https://codepen.io/xdesro/pen/955b1eecf8c811a36a0f75509a23f90a
  • deploy script localurl lΓ¦ses i stedet for at sΓ¦ttes
  • custom slide components opdatΓ©r dokumentation

Custom Slide Components

<SlideControls />

TODO:

<Code ...props>

//TODO, re-document

propdefaultdescription
codenullThe code to syntax highlight
startFrom1The first linenumber to show
lineNumbers""Highlight specific line, see Reveal docs
stretchfalseStretch code view, for large snippets
language"js"code language, not tested
pathnullTODO:

<Explainer ...props>

propdefaultdescription
data[]an array containing data for the nested SVG elements

<Explainer> children

<TextEl ...props>

propsdefaultdescription
xnullx coordinate
ynully coordinate
textnulltext
classes""classes to append to the element (like "fragment")
Passed to data as an object:

{
    type:"text",
    x:200,
    y:200,
    text: "'ere we go",
    classes: "fragment"
}

<ArrowEl ...props>

propsdefaultdescription
dnullSVG path string, like "M170,50 L180,80"
classes""classes to append to the element (like "fragment")
Passed to data as an object:

{
    type:"arrow",
    d:"M170,50 L180,80",
    classes: "fragment"
}

<RectEl ...props>

propsdefaultdescription
xnullx coordinate
ynully coordinate
widthnullwidth
heightnullheight
pathLength1custom pathLength
animation""custom class to append once shown as a fragment
classes""classes to append to the element (like "fragment")
Passed to data as an object:

{
    type:"rect",
    x:200,
    y:200,
    width: 100,
    height:100,
    pathLength: 1,
    classes: "fragment",
    animation: "letsAnimateFast"
}

<Timer ...props>

//TODO: re-document

  • time: 300
  • width: 300
  • height: 400
  • TODO: on the actual project add minus 1, send width and height in url to make responsive iframes easier?
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

All commands are run from the root of the project, from a terminal:

CommandAction
npm installInstalls dependencies
npm run devStarts local dev server at localhost:3000
npm run buildBuild your production site to ./dist/
npm run previewPreview your build locally, before deploying

πŸ‘€ Want to learn more?

Feel free to check our documentation or jump into our Discord server.