Add basic site design and placeholder content

This commit is contained in:
floppydiskette 2024-08-06 23:13:01 +01:00
commit 6a33eb0f83
No known key found for this signature in database
11 changed files with 150 additions and 5 deletions

3
.gitignore vendored
View file

@ -33,3 +33,6 @@
# Ignore master key for decrypting credentials and more.
/config/master.key
# JetBrains can you not
.idea/*

Binary file not shown.

View file

@ -12,4 +12,6 @@
*
*= require_tree .
*= require_self
*= require fonts
*= require master
*/

View file

@ -0,0 +1,4 @@
@font-face {
font-family: "FiraCode";
src: url("FiraCode-Regular.woff2") format('woff2')
}

View file

@ -0,0 +1,94 @@
:root {
--background: #11111b;
--foreground: #cdd6f4;
--links: #89b4fa;
}
body {
background-color: var(--background);
color: var(--foreground);
margin: 20px 75px 20px 75px;
line-height: 1.5em;
font-size: 10pt;
letter-spacing: -0.015em;
}
body,
pre {
font-family: "FiraCode", monospace;
}
a {
color: var(--links);
text-decoration: underline dotted;
}
a:hover {
text-decoration: underline solid;
}
ul {
list-style: none;
margin-left: 0;
padding: 0;
}
li {
padding-left: 1em;
text-indent: -1em;
}
li:before {
content: "-";
padding-right: 5px;
}
p, ul, pre {
margin: 0;
}
.section {
min-width: 20em;
width: max-content;
}
ul.members li {
text-indent: 0em;
}
ul.members li:before {
content: none
}
body > div {
padding-bottom: 1em;
}
body > div:nth-last-child(-n + 3) {
padding-bottom: 0;
}
.footer {
text-align: center;
}
table.services {
padding-left: 1em;
}
table.services td {
padding: 0 1em 0 0;
}
table.services tr td:first-child {
padding-right: 0.5em;
}
table.services tr td:nth-child(2)::before {
content: "- ";
}
table.services tr td:last-child {
font-style: italic;
}

View file

@ -0,0 +1,4 @@
class HomeController < ApplicationController
def index
end
end

View file

@ -0,0 +1,2 @@
module HomeHelper
end

View file

@ -0,0 +1,29 @@
<div class="header">
<pre> _______ _____
| ___|.----.-----.-----.-----.-----.| \.-----.--.--.
| ___|&#8203;| _| _ |-- __| -__| |&#8203;| -- | -__| | |
|___| |__| |_____|_____|_____|__|__|&#8203;|_____/|_____|\___/</pre>
</div>
<div class="section">
<p>Members</p>
<ul class="members">
<li><a href="/~amr">~amr</a></li>
<li><a href="/~raf">~raf</a></li>
<li><a href="/~floppy">~floppy</a></li>
</ul>
</div>
<div class="section">
<p>Services</p>
<table class="services">
<tr>
<td><a href="">dingus.frzn.dev</a></td>
<td>dingus</td>
<td>does things</td>
</tr>
<tr>
<td><a href="">yourmother.frzn.dev</a></td>
<td>yourmother doer</td>
<td>i am so funny ahahhhah</td>
</tr>
</table>
</div>

View file

@ -1,16 +1,18 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>FrznDev</title>
<title>frzn.dev</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
</head>
<body>
<%= yield %>
<hr>
<div class="footer">
(c) frzn.dev 2018 - <%= Date.today.year %> / design and backend by <a href="/~floppy">~floppy</a> / v<%=FrznDev::Application::VERSION %>
</div>
</body>
</html>

View file

@ -0,0 +1,5 @@
module FrznDev
class Application
VERSION = "2024.06.08-dev"
end
end

View file

@ -6,5 +6,5 @@ Rails.application.routes.draw do
get "up" => "rails/health#show", as: :rails_health_check
# Defines the root path route ("/")
# root "posts#index"
root "home#index"
end