diff options
author | Bradley Taunt <bt@btxx.org> | 2024-06-08 13:43:37 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-06-08 13:43:37 -0400 |
commit | 16d28628aca9b2d356de31c319f5e7bc0f5b2b02 (patch) | |
tree | 11947abb71e38cbe75116871694a44c33d257763 /build/soma-terminal-css | |
parent | dcfb172704f3afb68a30425029ec834be2883274 (diff) |
Remove incorrectly generated files, fix up markdown articles
Diffstat (limited to 'build/soma-terminal-css')
-rw-r--r-- | build/soma-terminal-css/index.html | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/build/soma-terminal-css/index.html b/build/soma-terminal-css/index.html index fa59d23..4da2c50 100644 --- a/build/soma-terminal-css/index.html +++ b/build/soma-terminal-css/index.html @@ -3,11 +3,12 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="color-scheme" content="dark light"> <link rel="icon" href="data:,"> <title>SOMA Inspired Terminal Display with CSS</title> <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" /> <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" /> -<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style> +<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}blockquote{background:rgba(0,0,0,0.1);border-left:4px solid;padding-left:5px;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style> </head> <nav> @@ -16,25 +17,15 @@ <main> <h1 id="soma-inspired-terminal-display-with-css">SOMA Inspired Terminal Display with CSS</h1> - <p>2021-05-29</p> - <p>A few years back I played (and loved) <a href="https://store.steampowered.com/app/282140/SOMA/">SOMA</a>, a first-person sci-fi horror-adventure game. The story was intriguing and the developers nailed the overall atmosphere of Pathos-II. Though both those aspects were great, what I found the most enjoyable were the interactive computers and displays found sprinkled throughout the world.</p> - <p>Three years ago I wanted to see if I could recreate one of those terminal displays with HTML & CSS. And I did just that.</p> - <p>So, why am I writing about this <em>three years later</em>? Well, I never did a proper write-up explaining how I achieved it. I’m sure someone out there in the wild west of the web could get some value out of this tutorial, right? I hope so!</p> - <h2 id="the-live-demo">The Live Demo</h2> - <p><img src="/public/images/soma-terminal.png" alt="Terminal based off the SOMA computers" /></p> - <p><a href="https://codepen.io/bradleytaunt/pen/ZEeLgmz">Live CodePen Example</a></p> - <h2 id="the-html">The HTML</h2> - <p>Nothing fancy going on here - just some simple <code>div</code> elements holding a few paragraphs and spans:</p> - <pre><code><div class="outer-frame"> <div class="screen"> <div class="screen-guts"> @@ -62,11 +53,8 @@ </div> </div> </code></pre> - <h2 id="the-css">The CSS</h2> - <p>Let’s just dump all the CSS right here (don’t worry, it looks far more complicated than it really is):</p> - <pre><code>@import url('https://opentype.netlify.com/sansation/index.css'); * { @@ -218,11 +206,8 @@ button { background: rgba(0,0,0,0.6); } </code></pre> - <p>The overall styling is fairly simple (which is great for browser support) with only a couple pseudo elements. It’s important to include the custom <code>Sansation</code> typeface, since this is what the game uses for most UI elements and terminals. (I’m loading in this font via my <a href="https://opentype.netlify.app">OpenType side project</a>)</p> - <p>The most important properties that truly bring this design together are those associated with the <code>.outer-frame</code> and <code>.screen</code> pseudo elements. Both of these elements use custom <code>background-images</code> that give a little more depth and life to the terminal - in this case fingerprints, dust and smudges.</p> - <p>Feel free to swap these image textures out with your own and alter the terminal as you see fit!</p> <footer role="contentinfo"> <h2>Menu Navigation</h2> |