-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.md.txt
233 lines (220 loc) · 9.92 KB
/
readme.md.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
for for html and css tutorial, watch https://www.youtube.com/watch?v=mU6anWqZJcc&t=5963
for route 53 domain name, (a bit tricky) setup https://www.youtube.com/watch?v=jS6rrOO04y8
when searching for your new website, http, not https
aws is hosting it. route 53 to register domain name. cloudfront, a cdn, to make data transfer faster.
aws s3 is the webhosting service for static websites, meaning not requiring a server.
in order to use naked domain andrewsblackjack.com, have to create a new bucket with that name. aws is soooo glitchy. first it woudnt connect if
i used naked domain, then i created a record to redirect to www.andrewsblackjack.com, still didnt work. then i created a bucket, then it worked. then i
deleted the bucket and it still worked. then i deleted the record, and it still worked. there's definitely a delay, but i dont know which part.
aws sucks. hostgator could easily allow naked domains.
now i repeated it and it doesnt work. i think it really needs a new bucket, then in route 53, alias to another record www.andrewsblackjack.com or to the bucket.
pipeline there's a delay sometimes.
can run react app marioplan lesson 30 on s3. watch this https://www.youtube.com/watch?v=BZcSUInHBfc or
https://www.youtube.com/watch?v=mls8tiiI3uc. had to cmd npm run build to make the buiild folder,
then upload that folder to s3 bucket. although i dont think connecting to firebase is possible. index document still index.html
cant run npm run build on musician app because it doesnt have script build in package.json.
use aws amplify next time, a little more complex. didnt use ec2, which is a virtual machine.
able to run marioplan lesson 3. after committing then pushing to github from vs code, it automatically updates amplify. no need to setup pipeline.
watch this https://www.youtube.com/watch?v=uFHKSvBJOjk. this is the way to go, not elastic beanstalk.
uploading react and manually creating ec2 instance is more involved. https://www.youtube.com/watch?v=FanoTGjkxhQ. clicking open after putty didnt work the first time, but second time
worked.in putty, in order to copy paste curl thing, shift + insert. managed to run his sample log in app because he had webpack.config.js. needed to copy paste public dns instead of
clicking open address button. couldnt run marioplan because instructions were too specific to his app. he uses nginx.
uploading react and manually creating ec2 instance, this video https://www.youtube.com/watch?v=OCau7X--EXU works, got help from
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html on how to install node and npm on ubuntu ec2 instance.
got help from https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html?icmpid=docs_ec2_console on how to access the ec2 instance via putty, but can actually connect
via ec2 with connect. has to be exactly http://ec2-54-254-233-150.ap-southeast-1.compute.amazonaws.com:8000/. simply clicking open wont work.
key is to npm run build to create client folder which is the front end. then upload to github. not nginx server.
another method to manually create ec2 and uploading react is with https://www.youtube.com/watch?v=ehITvx8VPFI. control + k is to delete line in ubuntu terminal.
this method works and involves nginx server.
aws lightsail is lighter version of ec2.
aws elastic beanstalk is an orchestration tool to create an ec2 instance. couldnt get marioplan react-scripts to run because beanstalk doesnt know npm start, maybe because
i skipped the build step in the pipeline.no one on youtube uses elastic beanstalk to deploy react apps.
but got musicianapp to run, change package.json script to "start": "node app.js", instead of nodemon app.js. i dont even know if musicianapp is react. probably not.
have to install express. npm install --global express on local computer.
flex box has an axis of direction. by default it's row, or x-axis direction.
align-items is the alignment of the items crosswise of the axis of direction, left right or middle perpendicular to the axis of direction.
align-items is default stretch.
jusitfy-content is by default flex-start
justify-content is the alignment of the items parallel to the axis of direction, start or end.
flex-wrap default is nowrap meaning it fits in one line. wrap moves content to next line if doesnt fit.
flex property is 3 properties in one, flex-grow, flex-shrink, flex-basis
flex-basis is how many pixels default
flex-grow 1 means it will stretch 1x fast if there's extra space. 0 is default value.
flex-shrink 1 means it will shrink 1x fast if container too small. 1 is default.
not the most organized css or html
position: static is the default
relative you need to change left right top bottom, changes relative to default
absolute, changes relative to the nearest ancestor that has position relative
fixed is fixed no matter if you scroll, need top bottom
z-index only works with position relative or absolute
selectors
div > h1 selects h1s that are directly inside a div
#something::before puts content before element with id something
.apple::first-letter styles the first letter
gradient
:hover
:root is the parent of all parent elements
transform: skews, rotates,
scales bigger or smaller in x or y direction
translates moves in x and y direction etc
transition: change property over time
animation: change over time with points
media query looks at display size
last rule and calculated priority
variables
pexel has stock images
font awesome has icons
google fonts has fonts
box and text shadow generators
gradient generators
can i use .com checks if you can use a property in a browser
browser prefixes
autoprefixer generates css for all browsers
(0:00) Intro
(2:47) What is HTML
(5:11) Google Chrome and Visual Studio Code
(6:02) Download Google Chrome
(8:11) Download Visual Studio Code
(13:58) Create A Project
(16:09) First Webpage
(20:35) Visual Code Settings
(22:48) Download Live Server Extension
(26:59) Basic HTML Document Structure
(29:05) Implementing Basic Document Structure
(34:50) Word Wrap and Emmet
(40:24) Heading Elements
(44:33) Paragraph Elements
(47:50) White Space Collapsing
(49:22) Lorem Ipsum Dummy Text
(51:17) Images
(57:15) Multiple Path Options
(1:00:06) External Images
(1:02:43) Nice Images
(1:05:49) Width and Height Attribute
(1:08:40) Crop Images
(1:12:07) Proper Path
(01:15:37) Comments And Line Breaks
(01:19:47) External Links
(01:23:32) Internal Links
(01:25:53) Links Within Page
(01:30:10) Empty Links
(01:32:39) Sup And Sub Elements
(01:34:39) Strong And Em Elements
(01:37:02) Special Characters In Html
(01:38:58) Unordered Lists
(01:41:25) Ordered Lists
(01:42:18) Nested Lists
(01:43:57) Table Element
(01:46:10) Forms - Input And Submit Elements
(01:58:12) Forms - Textarea - Radio - Checkbox
(02:09:40) Prettier And Code Formatter
(02:14:56) Keyboard Shortcuts
(02:26:06) External Resources - Head Element
(02:30:15) Html Project Intro
(02:32:16) Project Setup
(02:35:17) Download Images
(02:39:02) Logo, Heading, Navigation
(02:42:51) Home Page Completed
(02:54:30) About Page
(02:58:09) Numbers Page
(03:04:14) Contact Page
(03:09:11) Resource Files
(03:09:42) Text Editor Setup
(03:16:03) Css Intro
(03:17:35) Workspace Setup
(03:20:22) Inline Css
(03:23:40) Course Resources
(03:25:01) Internal Css
(03:28:00) External Css
(03:39:40) Power Struggle
(03:44:17) Basic Css Syntax
(03:52:27) Element Selectors
(03:55:15) Grouping Selectors
(03:57:27) Id Selectors
(04:02:09) Class Selectors
(04:06:17) Id And Class Selector Summary
(04:08:30) Div And Span Elements
(04:16:44) CSS Inheritance
(04:20:08) More Info On Inheritance
(04:22:30) Last Rule, Specificity, Universal Selector
(04:27:33) Colors Intro
(04:28:13) Color And Background-Color Properties
(04:32:33) Color Names
(04:33:30) Rgb
(04:37:46) Rgba
(04:44:33) Hex
(04:50:58) Vs-Code Color Options
(04:52:57) External Resources
(04:55:39) Units Intro
(04:56:18) Pixels, Font-Size, Width, Height
(05:02:13) Percent Values
(05:05:44) Em Values
(05:11:42) Rem Values
(05:14:41) VH And VW
(05:19:14) Default Browser Syles
(05:29:07) Calc Function
(05:33:38) Typography Intro
(05:34:07) Font-Family
(05:36:47) Font-Stack Generic Fonts
(05:39:23) Google Fonts
(05:46:00) Font-Weight Font-Style
(05:53:30) Text-Align And Text-Indent
(05:56:52) More Text Properties
(06:04:31) Box-Model Intro
(06:04:53) Padding
(06:13:28) Margin
(06:19:01) Border
(06:23:57) Border-Radius, Negative Margin
(06:27:24) Outline Property
(06:34:58) Display Property Intro
(06:35:19) Display Property
(06:43:26) Basic Horizontal Centering
(06:48:11) Mobile Navbar Example
(06:58:29) Box-Sizing Border-Box
(07:06:46) Display Inline-Block
(07:09:29) Display:none, Opacity, Visibility
(07:16:20) Background-Image Intro
(07:16:43) Background Images Setup
(07:19:43) Background-Image-Property
(07:27:45) Background-Repeat
(07:34:07) Background-Size
(07:36:58) Background-Position
(07:41:18) Background-Attachment
(07:47:04) Linear-Gradients
(07:56:49) Background Image Shortcuts Combined
(08:06:56) Linear-Gradient Colorzilla
(08:11:08) Float Position Intro
(08:11:47) Float Property
(08:19:18) Float Property Column Layout Example
(08:25:59) Position Static
(08:30:44) Position Relative
(08:33:18) Position Absolute
(08:38:42) Position Fixed
(08:42:30) Media Quries
(08:57:07) Z-Index
(09:06:04) ::Before And ::After Pseudo Elements
(09:27:14) Css Selectors Intro
(09:28:26) Basic Selectors
(09:31:07) Descendant Child Selectors
(09:35:50) First Line And First Letter
(09:36:56) :Hover Pseudo-Class Selector
(09:40:03) Link Pseudo-Class Selectors
(09:44:36) Root Preudo-Class Selectors
(09:51:01) Transform,Transition,And Animations
(09:52:17) Transform:transition()
(09:58:52) Transform:scale()
(10:01:20) Transform:rotate()
(10:04:47) Transform:skew()
(10:06:31) Transition Property
(10:09:13) Multiple Transition
(10:11:11) Transition Delay
(10:16:36) Transition-Timing Function
(10:25:51) Animation
(10:35:51) Animation-Fill-Mode
(10:40:53) Last Module Intro
(10:41:32) Css Variables
(10:56:19) Font-Awesome Icons
(11:07:55) Text-Shadow Box-Shadow
(11:14:44) Browser Prefixes
(11:19:23) Semantic Tags
(11:24:11) Emmet Workflow