Skip to content

Commit

Permalink
scripts(content): add css art
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmewdevart committed Sep 30, 2023
1 parent 7702f7b commit f9cd450
Show file tree
Hide file tree
Showing 7 changed files with 265 additions and 1 deletion.
13 changes: 13 additions & 0 deletions AbstractCSS/10_CSSBattle/10css.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>body{display:flex;justify-content:center;background-color:#C74E4E}div{position:absolute;margin:82px;width:20px;height:20px;background:#FFF;border-radius:100px}div:after{content:"";width:20px;height:20px;background:#E0E246;position:absolute;margin-left:100px;border-radius:5px;box-shadow:25px 0 0 0 #E0E246,50px 0 0 0 #E0E246,75px 0 0 0 #E0E246,100px 0 0 0 #E0E246,100px 25px 0 0 #E0E246,100px 50px 0 0 #E0E246,100px 75px 0 0 #E0E246,100px 100px 0 0 #E0E246,75px 100px 0 0 #E0E246,50px 100px 0 0 #E0E246,25px 100px 0 0 #E0E246,0 100px 0 0 #E0E246,-25px 100px 0 0 #E0E246,-50px 100px 0 0 #E0E246,-75px 100px 0 0 #E0E246,-100px 100px 0 0 #E0E246}
</style>
<title>10CSS Battle</title>
</head>
<body>
<div></div>
</body>
</html>
Binary file added AbstractCSS/10_CSSBattle/10css.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions Drawings/12_Car/car.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>12_Cars</title>
</head>
<body>
<div class="car-body">
<div class="handle"></div>
<div class="top-car">
<div class="glass"></div>
</div>
</div>
<div class="mirror"></div>
<div class="light"></div>
<div class="wheel">
<div class="wheel-circle"></div>
</div>
</body>
</html>
Binary file added Drawings/12_Car/car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions Drawings/12_Car/resetCss.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
161 changes: 161 additions & 0 deletions Drawings/12_Car/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
@import url(./resetCss.css);

:root {
--colorDarkDarkRed: #AA231F;
--colorDarkRed: #E62325;
--colorRed: #FF5C49;
--colorSoftSoftRed: #FF806C;
--colorSoftRed: #FBEAAE;
--colorBlack: #343334;
--colorWhite: #EAEAEA;
}

body {
background-color: var(--colorSoftRed);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.car-body {
background-color: var(--colorRed);
width: 350px;
height: 91px;
border-radius: 28px 28px 0px 0px;
}

.car-body::before {
content: '';
position: absolute;
width: 350px;
height: 28px;
margin-top: 70px;
background-color: var(--colorSoftSoftRed);
border-radius: 0px 0px 10.5px 10.5px;
z-index: 2;
}

.wheel {
background-color: var(--colorBlack);
position: absolute;
width: 84px;
height: 84px;
border-radius: 67px;
z-index: 3;
margin-top: 70px;
margin-left: -199.5px;
}

.wheel:after {
content: "";
background-color: var(--colorBlack);
position: absolute;
width: 84px;
height: 84px;
border-radius: 67px;
z-index: 3;
margin-left: 199.5px;
}

.wheel-circle {
background-color: var(--colorWhite);
position: absolute;
width: 49px;
height: 49px;
z-index: 4;
margin-top: 17.5px;
margin-left: 17.5px;
border-radius: 49px;
}

.wheel-circle:after {
content: "";
background-color: var(--colorWhite);
position: absolute;
width: 49px;
height: 49px;
z-index: 4;
margin-left: 199.5px;
border-radius: 49px;
}

.light {
background-color: var(--colorSoftRed);
position: absolute;
width: 28px;
height: 21px;
margin-top: -17.5px;
margin-left: -322px;
border-radius: 0px 0px 35px 0px;
}

.light:before {
content: "";
background-color: var(--colorDarkDarkRed);
position: absolute;
width: 28px;
height: 21px;
margin-left: 322px;
border-radius: 35px 0px 0px 35px;
z-index: 5;
}

.mirror {
background-color: var(--colorDarkRed);
position: absolute;
margin-top: -105px;
margin-left: -147px;
width: 31.5px;
height: 21px;
border-radius: 35px 17.5px 17.5px 0px;
z-index: 5;
}

.top-car {
position: absolute;
border-bottom: 70px solid var(--colorRed);
border-left: 17.5px solid transparent;
border-right: 17.5px solid transparent;
height: 0;
width: 175px;
height: 70px;
margin-top: -140px;
margin-left: 77px;
z-index: 3;
}

.glass {
border-bottom: 52.5px solid var(--colorSoftRed);
border-left: 17.5px solid transparent;
margin-top: 35px;
width: 66.5px;
height: 52.5px;
}

.glass:after {
content: "";
position: absolute;
border-bottom: 52.5px solid var(--colorSoftRed);
border-right: 17.5px solid transparent;
margin-left: 84px;
width: 56px;
height: 52.5px;
}

.handle {
background-color: var(--colorDarkRed);
position: absolute;
margin-top: 14px;
margin-left: 150.5px;
width: 17.5px;
height: 10.5px;
}

.handle:after {
content: "";
background-color: var(--colorDarkRed);
position: absolute;
margin-left: 105.5px;
width: 17.5px;
height: 10.5px;
}
22 changes: 21 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
</head>
<body>
<header class="header-content">
<a href="https://github.com/mewmewdevart" target="_blank" class="github-corner" aria-label="Visualizar projeto no GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>

<img src="Assets/images/web-design.png" alt="">
<h1>FrontEnd4Fun</h1>
<p>Learning about FrontEnd Web development with pratice using HTML, CSS and JS.</p>
Expand All @@ -32,7 +34,25 @@ <h2>Age Calculator</h2>
<div class="icon-badge">JavaScript</div>
</div> -->
<div class="card filterDiv abstractCSS">
<div class="icon-number">07</div>
<div class="icon-number">09</div>
<img src="./AbstractCSS/10_CSSBattle/10css.png" alt="the gradient block">
<h2>Battle #20 - Hover </h2>
<p>A simple target using position, shadow and z-index</p>
<a class="btn" role="button" href="./AbstractCSS/10_CSSBattle/10css.html" target="_blank">Show me!</a>
<div class="icon-badge">CSSBattle</div>
</div>

<div class="card filterDiv draws">
<div class="icon-number">13</div>
<img src="./Drawings/12_Car/car.png" alt="Praticing">
<h2>Car Art</h2>
<p> Drawing a flat-style car with CSS</p>
<a class="btn" role="button" href="./Drawings/12_Car/car.html" target="_blank">Show me!</a>
<div class="icon-badge">Drawins</div>
</div>

<div class="card filterDiv abstractCSS">
<div class="icon-number">08</div>
<img src="./AbstractCSS/09_CSSBattle/09_css.png" alt="the gradient block">
<h2>CSS Battle #14 - ZIndex </h2>
<p>A simple target using position, shadow and z-index</p>
Expand Down

0 comments on commit f9cd450

Please sign in to comment.