Skip to content

Commit

Permalink
alx-frontend-for-fun
Browse files Browse the repository at this point in the history
  • Loading branch information
OmoloyinA committed Feb 1, 2024
0 parents commit 4e77b8f
Show file tree
Hide file tree
Showing 149 changed files with 33,303 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 0-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!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>
Binary file added 0-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions 0-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
ul {
display: flex;
justify-content: center;
}

li {
background-color: #f7f7f7;
list-style: none;
text-align: center;
border: 2px solid gray;
border-radius: 0.5rem;
display: flex;
flex-direction: column;
margin: 1rem;
padding-top: 10px;
font-size: 2rem;
}

.icon {
display: inline-block;
background-image: url("./0-sprite.png");
background-repeat: no-repeat;
height: 400px;
width: 300px;
}

li span.i-html {
background-position: left center;
}

li span.i-css {
background-position: center;
}

li span.i-js {
background-position: right center;
}
12 changes: 12 additions & 0 deletions 1-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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>
20 changes: 20 additions & 0 deletions 1-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
h2 a {
text-decoration: none;
position: relative;
color: #8a153a;
}

h2 a::before {
content: "";
bottom: 0;
width: 0;
height: 0.1rem;
position: absolute;
transition: 0.9s cubic-bezier(0.17, 0.67, 0, 1.01);
}

a:hover::before {
left: 0;
background-color: #8a153a;
width: 100%;
}
18 changes: 18 additions & 0 deletions 2-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!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>
56 changes: 56 additions & 0 deletions 2-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.toggle-label {
position: relative;
display: inline-block;
width: 60px;
height: 20px;
background-color: #ebebeb;
border-radius: 20px;
border: 1px solid lightgray;
}

.toggle-label::after {
content: "";
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: white;
top: -4px;
left: -1px;
transition: all 0.3s;
border: 1px solid lightgray;
}

.toggle-inner {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.9rem;
}

.toggle-inner::before {
content: "Yes";
color: white;
padding-left: 6px;
}

.toggle-inner::after::before {
color: #c3c3c3;
}

.toggle-inner::after {
content: "No";
color: #c3c3c3;
padding-left: 6px;
}

.toggle-cb {
-webkit-appearance: none;
-moz-appearance: none;
}

.toggle-cb:checked + .toggle-label::after {
left: 33px;
}

.toggle-cb:checked + .toggle-label {
background-color: #d73953;
}
26 changes: 26 additions & 0 deletions 3-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!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>
91 changes: 91 additions & 0 deletions 3-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.menu {
display: flex;
flex-direction: column;
}

.menu-open {
-webkit-appearance: none;
-moz-appearance: none;
}

.menu-open-button {
display: flex;
flex-direction: column;
border-radius: 50%;
background-color: #d73953;
height: 2rem;
width: 2rem;
margin-bottom: 5px;
}

.menu-line {
margin: 1px auto;
width: 10px;
height: 1px;
background: white;
}

.menu-item {
display: none;
align-items: center;
justify-content: center;
color: white;
font-size: 1rem;
border-radius: 50%;
background-color: #d73953;
height: 2rem;
width: 2rem;
margin-bottom: 5px;
}

.menu-open-button:hover {
height: 2.1rem;
width: 2.1rem;
transition: 0.1s ease-out;
}

.menu-open-button:hover .menu-line-1 {
margin-top: 13px;
transition: 0.1s ease-out;
}

.menu-open-button:hover .menu-line {
margin-top: 6px auto;
}

.menu-line-1 {
margin-top: 12px;
}

.menu-open:checked ~ .menu-open-button,
.menu-open:checked ~ .menu-item {
height: 1.5rem;
width: 1.5rem;
font-size: 7px;
}

.menu-open:checked ~ .menu-open-button > .menu-line-3 {
display: none;
}

.menu-open:checked ~ .menu-open-button > .menu-line-1 {
transform: rotate(45deg);
margin-top: 11.5px;
transition: 0.1s ease-out;
}

.menu-open:checked ~ .menu-open-button > .menu-line-2 {
transform: rotate(-45deg);
margin-top: -1.5px;
transition: 0.1s ease-out;
}

.menu-open:checked ~ .menu-item {
display: flex;
}

.menu-open:checked ~ .menu-item:hover {
background-color: white;
color: #d73953;
border: 0.5px solid #d73953;
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Markdown to HTML

## Description
Markdown is awesome! All your README.md are made in Markdown, but do you know how GitHub are rendering them?

It’s time to code a Markdown to HTML!
Loading

0 comments on commit 4e77b8f

Please sign in to comment.