Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules
build
.env
.docusaurus
# Ignore docusaurus generated cache
.docusaurus/
dist/

4 changes: 4 additions & 0 deletions docs/CSS/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "CSS",
"position": 3
}
42 changes: 42 additions & 0 deletions docs/CSS/box-model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: Box Model
sidebar_position: 3
---

# Box Model

Every HTML element is a box! The box model is the secret to spacing, borders, and layout.

## Parts of the Box Model
- **Content**: The actual text or image
- **Padding**: Space inside the box, around the content
- **Border**: The edge of the box
- **Margin**: Space outside the box, separating it from others

Example:
```css
div {
margin: 20px;
border: 2px solid #333;
padding: 10px;
}
```

## Display Property
- `block`: Starts on a new line, takes full width (e.g., `<div>`, `<h1>`)
- `inline`: Flows with text (e.g., `<span>`, `<a>`)
- `flex`, `grid`: Modern layouts

Example:
```css
span {
display: inline;
}
div {
display: block;
}
```

## What's Next?

Let’s learn layout techniques: [Layout Techniques](./layout-techniques.md).
36 changes: 36 additions & 0 deletions docs/CSS/introduction-to-css.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: Introduction to CSS
sidebar_position: 1
---

# Introduction to CSS

Welcome, style wizard! 🎨 Now that you know HTML, it’s time to make your web pages beautiful with CSS (Cascading Style Sheets). If HTML is the structure of your house, CSS is the paint, wallpaper, and decorations that make it shine.

## What is CSS?
CSS controls colors, fonts, spacing, layout, and more. It separates content (HTML) from presentation (styles).

- **Inline styles**: Directly on an element (not recommended for big projects)
- **Internal styles**: In a `<style>` tag in the HTML `<head>`
- **External styles**: In a separate `.css` file (best for most projects)

Example (inline):
```html
<p style="color: red;">This is red text.</p>
```
Example (internal):
```html
<head>
<style>
p { color: blue; }
</style>
</head>
```
Example (external):
```html
<link rel="stylesheet" href="styles.css" />
```

## What's Next?

Ready to learn how to target elements? Next up: [Selectors & Properties](./selectors-and-properties.md). Let’s style like a pro!
48 changes: 48 additions & 0 deletions docs/CSS/layout-techniques.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: Layout Techniques
sidebar_position: 4
---

# Layout Techniques

CSS gives you powerful tools to arrange elements on the page.

## Flexbox
- Align, justify, and wrap items easily

Example:
```css
.container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
```

## Grid
- Create rows, columns, and areas

Example:
```css
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
```

## Positioning
- `relative`, `absolute`, `fixed`, `sticky`

Example:
```css
.sticky {
position: sticky;
top: 0;
}
```

## What's Next?

Let’s style your site: [Styling](./styling.md).
41 changes: 41 additions & 0 deletions docs/CSS/layout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: CSS Layout
sidebar_position: 4
---

# CSS Layout

You’re doing great! Now, let’s arrange elements on the page. CSS layout is how you build headers, sidebars, footers, and more.

## Common Layout Techniques

- **Block & Inline**: Block elements (like `<div>`) stack; inline elements (like `<span>`) flow in a line.
- **Float**: Old-school way to move elements left or right.
- **Flexbox**: Modern, easy way to align and distribute space.
- **Grid**: Powerful for two-dimensional layouts.

Example (Flexbox):

```css
.container {
display: flex;
justify-content: space-between;
}
```

Example (Grid):

```css
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
}
```

:::info
Flexbox is great for navbars; Grid is perfect for page layouts.
:::

## What's Next?

Time to practice! Try a mini project: [CSS Projects](./projects.md).
31 changes: 31 additions & 0 deletions docs/CSS/projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: CSS Projects
sidebar_position: 5
---

# CSS Projects

Congratulations! 🎉 You’ve learned the basics of CSS. Now it’s time to practice with some fun projects.

## Project Ideas

1. **Personal Bio Page (Styled)**
- Take your HTML bio page and add colors, fonts, and layout.
2. **Navigation Bar**
- Build a horizontal menu using Flexbox.
3. **Photo Gallery**
- Create a grid of images with hover effects.

## Tips

- Use all the selectors and box model tricks you’ve learned.
- Experiment with colors, spacing, and layout.
- Use browser dev tools to tweak styles live.

