Created
July 2, 2024 10:26
-
-
Save kianurivzzz/e772676fc98608f0b4bda05f096a399d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("./variables.css"); | |
@import url("./terminal-screen.css"); | |
@import url("./terminal-print.css"); | |
@font-face { | |
font-weight: 400; | |
font-family: "JetBrains Mono"; | |
src: url("../assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); | |
} | |
body { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
height: 100vh; | |
margin: 0; | |
background: var(--main-bg); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Terminal Layout</title> | |
<link rel="stylesheet" href="styles/app.css"> | |
</head> | |
<body> | |
<div class="terminal"> | |
<div class="terminal-header"> | |
<button class="btn btn-red"></button> | |
<button class="btn btn-yellow"></button> | |
<button class="btn btn-green"></button> | |
</div> | |
<div class="terminal-body"> | |
<pre><code><span class="code-tag"><section</span> <span class="code-attr">class</span>="<span class="code-string">card</span>"<span class="code-tag">></span> | |
<span class="code-tag"><h1></span>Nike Air Max<span class="code-tag"></h1></span> | |
<span class="code-tag"><img</span> <span class="code-attr">src</span>="<span class="code-string">./images/airmax2020.png</span>" <span class="code-attr">alt</span>="<span class="code-string">Nike Air Max</span>"<span class="code-tag">></span> | |
<span class="code-tag"><button></span>Купить<span class="code-tag"></button></span> | |
<span class="code-tag"></section></span></code></pre> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../styles/app.css'; | |
import '../styles/variables.css'; | |
import '../styles/terminal-screen.css'; | |
import '../styles/terminal-print.css'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* BEGIN (write your solution here) */ | |
/* END */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.terminal { | |
padding: 20px 30px; | |
color: #fff; | |
background: var(--terminal-bg); | |
border-radius: 5px; | |
} | |
.terminal-header { | |
margin-bottom: 20px; | |
} | |
.btn { | |
display: inline-block; | |
width: 11px; | |
height: 11px; | |
margin-right: 5px; | |
padding: 0; | |
border: 0; | |
border-radius: 50%; | |
} | |
.btn-red { | |
background: var(--red); | |
} | |
.btn-yellow { | |
background: var(--yellow); | |
} | |
.btn-green { | |
background: var(--green); | |
} | |
.terminal-body pre { | |
margin: 0; | |
} | |
.terminal-body code { | |
font: 18px/1.5 "JetBrains Mono", monospace; | |
} | |
.code-tag { | |
color: var(--highlight-tag); | |
} | |
.code-attr { | |
color: var(--highlight-attr); | |
} | |
.code-string { | |
color: var(--highlight-string); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--main-bg: #7e57c2; | |
--terminal-bg: #263238; | |
--red: #ff5f56; | |
--yellow: #ffbd2e; | |
--green: #27c93f; | |
--highlight-tag: #ff5370; | |
--highlight-attr: #ffcb6b; | |
--highlight-string: #c3e88d; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment