aboutsummaryrefslogtreecommitdiff
path: root/build/soma-terminal-css
diff options
context:
space:
mode:
Diffstat (limited to 'build/soma-terminal-css')
-rw-r--r--build/soma-terminal-css/index.html19
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 &#38; 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&#8217;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>&#60;div class="outer-frame"&#62;
&#60;div class="screen"&#62;
&#60;div class="screen-guts"&#62;
@@ -62,11 +53,8 @@
&#60;&#47;div&#62;
&#60;&#47;div&#62;
</code></pre>
-
<h2 id="the-css">The CSS</h2>
-
<p>Let&#8217;s just dump all the CSS right here (don&#8217;t worry, it looks far more complicated than it really is):</p>
-
<pre><code>@import url(&#39;https:&#47;&#47;opentype.netlify.com&#47;sansation&#47;index.css&#39;);
* {
@@ -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&#8217;s important to include the custom <code>Sansation</code> typeface, since this is what the game uses for most UI elements and terminals. (I&#8217;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>