Skip to content

Commit bfc85e8

Browse files
authored
Initial commit
0 parents  commit bfc85e8

31 files changed

+2947
-0
lines changed

.github/workflows/static.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
# Upload entire repository
40+
path: "./public/"
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/*

.lesson/assets/acdc.jpg

81.7 KB
Loading

.lesson/assets/inout.png

308 KB
Loading

.lesson/assets/logo.png

6.25 KB
Loading

.lesson/assets/scrabble.jpg

302 KB
Loading

.lesson/part2.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Getting Started
2+
3+
This project is designed to make it easy to see three different things:
4+
5+
1. The photo of the design you chose (upload it here)
6+
1. Your pixel-for-pixel imitation (in imitation.html/imitation.css)
7+
1. Your responsive adaptation (in responsive.html / responsive.css)
8+
9+
_You should not have to modify the code in index.html or style.css or in script.js _
10+
11+
Your first steps are:
12+
13+
1. Pick a layout. Your layout needs to be the right level of complexity -- I recommend picking 2 or 3 alternatives and asking your teacher for help choosing before committing. Your layout should be a print design done by a professional (i.e. a published magazing layout, advertisement or product box)
14+
1. Upload an image of your layout (cell phone picture of print layout or image download)
15+
1. Rename the uploaded file something easy to type
16+
1. Modify the `<img src="original.jpg">` tag so the src= points to _your_ image. Then confirm
17+
the "Original" tab works when you click "Run"
18+
19+
Your second steps are:
20+
21+
1. Set the _size_ of your layout in `imitation.css` so that you have a rectangle that is the
22+
correct dimensions for your layout. Measure the original so you get this correct.
23+
1. Copy all the text from your layout into elements in `imitation.html`. If you have long paragraphs, you can use Lorem Ipsum as needed to fill in, but make sure any major text items are actually typed out correctly.
24+
1. Recreate the spatial layout correctly modifying `imitation.html` and `imitation.css` as needed to get the items positioned correctly.
25+
1. Use screenshots or image search to find images that you can use that will be equivalents to the images in your original ad. You can edit the images from the original if possible, or use google images searches to find something similar, or take pictures of your own to use as substitutes.
26+
27+
Your final step is to continue modifying CSS, paying attention to fonts, colors, images, and layout.

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"github.copilot",
6+
"ms-vsliveshare.vsliveshare"
7+
]
8+
}

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Start Live Server",
6+
"type": "node-terminal",
7+
"request": "launch",
8+
"command": "npm run start",
9+
"cwd": "${workspaceFolder}"
10+
}
11+
]
12+
}
13+

.vscode/settings.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"editor.tabSize": 2,
3+
"editor.formatOnSave": true,
4+
"editor.formatOnPaste": true,
5+
"[html]": {
6+
"editor.defaultFormatter": "vscode.html-language-features"
7+
},
8+
"[css]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[javascript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"[markdown]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
17+
"[json]": {
18+
"editor.defaultFormatter": "esbenp.prettier-vscode"
19+
},
20+
"prettier.htmlWhitespaceSensitivity": "ignore",
21+
"files.exclude" : {
22+
"node_modules" : true,
23+
".git" : true,
24+
"*.json" : true,
25+
".gitignore" : true,
26+
".vscode" : true,
27+
".github" : true,
28+
"screenshots" : true,
29+
}
30+
}

0 commit comments

Comments
 (0)