summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2021-09-04 12:13:05 +0200
committerxengineering <me@xengineering.eu>2021-09-04 16:45:37 +0200
commite89ea44a83b1cc7926414a19c942e3b239a896e6 (patch)
tree8cceaf502c830590d2e92eaa29812cb05ddeca4c
parent6fd64f4dc8848c2c33600567f4081ce7864ab571 (diff)
downloadlibweb-e89ea44a83b1cc7926414a19c942e3b239a896e6.tar
libweb-e89ea44a83b1cc7926414a19c942e3b239a896e6.tar.zst
libweb-e89ea44a83b1cc7926414a19c942e3b239a896e6.zip
Add code Element
-rw-r--r--css/xengineering.css13
-rw-r--r--html/template.html4
2 files changed, 13 insertions, 4 deletions
diff --git a/css/xengineering.css b/css/xengineering.css
index 97a7f96..d81902b 100644
--- a/css/xengineering.css
+++ b/css/xengineering.css
@@ -7,10 +7,6 @@ vim: shiftwidth=2 tabstop=2 expandtab
/********************************** MOBILE ************************************/
-* {
-
-}
-
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
@@ -53,6 +49,15 @@ nav button:hover {
background-color: lightgray;
}
+pre {
+ white-space: pre-wrap;
+ color: black;
+ background-color: lightgray;
+ padding: 10px;
+ border-radius: 5px;
+}
+
+
/******************************************************************************/
diff --git a/html/template.html b/html/template.html
index 8416587..c1b2e3f 100644
--- a/html/template.html
+++ b/html/template.html
@@ -27,6 +27,10 @@
<h1>libweb</h1>
<p>A repository with reusable components for web development.</p>
<a href="https://example.com">example link</a>
+ <pre><code>#!/usr/bin/python3
+
+print("This is just some example code!")
+</code></pre>
</main>
<script>