|
4 | 4 | * Author's Repo: https://github.com/jonasschmedtmann/html-css-course
|
5 | 5 | * Flexbox and CSS Grid: https://github.com/nuthanc/angular_advanced_fast/blob/main/flexbox_css_grid/README.md
|
6 | 6 | * Author's Instruction in **author.md**
|
| 7 | +* **Check the Pdf** as it has all the notes |
7 | 8 |
|
8 | 9 | ### Resources
|
9 | 10 |
|
|
420 | 421 | * grid-template-columns: 150px 300px 200px 1fr;
|
421 | 422 | * For last column to take up all available empty space
|
422 | 423 | * 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 |
424 | 425 | * repeat keyword to repeat the unit n number of times
|
425 | 426 | * Explicit rows and Implicit rows
|
426 | 427 | * Explicit because we explicitly specify the size for them in grid-template-rows
|
|
470 | 471 | * It's very easy for having a 2D layout with Grid
|
471 | 472 | * Wherever 1D layout is used, continue using Flex
|
472 | 473 | * 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 |
0 commit comments