CLICK TO ENLARGE 😇
📄 Description🎓 Objectives
📋 Requirements
📝 Instructions
🔨 Tech stack
📂 Files description
👷 Authors
In this project, I explore creative web design using only HTML and CSS. My goal is to enhance static pages with dynamic layouts and animations, all without JavaScript.
You can test the results of my work through the following links:
To compare, feel free to check the instructions section.
I aim to deepen my CSS skills by creating engaging, interactive designs. This project highlights the power and versatility of CSS in modern web development.
- I am not allowed to import external CSS framework (like Bootstrap).
- I am are not to use Javascript.
0. Sprite languages
By using this HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HBTN - 0- Sprite</title>
<link href="0-styles.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<ul>
<li>HTML<span class="icon i-html"></span></li>
<li>CSS<span class="icon i-css"></span></li>
<li>JavaScript<span class="icon i-js"></span></li>
</ul>
</body>
</html>
And this image file: 0-sprite.png
Create 0-styles.css
and generate this layout:
You are not allowed to change the image and the HTML - sprite is cool!
Repo:
- GitHub repository:
holbertonschool-Fun-with-CSS
. - File:
1-index.html
,1-styles.css
.
1. Move the (under)line
By using this HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HBTN - 1- Underline</title>
<link href="1-styles.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<h2>
Hello <a href="https://www.holbertonschool.com">Holberton!</a>
</h2>
</body>
</html>
Create 1-styles.css
and generate this layout where the underline is hidden by default and appeared slowly:
You are not allowed to change the HTML.
Repo:
- GitHub repository:
holbertonschool-Fun-with-CSS
. - File:
0-index.html
,0-styles.css
.
2. Toggle
By using this HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HBTN - 2- toggle</title>
<link href="2-styles.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<div class="toggle">
<input type="checkbox" name="toggle" class="toggle-cb" id="toggle-0" checked>
<label class="toggle-label" for="toggle-0">
<div class="toggle-inner"></div>
<div class="toggle-switch"></div>
</label>
</div>
</body>
</html>
Create 2-styles.css
and generate this layout where the <input>
is has this custom toggle layout:
Checked:
Unchecked:
You are not allowed to change the HTML.
Repo:
- GitHub repository:
holbertonschool-Fun-with-CSS
. - File:
2-index.html
,2-styles.css
.
3. Menu
By using this HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HBTN - 2- toggle</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="3-styles.css" media="all" rel="stylesheet" type="text/css">
</head>
<body>
<nav class="menu">
<input type="checkbox" href="#" class="menu-open" name="menu-open" id="menu-open"/>
<label class="menu-open-button" for="menu-open">
<span class="menu-line menu-line-1"></span>
<span class="menu-line menu-line-2"></span>
<span class="menu-line menu-line-3"></span>
</label>
<a href="#" class="menu-item"> <i class="fa fa-area-chart"></i> </a>
<a href="#" class="menu-item"> <i class="fa fa-bar-chart"></i> </a>
<a href="#" class="menu-item"> <i class="fa fa-line-chart"></i> </a>
<a href="#" class="menu-item"> <i class="fa fa-pie-chart"></i> </a>
<a href="#" class="menu-item"> <i class="fa fa-table"></i> </a>
</nav>
</body>
</html>
Create 3-styles.css
and generate this layout/animation:
You are not allowed to change the HTML.
Repo:
- GitHub repository:
holbertonschool-Fun-with-CSS
. - File:
3-index.html
,3-styles.css
.
FILE | DESCRIPTION |
---|---|
Resources |
Contains the images required for the projects. |
0-index.html |
Index page for the task 0. Sprite languages . |
0-styles.css |
CSS style sheet for the task 0. Sprite languages . |
1-index.html |
Index page for the task 1. Move the (under)line . |
1-styles.css |
CSS style sheet for the task 1. Move the (under)line . |
2-index.html |
Index page for the task 2. Toggle . |
2-styles.css |
CSS style sheet for the task 2. Toggle . |
3-index.html |
Index page for the task 3. Menu . |
3-styles.css |
CSS style sheet for the task 3. Menu . |
README.md |
The readme file you are currently reading 😉. |
A big thank you to all my Holberton School peers for their help and support throughout these projects.
Fabien CHAVONET
- Github: @fchavonet