Difference between revisions of "Text And Code: Alice's Adventures in Computerland"

From Publication Station
Tag: Reverted
 
(91 intermediate revisions by the same user not shown)
Line 7: Line 7:
[[File:Text-and-code-alice-underground.png|Screenshot website Alice's Adventures in the Undergound]]
[[File:Text-and-code-alice-underground.png|Screenshot website Alice's Adventures in the Undergound]]


= Program =
== Program ==
 
=== Class 1 ===
== Class 1 ==
 
'''Demos'''
'''Demos'''
# HTML/CSS/JavaScript
# HTML/CSS
# WebScraper, CSV and JSON
# CSS grid
# CSS grid


'''Setup'''
'''Setup'''


During the first class we work in groups of 3.  
During the classes we will work in groups of 3.  


We will work in Visual Studio Code. [https://code.visualstudio.com/ Download] and install Visual Studio Code.
We will work in Visual Studio Code. [[Visual_Studio_Code|Download and install Visual Studio Code]].


To help you out with this project we have created some starter files.
To help you out with this project we have created some starter files.
# Go to the [https://gitlab.com/wdk-academy/text-and-code/ files]
# Go to the [https://gitlab.com/wdk-academy/text-and-code/ files]
# Click "Clone"
# Click the arrow pointing downwards <br/> [[File:Gitlab-download-button.png]]
# Select "Visual Studio Code (SSH)"
# Select "zip"
# This will open the files in Visual Studio Code
# This will download the files
# Select a folder to place the files in
# Unzip the files  
# Open the folder in Visual Studio Code


'''Tasks'''
'''Tasks'''
Line 33: Line 31:
1. Use the [https://www.webscraper.io/ WebScraper.io] extension to scrape [https://www.gutenberg.org/files/11/11-h/11-h.htm Alice in Wonderland] or any other book you like.  
1. Use the [https://www.webscraper.io/ WebScraper.io] extension to scrape [https://www.gutenberg.org/files/11/11-h/11-h.htm Alice in Wonderland] or any other book you like.  
* Follow [[Web_scraping|instructions]] on web scraping
* Follow [[Web_scraping|instructions]] on web scraping
* Transform `CSV` to `JSON` with [https://csvjson.com/csv2json CSV2JSON]
* Place the JSON into your web project


2. Add a CSS grid
2. Add a CSS grid
* Add CSS grid and create a layout
* Read the introduction on [[CSS_Grid]] and apply to your own website
* Play [https://cssgridgarden.com CSS Grid Garden]


3. Creating and adding images
3. Creating and adding images
* Create images with [https://huggingface.co/spaces/dalle-mini/dalle-mini Dall-E Mini]
* Create images with [https://www.craiyon.com/ Dall-E Mini]
* Add images via the `JSON` files
* Add images via the `JSON` files


=== Class 2 ===
=== Class 2 ===


Demos:
This class you will practice the art of reading documentation by adding fonts, filters and animations.
Next to this we practice reading and stealing code by adding filters (and a search) to your project.
 
# Add highlight functionality AND/OR a search
## Check out the example code in the /final folder
## Add highlight buttons AND/OR search field to your own project
## Create a nice looking menu with CSS Grid
# Make the grid responsive
## Check out the example code in the /final folder
## Change the CSS grid so that it is responsive
# Loading of fonts
# Loading of fonts
## [https://fonts.google.com Using Google Fonts]
## Pick some nice [https://fonts.google.com Google Fonts]
## [http://fontmap.ideo.com/ FontMap]
## You can also use [http://fontmap.ideo.com/ FontMap] to explore Google fonts
# CSS filters and animations
## Read [https://www.freecodecamp.org/news/how-to-use-google-fonts-in-your-next-web-design-project-e1ad48f1adfa/ this documentation] on implementation
# Adding content filters with JavaScript
## Add the fonts to your project
# Adding a search
# '''Bonus:''' CSS filters and animations
## Read the [https://developer.mozilla.org/en-US/docs/Web/CSS/filter filters documentation]
## Read the [https://developer.mozilla.org/en-US/docs/Web/CSS/animation animation documentation]
## Add an animation to your own project


=== Class 3 ===
=== Class 3 ===


Demos:
'''Duration'''
# Analyzing text
2 hours
# Adding an index
 
'''Demos'''
# Steal code options with [https://www.gutenberg.org/files/28885/28885-h/28885-h.htm Alice in Wonderland]:
## View source
## View selection source
## Save page
# Working with anchors
# Creating an index
 
'''Tasks'''
# Copy the source of your own book
## Find your book on Gutenberg
## Check [[Stealing_A_Website|Stealing a Website]] and find the source
## Place the source via [[Visual_Studio_Code|Visual Studio Code in an index.html]] file.
# Separate the CSS from between the <style> tags in a CSS file, see [https://www.freecodecamp.org/news/how-to-link-css-to-html/ How to link CSS to HTML]
# Create your own index with anchors, see [[Hyperlink#Linking_withing_a_page|Linking within a page]]
 
'''Extra'''
 
# Add images (Search for: "How to add image HTML")
# Add fonts and style your document
## Pick some nice [https://fonts.google.com Google Fonts]
## You can also use [http://fontmap.ideo.com/ FontMap] to explore Google fonts
## Read [https://www.freecodecamp.org/news/how-to-use-google-fonts-in-your-next-web-design-project-e1ad48f1adfa/ this documentation] on implementation
## Add the fonts to your project
# Apply CSS grid
## Read the introduction on [[CSS_Grid]] and apply to your own website
# '''Bonus:''' Create an index with Javascript


=== Class 4 ===
=== Class 4 ===


...
'''Duration'''
2 hours
 
'''Videos'''
 
Videos for the double scroll and positioning paragraphs are available [https://hrnl-my.sharepoint.com/:f:/g/personal/kranv_hr_nl/EkXfK-yko7NCiJMk_H-FmLcBSomuBHpXAYTktS9u3ekkcg?e=xDp72c here]
 
'''Demos'''
# Making a double scroll page with anchors
# Position paragraphs with float left and position absolute
# Modify classes on elements after user events
 
'''Tasks'''
# Follow along coding sessions
 
'''Extra'''
 
# Add images (Search for: "How to add image HTML")
# Add fonts and style your document
## Pick some nice [https://fonts.google.com Google Fonts]
## You can also use [http://fontmap.ideo.com/ FontMap] to explore Google fonts
## Read [https://www.freecodecamp.org/news/how-to-use-google-fonts-in-your-next-web-design-project-e1ad48f1adfa/ this documentation] on implementation
## Add the fonts to your project


=== Class 5 ===
=== Class 5 ===


...
For this class we will use [https://www.linkedin.com/learning/ LinkedIn Learning]. You can login to [https://www.linkedin.com/learning/ LinkedIn Learning] with your school account.
 
'''Tasks'''
# Not sure what an SVG is? Watch the video [https://www.linkedin.com/learning/learning-svg/what-is-svg?autoplay=true&resume=false&u=57693369 What is SVG?]
# Try drawing one SVG '''with two shapes''' using only code by watching some of the videos in [https://www.linkedin.com/learning/learning-svg/svg-shapes-overview?autoplay=true&resume=false&u=57693369 3. Creating SVGs in code]
# Open the SVG you made with Joseph in the browser and use the inspector to inspect and modify the SVG. Watch [https://www.linkedin.com/learning/learning-svg/svg-as-code?autoplay=true&resume=false&u=57693369 SVG as code].
# Add your SVG to an HTML file in Visual Studio Code, see [https://www.linkedin.com/learning/learning-svg/add-svg-to-a-web-document?autoplay=true&resume=false&u=57693369 Add SVG to a web document].
# Animate your SVG with CSS, see video [https://www.linkedin.com/learning/css-animation-14153685/animating-svg-with-css?autoplay=true&u=57693369 Animating SVG with CSS]. You might first want to understand CSS animations by watching [https://www.linkedin.com/learning/css-animation-14153685/css-keyframe-animation-fundamentals?autoplay=true&resume=false&u=57693369 2. Understanding CSS animations].
 
''Online tools are available as well to make SVG animations. Try out for example Vivus Instant''
# Make your own animated SVGs with [https://maxwellito.github.io/vivus-instant/ Vivus Instant]. For more advanced usage, check the [https://maxwellito.github.io/vivus/ Vivus] JavaScript library.
# Add the animated SVGs made with Vivus to your project
 
'''Extra'''
 
# [https://www.linkedin.com/learning/svg-clipping-masking-and-filters/clipping-masking-and-filtering-svg?autoplay=true&u=57693369 Clipping and masking with SVGs]


== Tools overview ==
== Tools overview ==

Latest revision as of 09:54, 4 October 2022

Welcome to the course Text and Code.

In this series of classes from the Publication Station we will use code to load and layout large bodies of text on the web. The visitor of your online publication will be given the option to display the text in several ways.

We will also make the publication interactive, allowing the user to find, filter and highlight the text. As a final touch we work on creating animated SVG’s exported from Illustrator.

Screenshot website Alice's Adventures in the Undergound

Program

Class 1

Demos

  1. HTML/CSS
  2. CSS grid

Setup

During the classes we will work in groups of 3.

We will work in Visual Studio Code. Download and install Visual Studio Code.

To help you out with this project we have created some starter files.

  1. Go to the files
  2. Click the arrow pointing downwards
    Gitlab-download-button.png
  3. Select "zip"
  4. This will download the files
  5. Unzip the files
  6. Open the folder in Visual Studio Code

Tasks

1. Use the WebScraper.io extension to scrape Alice in Wonderland or any other book you like.

  • Follow instructions on web scraping
  • Place the JSON into your web project

2. Add a CSS grid

  • Read the introduction on CSS_Grid and apply to your own website

3. Creating and adding images

  • Create images with Dall-E Mini
  • Add images via the `JSON` files

Class 2

This class you will practice the art of reading documentation by adding fonts, filters and animations. Next to this we practice reading and stealing code by adding filters (and a search) to your project.

  1. Add highlight functionality AND/OR a search
    1. Check out the example code in the /final folder
    2. Add highlight buttons AND/OR search field to your own project
    3. Create a nice looking menu with CSS Grid
  2. Make the grid responsive
    1. Check out the example code in the /final folder
    2. Change the CSS grid so that it is responsive
  3. Loading of fonts
    1. Pick some nice Google Fonts
    2. You can also use FontMap to explore Google fonts
    3. Read this documentation on implementation
    4. Add the fonts to your project
  4. Bonus: CSS filters and animations
    1. Read the filters documentation
    2. Read the animation documentation
    3. Add an animation to your own project

Class 3

Duration 2 hours

Demos

  1. Steal code options with Alice in Wonderland:
    1. View source
    2. View selection source
    3. Save page
  2. Working with anchors
  3. Creating an index

Tasks

  1. Copy the source of your own book
    1. Find your book on Gutenberg
    2. Check Stealing a Website and find the source
    3. Place the source via Visual Studio Code in an index.html file.
  2. Separate the CSS from between the <style> tags in a CSS file, see How to link CSS to HTML
  3. Create your own index with anchors, see Linking within a page

Extra

  1. Add images (Search for: "How to add image HTML")
  2. Add fonts and style your document
    1. Pick some nice Google Fonts
    2. You can also use FontMap to explore Google fonts
    3. Read this documentation on implementation
    4. Add the fonts to your project
  3. Apply CSS grid
    1. Read the introduction on CSS_Grid and apply to your own website
  4. Bonus: Create an index with Javascript

Class 4

Duration 2 hours

Videos

Videos for the double scroll and positioning paragraphs are available here

Demos

  1. Making a double scroll page with anchors
  2. Position paragraphs with float left and position absolute
  3. Modify classes on elements after user events

Tasks

  1. Follow along coding sessions

Extra

  1. Add images (Search for: "How to add image HTML")
  2. Add fonts and style your document
    1. Pick some nice Google Fonts
    2. You can also use FontMap to explore Google fonts
    3. Read this documentation on implementation
    4. Add the fonts to your project

Class 5

For this class we will use LinkedIn Learning. You can login to LinkedIn Learning with your school account.

Tasks

  1. Not sure what an SVG is? Watch the video What is SVG?
  2. Try drawing one SVG with two shapes using only code by watching some of the videos in 3. Creating SVGs in code
  3. Open the SVG you made with Joseph in the browser and use the inspector to inspect and modify the SVG. Watch SVG as code.
  4. Add your SVG to an HTML file in Visual Studio Code, see Add SVG to a web document.
  5. Animate your SVG with CSS, see video Animating SVG with CSS. You might first want to understand CSS animations by watching 2. Understanding CSS animations.

Online tools are available as well to make SVG animations. Try out for example Vivus Instant

  1. Make your own animated SVGs with Vivus Instant. For more advanced usage, check the Vivus JavaScript library.
  2. Add the animated SVGs made with Vivus to your project

Extra

  1. Clipping and masking with SVGs

Tools overview

Explore

Used during classes