first commit
This commit is contained in:
commit
77c222396d
4 changed files with 193 additions and 0 deletions
19
CSS Training/1/index.html
Executable file
19
CSS Training/1/index.html
Executable file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Test CSS 1</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li style="--i:5;"><a href="#">Accueil</a></li>
|
||||
<li style="--i:4;"><a href="#">Blog</a></li>
|
||||
<li style="--i:3;"><a href="#">Tests</a></li>
|
||||
<li style="--i:2;"><a href="#">Projets</a></li>
|
||||
<li style="--i:1"><a href="#">Logiciels</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
92
CSS Training/1/style.css
Executable file
92
CSS Training/1/style.css
Executable file
|
@ -0,0 +1,92 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
|
||||
*
|
||||
{
|
||||
font-family: Audiowide;
|
||||
}
|
||||
h1
|
||||
{
|
||||
color: white;
|
||||
}
|
||||
body
|
||||
{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background: #434750;
|
||||
}
|
||||
|
||||
ul
|
||||
{
|
||||
position: relative;
|
||||
transform: skewY(-15deg);
|
||||
/* transition: 0.5s; */
|
||||
}
|
||||
|
||||
ul li
|
||||
{
|
||||
position: relative;
|
||||
list-style: none;
|
||||
width: 200px;
|
||||
background: #080809;
|
||||
padding: 15px;
|
||||
z-index: var(--i);
|
||||
transition: 0.5s;
|
||||
}
|
||||
ul li:hover
|
||||
{
|
||||
background: #0e0e0e;
|
||||
transform: translateX(50px);
|
||||
}
|
||||
ul li::before
|
||||
{
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -40px;
|
||||
width: 40px;
|
||||
height: 100%;
|
||||
background: #18191a;
|
||||
transform-origin: right;
|
||||
transform: skewY(45deg);
|
||||
transition: 0.5s;
|
||||
}
|
||||
ul li:hover::before
|
||||
{
|
||||
background: #1a1a1a;
|
||||
}
|
||||
ul li::after
|
||||
{
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -40px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
background: #141414;
|
||||
transform-origin: bottom;
|
||||
transform: skewX(45deg);
|
||||
transition: 0.5s;
|
||||
}
|
||||
ul li:hover::after
|
||||
{
|
||||
background: #1a1a1a;
|
||||
}
|
||||
ul li:last-child::after
|
||||
{
|
||||
box-shadow: -100px 100px 20px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
ul li a
|
||||
{
|
||||
text-decoration: none;
|
||||
color: rgb(73, 73, 73);
|
||||
display: block;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05cm;
|
||||
transition: 0.5s;
|
||||
}
|
||||
ul li:hover a
|
||||
{
|
||||
color: #00A2FF;
|
||||
}
|
||||
|
19
Website Training/1/index.html
Executable file
19
Website Training/1/index.html
Executable file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Website Training 1</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">Blog</a></li>
|
||||
<li><a href="#">Softwares</a></li>
|
||||
</ul>
|
||||
<h1>Welcome !</h1>
|
||||
<p>This website is done for training purpose.</p>
|
||||
</body>
|
||||
</html>
|
63
Website Training/1/style.css
Executable file
63
Website Training/1/style.css
Executable file
|
@ -0,0 +1,63 @@
|
|||
* {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
ul {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
display: inline;
|
||||
padding: 8px;
|
||||
background-color: cornflowerblue;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style: none;
|
||||
align-content: center;
|
||||
text-align: center;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ul li a {
|
||||
text-decoration: none;
|
||||
list-style: none;
|
||||
align-content: center;
|
||||
text-align: center;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ul li a:hover {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
display: inline;
|
||||
padding: 8px;
|
||||
background-color: cornflowerblue;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue