Skip to content

Commit de3b6a8

Browse files
committed
Add frontender draft.
1 parent d610f4f commit de3b6a8

File tree

11 files changed

+163
-1
lines changed

11 files changed

+163
-1
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ Thumbs.db
1414
/target/
1515
node_modules/
1616
package-lock.json
17+
/dist/
18+
**/dist/**
19+
/.cache/
20+
**/.cache/**

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ before_install:
3232
- pip install --user --upgrade httpie
3333
jobs:
3434
include:
35+
- stage: test
36+
name: frontender
37+
env:
38+
global:
39+
- MY_PROJECT_NAME=frontender
40+
before_script:
41+
- cd $TRAVIS_BUILD_DIR/$MY_PROJECT_NAME && npm i
42+
- cd $TRAVIS_BUILD_DIR/$MY_PROJECT_NAME && npm start
43+
- wait_for 1234
44+
script:
45+
- http :1234
46+
- http :1234/part1/index.html
47+
after_script: cd $TRAVIS_BUILD_DIR/$MY_PROJECT_NAME && npm stop
3548
- stage: test
3649
name: json-server-forever
3750
before_script:

README.adoc

+25-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,31 @@
44

55
Read link:https://daggerok.github.io/css-examples[project reference documentation]
66

7-
others:
7+
_"must have" topics_
8+
9+
- css selectors
10+
- css properties
11+
- css values
12+
- css units: `css-property: valu e{unit}`
13+
. absolute: mm, cm, px, in, pt, pc
14+
. relative: %, em, rm, vw, vh, vmin, vmax
15+
- css multiple selectors
16+
- css functions:
17+
. rgba: `background-color: rgba(0,0,0,0.4)`
18+
. calc: `margin: calc(2em * 5em)`
19+
. ...
20+
- css animations
21+
. animation
22+
. keyframes
23+
. `transitions` between 2 css values
24+
- css media queries
25+
. `@media only screen and (min-width: 650px) { /* scoped css rules... */ }`
26+
- css selectors weight
27+
. by element selector == 1
28+
. by class name selector == 100
29+
. by id selector == 1000
30+
31+
_other repositories_
832

933
- link:https://github.com/daggerok/tachyons-example[GitHub: daggerok/tachyons-example]
1034
- link:https://github.com/daggerok/css-grid-layout-example[GitHub: daggerok/css-grid-layout-example]

docs/index.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ include::../css-grid-display/README.adoc[]
4141

4242
== Links
4343

44+
- link:https://www.youtube.com/watch?v=8gNrZ4lAnAw&list=PL0lNJEnwfVVN2weA7ogzp6GlJvQlXnrSj&index=3[YouTube: The 2019 Frontend Developer Crash Course - HTML & CSS Tutorial for Beginners]
4445
- link:https://browsersync.io/docs/command-line[Browsersync Command Line Usage]
4546
ifdef::backend-html5[- link:./index.pdf[Documentation in PFD format]]
4647
- link:{github-url}[GitHub repo]

frontender/README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# learn css
2+
3+
```bash
4+
npm i
5+
npm run dev
6+
```
7+
8+
open http://127.0.0.1:1234/
9+
10+
## `must have` topics
11+
12+
* css selectors
13+
* css properties
14+
* css values
15+
* css units: `css-property: valu e{unit}`
16+
* absolute: mm, cm, px, in, pt, pc
17+
* relative: %, em, rm, vw, vh, vmin, vmax
18+
* css multiple selectors
19+
* css functions:
20+
* rgba: `background-color: rgba(0,0,0,0.4)`
21+
* calc: `margin: calc(2em * 5em)`
22+
* ...
23+
* css animations
24+
* animation
25+
* keyframes
26+
* `transitions` between 2 css values
27+
* css media queries
28+
* `@media only screen and (min-width: 650px) { /* scoped css rules... */ }`
29+
* css selectors weight
30+
* by element selector == 1
31+
* by class name selector == 100
32+
* by id selector == 1000
33+
34+
## resources
35+
36+
* [YouTube: The 2019 Frontend Developer Crash Course - HTML & CSS Tutorial for Beginners](https://www.youtube.com/watch?v=8gNrZ4lAnAw&list=PL0lNJEnwfVVN2weA7ogzp6GlJvQlXnrSj&index=3)

frontender/package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "frontender",
3+
"version": "1.0.0",
4+
"description": "see: https://www.youtube.com/watch?v=8gNrZ4lAnAw&list=PL0lNJEnwfVVN2weA7ogzp6GlJvQlXnrSj&index=3",
5+
"main": "src/index.html",
6+
"scripts": {
7+
"build": "parcel build src/index.html",
8+
"dev": "parcel serve src/index.html",
9+
"start": "forever start --minUptime 1000 --spinSleepTime 1000 ./node_modules/.bin/parcel serve src/index.html",
10+
"stop": "forever stopall --killTree",
11+
"test": "npm run stop"
12+
},
13+
"keywords": [
14+
"css",
15+
"parcel",
16+
"parcel-bundler"
17+
],
18+
"author": "daggerok",
19+
"license": "ISC",
20+
"devDependencies": {
21+
"forever": "1.0.0",
22+
"parcel-bundler": "1.12.4"
23+
}
24+
}

frontender/src/favicon.ico

1.12 KB
Binary file not shown.

frontender/src/index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport"
6+
content="width=device-width, initial-scale=1.0">
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<title>Frontender</title>
9+
<link rel="stylesheet" href="./style.css">
10+
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
11+
</head>
12+
<body>
13+
<ul>
14+
<li><a href="./template/index.html">template</a></li>
15+
</ul>
16+
</body>
17+
</html>

frontender/src/style.css

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
body,
2+
ul {
3+
list-style: none;
4+
margin: 0;
5+
padding: 0;
6+
}
7+
8+
li {
9+
border: 3px solid grey;
10+
background-color: grey;
11+
text-align: center;
12+
}
13+
14+
li:hover {
15+
border: 3px solid white;
16+
background-color: white;
17+
}
18+
19+
a {
20+
text-decoration: none;
21+
display: inline-block;
22+
min-width: 100%;
23+
color: white;
24+
}
25+
26+
a:hover {
27+
color: grey;
28+
}

frontender/src/template/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport"
6+
content="width=device-width, initial-scale=1.0">
7+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<title>Template</title>
9+
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
10+
<link rel="stylesheet" href="./style.css">
11+
</head>
12+
<body>
13+
<p>Baseline template</p>
14+
</body>
15+
</html>

frontender/src/template/style.css

Whitespace-only changes.

0 commit comments

Comments
 (0)