Badges!

Developer
Size
3,758 Kb
Views
10,120

How do I make an badges!?

What's going on in this pen? Badges. Badges everywhere.. What is a badges!? How do you make a badges!? This script and codes were developed by Bryan Fillmer on 11 December 2022, Sunday.

Badges! Previews

Badges! - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Badges!</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="structure"> <div class="badge-one-border"> <div class="badge-one-content"> <h2>100%</h2> <h3>Premium <span>Quality</span></h3> </div> </div>
</div>
<div class="structure"> <div class="badge-two"> <h2>100%</h2> <h3>Premium <span>Quality</span></h3> </div>
</div>
<div class="structure"> <div class="badge-three"> <h2>100%</h2> <h3>Premium <span>Quality</span></h3> </div>
</div>
</body>
</html>

Badges! - Script Codes CSS Codes

/* @TODO: Actual comments. */
/* Also: reorder and cleanup things. */
/* Consistent markup, just change class call for different styles. */
/* And.... better resizing via variables. */
/* Probably other things too. */
/* So messy, sigh. */
@import url(https://fonts.googleapis.com/css?family=Bitter:700|Droid+Serif:400|400italic);
body { padding: 5em; background-color: #e9d2a3;
}
h1,
h2,
h3,
h4 { font-family: 'Bitter', serif; font-weight: 700;
}
.structure { width: 250px; float: left;
}
.badge-three { position: relative; z-index: 1; width: 300px; height: 150px; text-align: center;
}
.badge-three:before,
.badge-three:after { position: absolute; z-index: -1; content: ''; display: block; width: 0; height: 0;
}
.badge-three:before { top: 75px; left: 0; border-top: 75px solid #d56945; border-left: 150px solid transparent; border-right: 150px solid transparent;
}
.badge-three:after { top: 0; left: 0; border-bottom: 75px solid #d56945; border-left: 150px solid transparent; border-right: 150px solid transparent;
}
.badge-two { position: relative; width: 150px; height: 150px; border: 2px dashed #478266; border-radius: 150px;
}
.badge-two:after { position: absolute; top: -8px; left: -8px; display: block; width: 158px; height: 158px; content: ''; border: 4px solid #665136; border-radius: 158px;
}
.badge-two:before { position: absolute; top: 4px; left: 4px; z-index: -1; display: block; width: 142px; height: 142px; content: ''; background-color: #d56945; border-radius: 150px;
}
.badge-two h2 { position: absolute; top: 50%; left: 50%; margin-top: -0.63em; margin-left: -1.3em; font-family: 'Droid Serif'; font-size: 2.7em; font-weight: 400; text-shadow: 1px 1px 0 #e9d2a3; color: #478266; -webkit-transform: rotate(-30deg); -ms-transform: rotate(-30deg); transform: rotate(-30deg);
}
.badge-two h3 { position: absolute; top: 0; left: 0; z-index: 7; width: 120px; margin-top: 1.2em; font-size: 1.5em; text-align: center; text-shadow: 1px 1px 0 #e9d2a3; color: #665136; -webkit-transform: rotate(-30deg); -ms-transform: rotate(-30deg); transform: rotate(-30deg);
}
.badge-two h3 span { position: absolute; top: 2.5em; right: 0; left: 0; display: inline-block;
}
.badge-one-content { position: absolute; top: 50%; left: 50%; z-index: 3; width: 150px; height: 150px; margin-left: -80px; margin-top: -80px; background-color: #665136; border: 5px solid #e9d2a3; border-radius: 150px;
}
.badge-one-content h2 { position: absolute; top: 15px; left: 50%; z-index: 3; width: 150px; margin-top: 0; margin-left: -75px; padding: 0; font-family: 'Droid Serif', serif; font-weight: 400; font-style: italic; font-size: 2em; color: #665136;
}
.badge-one-content h3 { box-sizing: border-box; position: absolute; top: 5px; left: 5px; width: 140px; height: 75px; margin: 0; padding-top: 40px; font-size: 1.65em; letter-spacing: 0.05em; color: #d56945; background-color: #e9d2a3; border-radius: 150px 150px 0 0;
}
.badge-one-content h3 span { color: #e9d2a3;
}
.badge-one-border { width: 150px; height: 150px; background-color: #478266; border-radius: 9px; position: relative; text-align: center;
}
.badge-one-border:before,
.badge-one-border:after { width: 150px; height: 150px; background-color: #478266; border-radius: 9px; z-index: -1; content: ""; position: absolute; top: 0; left: 0;
}
.badge-one-border:before { -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -o-transform: rotate(30deg);
}
.badge-one-border:after { -webkit-transform: rotate(60deg); -moz-transform: rotate(60deg); -ms-transform: rotate(60deg); -o-transform: rotate(60deg);
}
Badges! - Script Codes
Badges! - Script Codes
Home Page Home
Developer Bryan Fillmer
Username bfillmer
Uploaded December 11, 2022
Rating 4
Size 3,758 Kb
Views 10,120
Do you need developer help for Badges!?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Bryan Fillmer (bfillmer) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!