xxxxxxxxxx
/* Creating Nike logo with CSS */
/* first create a div element in your html file with "class="nike" " attribute
*/
.nike {
position: absolute;
overflow: hidden;
width: 50vmin;
aspect-ratio: 14/5;
position: relative;
}
.nike:before {
content: '';
position: absolute;
background: black;
width: 37%;
height: 550%;
bottom: -134%;
left: 70.5%;
border-top-left-radius: 48% 17%;
border-top-right-radius: 120% 40%;
transform: rotate(-113deg);
z-index: 1;
}
.nike:after {
content: '';
position: absolute;
background: white;
width: 30%;
height: 400%;
bottom: -73%;
left: 64%;
border-top-left-radius: 64% 14%;
border-top-right-radius: 125% 46%;
transform: rotate(-105deg);
z-index: 2;
}
xxxxxxxxxx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beginner HTML/CSS Projects</title>
<style>
/* Add some CSS styles to make the page look more appealing */
body {
background-color: #f5f5f5;
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
h1 {
color: #333;
}
ul {
list-style-type: disc;
padding-left: 20px;
}
li {
margin: 10px 0;
}
</style>
</head>
<body>
<h1>Beginner HTML/CSS Projects</h1>
<ul>
<li>Create a personal portfolio website.</li>
<li>Build a simple landing page for a product.</li>
<li>Design a basic form with HTML and style it with CSS.</li>
<li>Create a responsive webpage layout.</li>
<li>Build a static blog or article layout.</li>
<li>Create a photo gallery with HTML and CSS.</li>
<li>Develop a basic calculator UI.</li>
</ul>
</body>
</html>
xxxxxxxxxx
/* Creating Hashnode logo with CSS */
/* first create a div element in your html file with class="hashnode" attribute
*/
.hashnode {
width: 5em;
aspect-ratio: 1;
border-radius: 1.25em;
background: #2962ff;
transform: rotate(45deg);
}
.hashnode:before {
content: '';
border-radius: 50%;
background: white;
height: 2em;
aspect-ratio: 1;
}
.hashnode {
display: grid;
place-items: center;
}
.hashnode {
width: 5em;
aspect-ratio: 1;
border-radius: 1.25em;
background: #2962ff;
transform: rotate(45deg);
-webkit-mask: radial-gradient(#0000 28%, #000 28%);
mask: radial-gradient(#0000 28%, #000 28%);
}