Skip to content

Commit b6fdd6b

Browse files
committed
Update
1 parent ecd4602 commit b6fdd6b

File tree

4 files changed

+371
-4
lines changed

4 files changed

+371
-4
lines changed

README.md

Lines changed: 126 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author's Repo: https://github.com/jonasschmedtmann/html-css-course
55
* Flexbox and CSS Grid: https://github.com/nuthanc/angular_advanced_fast/blob/main/flexbox_css_grid/README.md
66
* Author's Instruction in **author.md**
7+
* **Check the Pdf** as it has all the notes
78

89
### Resources
910

@@ -420,7 +421,7 @@
420421
* grid-template-columns: 150px 300px 200px 1fr;
421422
* For last column to take up all available empty space
422423
* Similar to setting flex: 1
423-
* auto keyword to take size to fill exactly its content
424+
* **auto** keyword to take size to fill exactly its content
424425
* repeat keyword to repeat the unit n number of times
425426
* Explicit rows and Implicit rows
426427
* Explicit because we explicitly specify the size for them in grid-template-rows
@@ -470,4 +471,127 @@
470471
* It's very easy for having a 2D layout with Grid
471472
* Wherever 1D layout is used, continue using Flex
472473
* Use grid with 3 columns, 1 of 250px since img is that width and use 1fr for the other 2 columns
473-
* For h2 and button, grid-column: 1 / -1;
474+
* For h2 and button, grid-column: 1 / -1;
475+
476+
## Web Design Rules and Framework
477+
478+
### Project Overview
479+
480+
* Check starter/05-Design folder
481+
* html is already coded, we'll work on the css
482+
483+
### Overview of Web Design and Website Personalities
484+
485+
* Web Designers create the overall look and feel of a website
486+
* Web Developers implement the design using HTML, CSS and Javascript code
487+
* Check Good Design vs Bad Design in the pdf
488+
* Web Design Ingredients
489+
* Typography: Formatting and Designing text
490+
* Colors
491+
* Images/Illustrations
492+
* Icons
493+
* Shadows
494+
* Border Radius
495+
* Whitespace
496+
* Visual Hierarchy
497+
* User Experience
498+
* Components/Layout
499+
500+
#### Website Personalities Overview(Check pdf for more)
501+
502+
* Serious/Elegant
503+
* Minimalist/Simple
504+
* Plain/Neutral
505+
* Bold/Confident
506+
* Calm/Peaceful
507+
* Startup/Upbeat
508+
* Playful/Fun
509+
510+
### Typography
511+
512+
* Making text beautiful and easy to read
513+
* Serif: Tails at the end of each letter(Check pdf)
514+
* Sans-serif: No decorative lines and is Plain
515+
* Use only good and popular typefaces
516+
* Sans-Serif: Inter, Open Sans, Roboto, Montserrat, Work Sans, Lato
517+
* Serif: Merriweather, Aleo, Playfair Display, Cormorant, Cardo, Lora
518+
* It's okay to use just one typeface per page! If you want more, limit to 2 typefaces
519+
* Choose the right typeface according to your website personality
520+
* Regualar Font Weight of 400
521+
522+
### Check the rest of the Design Guidelines from PDF
523+
524+
### Implementing Typography
525+
526+
* Chair website: We want a Modern look, so we'll use sans-serif
527+
* So checkout fonts.google.com and check for Inter
528+
* Link that in the html head
529+
* Do it before our own CSS file
530+
* Set font-family on the body to Inter
531+
* Can be used with or without quotes, but it is a good practice to use Quotes
532+
* https://typescale.com/
533+
* Take the font-sizes mentioned in style.css(Font Size System)
534+
* Computed tab gives all the styles applied for that element
535+
* Arrow keys up and down to increase or reduce by 1,and option key up and down to increase or reduce by .1
536+
* Establish the hierarchy between different headings with font-size
537+
* Have all normal text the same font-size and line-height
538+
539+
### Colors
540+
541+
* Choose the Right Color
542+
* Check the pdf with the above title
543+
* Establish a color system
544+
* Colors and Typography
545+
546+
547+
548+
## Components and Layout Patterns
549+
550+
### Web Design Rules #10 - Part 1: Elements and Components
551+
552+
* (Search for these titles in pdf)
553+
* Final Design: From Elements to Webpage
554+
* Common Elements like Text, Buttons, Images, Input Elements and Tags
555+
* Group the Elements in a Component
556+
* Layout
557+
* Webpage
558+
* Check pdf for Components and other index
559+
* Breadcrumbs
560+
* Pagination
561+
* Alert and Status Bars
562+
* Statistics
563+
* Gallery
564+
* Feature Box
565+
* Preview and Profile Cards
566+
* Accordion
567+
* Tabs
568+
* Carousel
569+
* Customer Testimonials
570+
* Customer Logos
571+
* Featured-In Logos
572+
* Steps
573+
* Forms
574+
* Tables
575+
* Pricing Tables
576+
* Modal Windows
577+
578+
### Building an Accordion Component
579+
580+
* Use 06-Components folder
581+
* Use Inter font(copy from 05-Design index.html)
582+
* Icons from heroicons.com
583+
* Colors from https://yeun.github.io/open-color/
584+
* Stroke for color for icons
585+
* box-shadow
586+
* 1st - Horizontal offset
587+
* 2nd - Vertical offset
588+
* 3rd - Blur
589+
* 4th - Spread Radius(Can be Skipped)
590+
* 5th - Color
591+
* For having space between each of the Accordion Items
592+
* Instead of giving margin-bottom to all items and finally removing it from the last item
593+
* We could have display of flex to the accordiion container and then use gap property
594+
* Nice trick for opening only the 2nd item's hidden box
595+
* Use another class like open along with the item class
596+
* Then in selectors Use open class and descendant selector hidden-box
597+
* This will apply only for the 2nd item now

