Skip to content

kutluhangil/goit-markup-hw-02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOIT Markup Homework #02 — Portfolio Section (HTML + CSS)

This repository contains the “Our Portfolio” section implemented with semantic HTML and clean, validated CSS. The project introduces a proper folder structure, normalized styles, Google Fonts setup, optimized images, and interactive hover/focus states that follow the style guide.

Live Demo: https://kutluhangil.github.io/goit-markup-hw-02/


📚 Table of Contents

  1. About the Project
  2. Acceptance Criteria (Mentor Checklist)
  3. Markup Requirements
  4. Design & Styling Rules
  5. Project Structure
  6. Images & Optimization
  7. Validation & Formatting
  8. How to Run

📖 About the Project

  • Implements the Our Portfolio section inside index.html.
  • All styles live in css/styles.css; a reset/normalizer (modern-normalize) is enabled.
  • Typography is provided via Google Fonts (Raleway 700; Roboto 400/500/700).
  • Images are exported from the design and optimized using Squoosh.
  • Code is formatted with Prettier and passes HTML validation.

✅ Acceptance Criteria (Mentor Checklist)

A. Project

  • A1 — An images folder exists at the project root and contains all images.
  • A2 — A css folder exists at the project root and contains a stylesheet.
  • A3 — All style rules are written in css/styles.css.
  • A4 — File names use only lowercase Latin letters, numbers, and hyphens (no spaces, uppercase, or transliteration).
  • A5 — Source code is formatted with Prettier.
  • A6 — All images and text content are correctly taken from the layout.
  • A7modern-normalize is enabled as the style normalizer.
  • A8 — Bitmap images are optimized via Squoosh.
  • A9 — Code follows the project guidelines.

B. Markup

  • B1 — The Our Portfolio section is marked up in index.html; all design elements are present.
  • B2 — HTML tags are used semantically.
  • B3 — Passes the HTML validator without errors.
  • B4 — Class names are descriptive and understandable to other developers.
  • B5 — Class names are lowercase, kebab-case, and contain no spaces, capitalization, transliteration, or tag names.
  • B6 — Every <img> has a width attribute.
  • B7 — Images are exported from the layout in JPG format.
  • B8 — Groups of similar items are wrapped with <ul> lists.
  • B9 — All required fonts and weights are connected from Google Fonts in a single link: Raleway 700; Roboto 400, 500, 700.

C. Design & Styling

  • C1 — Use class selectors for styling.
  • C2 — No !important in styles.
  • C3 — Interactive elements (buttons/links) have proper hover and focus states per the style guide.
  • C4 — Contact text in the header changes color on hover and focus.
  • C5<body> sets font-family to the primary Roboto font from the design.
  • C6 — The font-family stack ends with fallbacks and a family type, e.g., sans-serif.
  • C7 — Roboto is declared explicitly on <body> only; other elements inherit it.
  • C8<body> sets the dominant text color; the rest inherit or override as needed.
  • C9 — All text font-size values match the design exactly.
  • C10 — All line-height values match the design and are expressed as multipliers (not px).
  • C11 — All colors (color and background-color) match the design exactly.
  • C12font-weight matches the design and is only declared when different from the browser’s default for that element.
  • C13 — Buttons use cursor: pointer.
  • C14 — Avoid re-declaring browser defaults (e.g., no cursor: pointer on links; no font-style: normal or font-weight: 400 on paragraphs).

📁 Project Structure

.
├─ index.html
├─ css/
│  ├─ styles.css
│  └─ modern-normalize.min.css   
├─ images/
│  ├─ portfolio-01.jpg
│  ├─ portfolio-02.jpg
│  └─ ...
└─ README.md

🖼️ Images & Optimization

  • Export raster assets from the layout as JPG.
  • Optimize each bitmap using Squoosh.
  • Give each image a width attribute and meaningful alt text.
  • Use lowercase, hyphenated file names (e.g., project-card-1.jpg).

🧪 Validation & Formatting

  • Validate HTML: validator.w3.org
  • Format code with Prettier.
  • Enable modern-normalize to normalize default styles.
  • Connect Google Fonts in a single link for: Raleway:700 and Roboto:400,500,700.

🚀 How to Run

  1. Clone the repo and open index.html in your browser.
  2. Ensure css/styles.css, modern-normalize, and images/ are correctly referenced.
  3. Publish via GitHub Pages (Settings → Pages → Deploy from branch) and add the link to the repo’s AboutWebsite.

Tip: Keep class names semantic and consistent; follow the design exactly for spacing, colors, sizes, and states.

About

GOIT Markup HW-02 — Portfolio section with semantic HTML + CSS: normalized styles, Google Fonts, hover/focus states, image optimization, and HTML validation. Includes styles in css/styles.css and assets in images/.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors