Some quarto note
ctrl+shift+B runs the website

Viewer panel

Tools > Global options > R Markdown >show output preview in:: > Viewer Pane.

Then click the apply and okay.

Then go to the Viewer panel you could see the website there

How to use google font

https://fonts.google.com/

Go to the website >select the font>get font >get embedd the code. Then change to @import and copy paste the line BETWEEN the <style> </style>

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

In your scss file you copy paste. Note that 2 type of font is imported. In the font-family-sans-serif, the first one is specified as desired font and the second one is what will be used if the first font is not found.

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

How to use font awesome

The extension needs to be downloaded following inststruction
https://github.com/quarto-ext/fontawesome
https://fontawesome.com/download
This is what it looks like in fontawesome

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

This is what you write in quarto
{{< fa school >}} Education

How to use quarto QR code

https://github.com/jmbuhr/quarto-qrcode?tab=readme-ov-file
https://jmbuhr.de/quarto-qrcode/

Go into the deepest layer to adjust for things

Note: It can not be changed that the title of table of content(toc) is h2. It is hardwire in quarto. However, the h2 style of toc can be changed.

For example, to change the color of toc but not ordinary h2 title, I write in my scss file

.sidebar nav[role=doc-toc]>h2{
  color: orange;
}

Right click what you want to be changed and select inspect

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

style

colors

fontcolor - The main color for text on the site
linkcolor - Color of the links
backgroundcolor - Background color of the whole site
monobackgroundcolor - background for code chunks

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

font

mainfont - The main font for text on the site
monofont - Font for code elements

size

max-width - Width of the main text area of the pages
fontsize - Base font size for website
linestretch - Distance between lines of text

Specifying a length in CSS can be done in dozens of ways: Using pixel counts 18px or 100px. Calculated font-size of an element, 1em should remain unchanged, 2em should double

primary navigation

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

nested navigation

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

hybrid navigation

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://quarto.org/docs/websites/website-navigation.html#github-links

website:
  repo-url: https://github.com/quarto-dev/quarto-web
  repo-actions: [edit, issue]

https://quarto.org/docs/websites/website-navigation.html#page-navigation

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://quarto.org/docs/websites/website-navigation.html#breadcrumbs

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://quarto.org/docs/websites/website-navigation.html#page-footer

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

html and css

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

How we use CSS
In its simplest form, we need to define 2 things

  • selectors - What needs to be styled
  • Attributes - How it should be styled

Selectors

by tags - h1 {}
by class - .important {}
by id - #title-text {}

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

https://www.w3schools.com/cssref/css_selectors.php

https://www.w3schools.com/css/css_selectors.asp

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors

https://www.freecodecamp.org/news/css-selectors-cheat-sheet-for-beginners/

https://www.w3.org/TR/CSS21/selector.html%23id-selectors

pseudo classes

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

image

image

Attributes

The attributes are instructions on how elements should look and behave.

How things look

  • colors
  • sizes
  • border lines
  • etc

How elements are positioned to other elements

  • Layout

image

  • content - The content of the box, where text and images appear
    Size of the content is set using height and width
    Values are lengths: 10px; 2em
    or percentages: 40%; 100%
  • Padding - Clears an area around the content. The padding is transparent

image

image

  • Border - A border that goes around the padding and content

    image

  • Margin - Clears an area outside the border. The margin is transparent

    image

css grid flex

https://css-tricks.com/snippets/css/complete-guide-grid/
https://css-tricks.com/snippets/css/a-guide-to-flexbox/

absolute positioning

image

how to center in css

http://howtocenterincss.com/

SASS

variables

image

SASS nested rules

image
image

mixins

image

image

image
https://codegoda.io/

LISTING

https://github.com/rostools/coding-club/blob/main/index.qmd

https://quarto.org/docs/websites/website-listings.html

https://posit-conf-2024.github.io/quarto-websites/06-listings.html#/listings