starter/05-Design/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
7+
<link rel="preconnect" href="https://fonts.googleapis.com" />
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
11+
rel="stylesheet"
12+
/>
813
<link rel="stylesheet" href="style.css" />
914
<title>Lisbon Chair Shop</title>
1015
</head>

starter/05-Design/style.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FONT SIZE SYSTEM (px)
1616
/* GENERAL STYLES */
1717
/* ------------------------ */
1818
body {
19-
font-family: sans-serif;
19+
font-family: 'Inter', sans-serif;
2020
}
2121

2222
.container {
@@ -31,6 +31,9 @@ section {
3131

3232
h2 {
3333
margin-bottom: 48px;
34+
font-size: 36px;
35+
letter-spacing: -0.5px;
36+
/* 24 / 30 / 36 */
3437
}
3538

3639
.grid-3-cols {
@@ -57,10 +60,17 @@ header {
5760

5861
h1 {
5962
margin-bottom: 24px;
63+
font-size: 44px;
64+
line-height: 1.1;
65+
letter-spacing: -1px;
66+
/* 44 / 52 / 62 */
6067
}
6168

6269
.header-text {
6370
margin-bottom: 24px;
71+
font-size: 18px;
72+
line-height: 1.7;
73+
/* 18 / 20 */
6474
}
6575

6676
img {
@@ -73,9 +83,13 @@ img {
7383

7484
.features-title {
7585
margin-bottom: 16px;
86+
font-size: 20px;
87+
/* 16 / 18 / 20 */
7688
}
7789

7890
.features-text {
91+
font-size: 18px;
92+
line-height: 1.7;
7993
}
8094

8195
/* TESTIMONIAL */
@@ -89,11 +103,15 @@ img {
89103

90104
.testimonial-box h2 {
91105
margin-bottom: 24px;
106+
font-size: 24px;
107+
/* 20 / 24 / 30 */
92108
}
93109

94110
.testimonial-text {
95111
font-style: italic;
96112
margin-bottom: 24px;
113+
font-size: 18px;
114+
line-height: 1.7;
97115
}
98116

99117
/* CHAIRS */
@@ -103,6 +121,7 @@ img {
103121

104122
h3 {
105123
margin-bottom: 24px;
124+
font-size: 20px;
106125
}
107126

108127
.chair-details {
@@ -127,8 +146,11 @@ h3 {
127146
.chair-price {
128147
display: flex;
129148
justify-content: space-between;
149+
font-size: 20px;
130150
}
131151

132152
footer {
133153
margin-bottom: 48px;
154+
font-size: 14px;
155+
/* 12 14 16 */
134156
}

0 commit comments

Comments
 (0)