:::tip
Share your styled pages with friends or on GitHub for feedback!
:::

## What's Next?

Want to level up? Try combining your HTML and CSS skills, or move on to [Introduction to Git](../../Git/Beginner/introduction-to-git.md) to learn about version control!
Copy link

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link path '../../Git/Beginner/introduction-to-git.md' is incorrect. Based on the file structure, it should be '../Git/introduction-to-git.md' since there's no 'Beginner' subdirectory in Git.

Suggested change
Want to level up? Try combining your HTML and CSS skills, or move on to [Introduction to Git](../../Git/Beginner/introduction-to-git.md) to learn about version control!
Want to level up? Try combining your HTML and CSS skills, or move on to [Introduction to Git](../Git/introduction-to-git.md) to learn about version control!

Copilot uses AI. Check for mistakes.
51 changes: 51 additions & 0 deletions docs/CSS/selectors-and-properties.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Selectors & Properties
sidebar_position: 2
---

# Selectors & Properties

Selectors are how you target HTML elements to style them. Properties are what you change (like color, font, size).

## Basic Selectors
- `element` (e.g., `h1`, `p`): All elements of that type
- `.class`: Elements with a specific class
- `#id`: A unique element with an ID
- `*`: Everything

Example:
```css
.highlight {
background: yellow;
}
#main-title {
font-size: 2em;
}
```

## Pseudo-classes
- `:hover`, `:nth-child(2)`, etc.

Example:
```css
a:hover {
color: red;
}
li:nth-child(2) {
font-weight: bold;
}
```

## Pseudo-elements
- `::before`, `::after`, etc.

Example:
```css
p::before {
content: "★ ";
}
```

## What's Next?

Let’s understand the box model: [Box Model](./box-model.md).
48 changes: 48 additions & 0 deletions docs/CSS/selectors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: CSS Selectors
sidebar_position: 2
---

# CSS Selectors

Great start! Now, let’s learn how to target specific HTML elements with selectors. Selectors are like magic wands—you point at what you want to style.

## What is a Selector?

A selector tells CSS which element(s) to style.

Example:

```css
p {
color: green;
}
```

This makes all `<p>` elements green.

## Common Selectors

- `element` (e.g., `h1`, `p`): Targets all elements of that type
- `.class`: Targets elements with a specific class
- `#id`: Targets a unique element with an ID
- `*`: Targets everything

Example:

```css
.highlight {
background: yellow;
}
#main-title {
font-size: 2em;
}
```

:::info
You can combine selectors for more power: `div p` targets all `<p>` inside `<div>`.
:::

## What's Next?

Let’s dive into how elements are sized and spaced: [CSS Box Model](./box-model.md).
4 changes: 4 additions & 0 deletions docs/Git/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Git",
"position": 3
}
34 changes: 34 additions & 0 deletions docs/Git/basic-commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Basic Git Commands
sidebar_position: 2
---

# Basic Git Commands

Great start! Now, let’s learn the most important Git commands. These are your tools for saving, viewing, and sharing your work.

## Common Commands

- `git init`: Start a new Git repository
- `git status`: See what’s changed
- `git add`: Stage changes for commit
- `git commit`: Save your changes
- `git log`: View commit history

Example workflow:

```bash
git init
git add index.html
git commit -m "Add homepage"
git status
git log
```

:::tip
Use clear commit messages so you remember what changed!
:::

## What's Next?

Ready to work on different features? Next: [Branching in Git](./branching.md).
38 changes: 38 additions & 0 deletions docs/Git/branching.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: Branching in Git
sidebar_position: 3
---

# Branching in Git

Awesome! Now, let’s learn how to work on new features without breaking your main code. Branches are like parallel universes for your project.

## What is a Branch?

A branch is a separate line of development. You can experiment, then merge changes back when ready.

## Common Branch Commands

- `git branch`: List branches
- `git checkout -b feature`: Create and switch to a new branch
- `git merge feature`: Combine changes from another branch

Example:

```bash
git branch
git checkout -b new-feature
# Make changes
git add .
git commit -m "Add new feature"
git checkout main
git merge new-feature
```

:::info
Branches help you work safely and try new ideas.
:::

## What's Next?

Let’s share your code with the world! Next: [GitHub Workflow](./github-workflow.md).
Loading