Skip to content

Commit

Permalink
website: more updates
Browse files Browse the repository at this point in the history
- Make doc pages black
- Make textareas monospace
- Add URL to source code
  • Loading branch information
cbebe committed Oct 4, 2024
1 parent 51c3e86 commit 2d6f04a
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 36 deletions.
44 changes: 25 additions & 19 deletions pkg/website/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
/* body {
color: #222;
font-family: sans-serif;
line-height: 1.5;
margin: 1rem;
max-width: 768px;
} */

header {
border-bottom: 1px solid #222;
margin-bottom: 1rem;
}

footer {
border-top: 1px solid #222;
margin-top: 1rem;
*,
:root {
margin: 0;
padding: 0;
box-sizing: border-box;
}

a {
color: #00e;
color: #4fff64;
text-decoration: none;
}

Expand All @@ -37,18 +26,35 @@ nav.corner-nav a {
animation: glow 1s ease infinite alternate;
}

main#main {
main#main, main#main-block, header#header, footer#footer {
background-color: black;
color: white;
}

main#main {
text-align: center;
padding: 4rem;
}

main#main a {
color: #4fff64;
font-weight: bold;
}

main#main-block {
padding-left: 4rem;
padding-right: 4rem;
flex: 1;
}

html, body {
height: 100%;
}

body {
display: flex;
flex-direction: column;
}

@keyframes glow {
from {
color: #4fff64a3;
Expand Down
2 changes: 2 additions & 0 deletions pkg/website/assets/css/opening/interpreter.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ web-interpreter.interpreter {
web-interpreter textarea.input {
height: 50vh;
resize: vertical;
font-family: monospace;
}

web-interpreter textarea.output {
height: 20vh;
resize: vertical;
font-family: monospace;
}
11 changes: 4 additions & 7 deletions pkg/website/assets/css/opening/opening.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
/* best seen at 1500px or less */
/* based on animation by Ted McDonald https://codepen.io/tedmcdo/pen/PqxKXg */

*,
:root {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--fysh: 8vw;
}
Expand All @@ -21,6 +14,10 @@ body,
position: relative;
}

body {
display: inline;
}

.og-fysh {
text-decoration: none;
color: #333;
Expand Down
10 changes: 5 additions & 5 deletions pkg/website/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ markup.goldmark.renderer.unsafe = true

minify.minifyOutput = true

[[menus.main]]
name = 'Home'
pageRef = '/'
weight = 10

[[menus.main]]
name = 'Docs'
pageRef = '/docs'
weight = 20

[[menus.main]]
name = 'Source'
url = 'https://github.com/Fysh-Fyve/fysh'
weight = 20

# [[menus.main]]
# name = 'Tags'
# pageRef = '/tags'
Expand Down
6 changes: 3 additions & 3 deletions pkg/website/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
</head>
<body>
{{- block "all" . }}
<header>
<header id="header">
{{- block "header" . }}
{{ partial "header.html" . }}
{{- end }}
</header>
<main>
<main id="main-block">
{{ block "main" . }}{{ end }}
</main>
<footer>
<footer id="footer">
{{- block "footer" . }}
{{ partial "footer.html" . }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/website/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>Copyright {{ now.Year }}. All rights reserved.</p>
<!-- <p>Copyright {{ now.Year }}. All rights reserved.</p> -->
4 changes: 3 additions & 1 deletion pkg/website/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<h1>{{ site.Title }}</h1>
<nav class="corner-nav"></nav>
<a href="/"><code>&gt;&lt;fysh&gt;</code>
</nav>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}

0 comments on commit 2d6f04a

Please sign in to comment.