Drawing a Terminal with CSS
How do I make an drawing a terminal with css?
On the Kloudless API page I saw an image (the second one in the Pen). I've recreated it with CSS for practice.. What is a drawing a terminal with css? How do you make a drawing a terminal with css? This script and codes were developed by Lachlan Campbell on 24 September 2022, Saturday.
Drawing a Terminal with CSS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Drawing a Terminal with CSS</title> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Source+Code+Pro:600'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1 class="description black top">Drawn with CSS:</h1>
<div class="spacer"></div>
<div class="window"> <div class="flex"> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> <div class="text_container"> <span class="blue">$ <span class="black"> curl<br />https://api.kloudless.com/v1/accounts/9001/fi<br />les/recent -H "Authorizantion: Token 1Ptdou8U<br />X082uuYTo0E4ioh3"</span><br /> <p class="muted">{</p> <p class="muted ione">"count": 100,</p> <p class="muted ione">"files": [</p> <p class="muted itwo">{</p> <span class="muted ithree"> "id": "riJy7tQBxA67",<br /> </span> <span class="muted code ithree"> "name": "ubuntu-desktop-amid64.iso", </span> </div>
</div>
<h1 class="description black">The original image:</h1>
<img src="https://s3-us-west-2.amazonaws.com/static-assets.kloudless.com/static/api_codesnippet%402x.png"> <script src="js/index.js"></script>
</body>
</html>
Drawing a Terminal with CSS - Script Codes CSS Codes
.window { width: 496px; height: 337px; margin-left: auto; margin-right: auto; border-radius: 4px; background: #C3D0DE; box-shadow: 0px 2px 0px 0px #E5E5E5;
}
.flex { width: 50px; padding: 10px 8px 8px 8px; display: flex; display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between;
}
.item { background: #7D8CA8; width: 12px; height: 12px; border-radius: 8px; display: inline-block;
}
.text_container { margin: 6px; padding: 12px 18px 15px 18px; width: 446px; height: 260px; background: white; font: 600 1.02em "Source Code Pro", monospace; color: #222; padding-top: 19px; width: 450px; line-height: 1.7em; letter-spacing: -0.31px;
}
p { display: block; margin: 0;
}
.blue { color: #2261E8;
}
.black { color: #222;
}
.muted { color: #6C819A;
}
.ione { margin-left: 20px;
}
.itwo { margin-left: 40px;
}
.ithree { margin-left: 60px;
}
img { width: 496px; margin: auto; display: block;
}
.description { font-size: 1.2em; font-family: "Source Code Pro", monospace; font-weight: 600;
}
Drawing a Terminal with CSS - Script Codes JS Codes
// I was on the Kloudless API page (https://developers.kloudless.com/) when I saw the image (the second one in the Pen). I thought, "Hey! I bet I could draw that with CSS!"
// So here I am doing it. Enjoy.
Developer | Lachlan Campbell |
Username | lachlanjc |
Uploaded | September 24, 2022 |
Rating | 3 |
Size | 3,185 Kb |
Views | 16,192 |
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!
Name | Size |
Noodles Newsletter Template | 3,727 Kb |
Bananner | 2,964 Kb |
A Pen by Lachlan Campbell | 3,870 Kb |
Merriam-Webster Dictionary | 4,297 Kb |
Recipe - Banana Walnut Cake | 3,617 Kb |
Noodles Tags | 1,915 Kb |
Social Profiles | 1,939 Kb |
Pure CSS Accordion Menu | 2,038 Kb |
Action Menu | 2,410 Kb |
Alan Turing | 2,989 Kb |
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!
Name | Username | Size |
Email Marketing Mock | Kristenzirkler | 8,224 Kb |
Spinners using Font Icons | Keyamoon | 3,007 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
Hexagons | Ashmind | 4,360 Kb |
BSP Dungeon Generation | Xgundam05 | 5,326 Kb |
Navier Stoke Fluid Simulation | Esimov | 8,584 Kb |
Border image | JohnRiordan | 2,120 Kb |
A Pen by Ben Babics | Benbabics | 2,957 Kb |
Toggle menu | Seyedi | 2,279 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!