Skip to content

Commit

Permalink
2024.05.29
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyterra committed May 29, 2024
1 parent 7346cbc commit 22fe023
Show file tree
Hide file tree
Showing 22 changed files with 451 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/pagine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy Pagine

on:
# Runs on pushes targeting the default branch
push:
branches:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Install Pagine
run: go install github.com/webpagine/go-pagine/cmd/pagine@latest

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Build with Pagine
run: ~/go/bin/pagine --gen --public ./public/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public/

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# IntelliJ
.idea/
14 changes: 14 additions & 0 deletions 404.html.pagine
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[templates]
header = "/templates/header.gohtml"
footer = "/templates/footer.gohtml"
head = "/templates/head.gohtml"
main = "/templates/404.gohtml"

[include]
header = [ "/data/header.toml" ]
footer = [ "/data/footer.toml" ]
head = [ "/data/head.toml" ]

[define.main]
lang = "en"
title = "Pagine - Web Generator"
33 changes: 33 additions & 0 deletions assets/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@import "components.css";
@import "footer.css";
@import "header.css";

body {
font-family: "Noto Sans", serif;
margin: 0;
}

footer {
color: white;
background-color: black;
}

header {
margin: 0;
}

.invert {
filter: invert(1);
}

.content {
a {
text-decoration: none;
transition-duration: 500ms;
}

a:hover {
color: deepskyblue;
transition-duration: 500ms;
}
}
22 changes: 22 additions & 0 deletions assets/components.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
a.button {
margin: 0 10px;
padding: 10px 20px;
border-radius: 30px;

font-family: "Droid Sans", serif;
font-weight: bolder;

color: white;

transition-duration: 200ms;

background-color: #ff336a;

text-decoration: none;
}

.button:hover {
transition-duration: 200ms;

background-color: #f58;
}
71 changes: 71 additions & 0 deletions assets/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.footer {
margin: 0 40px;
padding: 50px 50px 10px 50px;
}

.footer-row {
display: flex;
align-items: stretch;
box-sizing: border-box;
margin-left: 14px;
margin-right: 14px;
flex-wrap: wrap;
}

.footer-link-list-block {
margin: 0 14px 32px 14px;
}

.footer-link-list-title {
color: #aaa;

font-weight: bold;
}

.footer-link-list {
display: flex;
flex-direction: column;
align-items: flex-start;

min-width: 200px;

a {
color: white;
margin-top: 10px;

text-decoration: none;
}

a:hover {
text-decoration: underline;
}
}

.footer-icon-list {
margin-top: 10px;

display: flex;
flex-direction: initial;
align-items: flex-start;

min-width: 200px;
}

.footer-icon {
margin: 0 40px 30px 0;

width: 30px;
height: 30px;

filter: invert(100%);
}

.footer-hr {
display: block;
height: 0;
overflow: visible;
padding: 0;
border: 0;
margin: 0 0 40px 0;
border-bottom: 1px solid #333;
}
35 changes: 35 additions & 0 deletions assets/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.nav-bar {
padding: 0 100px;

user-select: none;

a {
color: black;
text-decoration: none;
}
}

.nav-logo {
margin-top: 30px;
display: block;
}

.nav-item-link {
margin: 30px;
padding: 10px 20px;
border-radius: 30px;

display: inline-block;

transition-duration: 200ms;

font-family: "Droid Sans", serif;
font-weight: bolder;
}

.nav-item-link:hover {
transition-duration: 200ms;

color: white;
background-color: #ff006a;
}
8 changes: 8 additions & 0 deletions assets/img/pagine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/img/pagine_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/img/symboltics_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/img/title.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions data/footer.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[copyright]
owner = "Symboltics"
date = "2024"
license = "Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply."

[logo]
src = "/assets/img/symboltics_white.svg"
height = 40

[[lists]]
title = "About Symboltics"
links = [
{ name = "Vision", link = "" },
{ name = "Mission", link = "" },
{ name = "Where we go", link = "" },
{ name = "Where we come", link = "" },
]

[[lists]]
title = "Infrastructure"
links = [
{ name = "LangVM", link = "https://github.com/langvm/" },
{ name = "Symonarch", link = "https://github.com/symonarch/" },
{ name = "HyperArchy", link = "https://github.com/hyperarchy/" },
{ name = "Web Pagine", link = "https://github.com/webpagine/" },
]

[[lists]]
title = "Services"
links = [
{ name = "Modularis", link = "https://github.com/symboltics/modularis/" },
]

[[media.list]]
logo = "github"
link = "https://github.com/jellyterra"

[[media.list]]
logo = "x"
link = "https://x.com/jellyterra"
1 change: 1 addition & 0 deletions data/head.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
icon = "https://avatars.githubusercontent.com/u/168826426"
11 changes: 11 additions & 0 deletions data/header.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[nav.items]]
name = "Documentation"
link = "/docs/"

[[nav.items]]
name = "Repositories"
link = "https://github.com/webpagine"

[nav.logo]
src = "/assets/img/pagine.svg"
height = 50
14 changes: 14 additions & 0 deletions index.html.pagine
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[templates]
header = "/templates/header.gohtml"
footer = "/templates/footer.gohtml"
head = "/templates/head.gohtml"
main = "/templates/mainpage.gohtml"

[include]
header = [ "/data/header.toml" ]
footer = [ "/data/footer.toml" ]
head = [ "/data/head.toml" ]

[define.main]
lang = "en"
title = "Pagine - Web Generator"
1 change: 1 addition & 0 deletions pagine.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore = [ "/.git*", "/*.toml", "/templates/*" ]
15 changes: 15 additions & 0 deletions templates/404.gohtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<html lang="en">
<head>
<title>Page not found!</title>
{{ .templates.head }}
</head>
<body>
{{ .templates.header }}
<div style="min-height: 100%; text-align: center">
<div style="block-size: 40%"></div>
<span style="font-size: 400%">404</span><br/>
<span style="font-size: 200%">Page not found.</span>
</div>
{{ .templates.footer }}
</body>
</html>
Loading

0 comments on commit 22fe023

Please sign in to comment.