Skip to content

Commit 4dade97

Browse files
authored
feat: major rewrite with tailwind (#29)
* feat: started major rewrite with tailwind * feat: completed major rewrite with tailwind * fix: cleanup after tailwind refactor
1 parent 11eaeb0 commit 4dade97

File tree

10 files changed

+285
-298
lines changed

10 files changed

+285
-298
lines changed

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
node_modules
2+
.DS_Store
3+
4+
# cache
5+
.*cache
6+
7+
# built files
28
*.html
3-
css/
49
*.css
510
*.css.map
6-
.sass-cache/
711
build*
8-
.DS_Store

index.pug

Lines changed: 128 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -6,115 +6,151 @@ html
66
include /templates/analytics-superuserlabs.pug
77

88
body
9-
+layout
9+
div.flex.flex-col.min-h-screen.justify-between
1010
include /templates/navbar.pug
1111

12-
main.mdl-layout__content
13-
+cover('url("/media/tty.gif") 400px', style="padding: 8em 0 8em 0;")
14-
+text('div', 'text-center', 'white')
12+
main
13+
+section.bg-teal-950.text-white
14+
div.text-center.h-96.flex.flex-col.justify-center
1515
div
16-
+typo('div', 'display-1')
16+
div.text-4xl
1717
| Turning you into a
18-
+typo('div', 'display-4') Superuser
19-
div(style='padding-top: 20px;')
20-
| Superuser Labs is building #[b(style="color: rgb(255,171,64)") free and open-source software] that empowers users.
18+
div.text-9xl Superuser
19+
div.pt-10
20+
| We build #[b(class="text-yellow-500") free and open-source software] that empowers users.
2121

22-
+section
23-
+cell(12)
22+
+section.bg-gray-100.py-10
23+
div.max-w-4xl.mx-auto
2424
p
25-
+typo('div', 'display-2') About us
25+
div.text-4xl.mb-4.text-center About us
2626
div
27-
p
28-
| We are a group of developers who are passionate about open-source software and empowering users.
29-
| Originally based in #[b(style="color: #05F") 🇸🇪 Sweden], we have been active since 2017, and have experience working with a wide range of technologies in a range of fields,
27+
p.mb-4
28+
| We are a small team of developers and researchers who are passionate about free and open-source software, and we are building such software to empower users (like you!).
29+
p.mb-4
30+
| Originally based in #[span(class="text-blue-950") 🇸🇪 Sweden], we have been active since 2017, and have experience working with technologies in a wide range of fields,
3031
| including full-stack development, machine learning, algorithmic trading, smart contracts, and decentralized systems.
31-
p
32-
| We build open-source software, and offer consulting services in the fields of software development, machine learning, blockchain technology, and computational neuroscience.
32+
p.mb-4
33+
| We also offer consulting services in the fields of software development, machine learning, blockchain technology, and computational neuroscience.
3334

34-
+section
35-
+cell(12)
36-
+typo('div', 'display-2') Our projects
35+
+section.max-w-4xl.mx-auto.py-10
36+
mixin project(name, imgname)
37+
div.flex.mb-10
38+
// set width to fix image size
39+
div.w-32.flex-shrink-0
40+
img.w-32(src=`/media/${imgname}`)
41+
div.ml-10
42+
h3.text-3xl.mb-2= name
43+
div&attributes(attributes)
44+
block
45+
46+
div.text-4xl.mb-10.text-center Our projects
3747

38-
+cell(12)
39-
div(style="display: flex; margin-top: 2em;")
40-
div(style="min-width: 14em; display: flex; align-items: center; justify-content: center")
41-
img(src="/media/activitywatch-logo.png" style="width: 8em;")
42-
div(style="flex-grow: 1")
43-
h3 ActivityWatch
44-
p
45-
| The world's best free and open-source automated time-tracker.
46-
br
47-
| Cross-platform, local-first, extensible, and secure.
48+
+project("ActivityWatch", "activitywatch-logo.png").text-sm
49+
p
50+
| The world's best free and open-source automated time-tracker.
51+
br
52+
| Cross-platform, local-first, extensible, and secure.
4853

49-
+button("https://github.com/ActivityWatch/activitywatch/releases", style="background-color: #009624").mdl-button--colored.mdl-button--raised
50-
| #[i.fas.fa-download] Download
51-
+button("https://github.com/ActivityWatch/activitywatch/")
52-
| #[i.fab.fa-github] GitHub
53-
+button("https://activitywatch.net/")
54-
| More info
54+
div.flex.text-sm.py-4
55+
+button.bg-green-600.border-green-600.text-white(href="https://activitywatch.net/downloads/", class='hover:bg-green-700')
56+
| #[i.fas.fa-download.mr-1] Downloads
57+
+button(href="https://activitywatch.net/")
58+
| #[i.fas.fa-globe] Website
59+
+button.border-gray-300(href="https://github.com/ActivityWatch/activitywatch/")
60+
| #[i.fab.fa-github] GitHub
61+
+button(href="https://docs.activitywatch.net/")
62+
| #[i.fas.fa-book] Docs
5563

56-
+cell(12)
57-
div(style="display: flex; margin-top: 2em")
58-
div(style="min-width: 14em; display: flex; align-items: center; justify-content: center")
59-
img(src="/media/thankful-logo-512.png" style="width: 8em;")
60-
div(style="flex-grow: 1")
61-
h3 Thankful
62-
p(style="margin-bottom: 0.5em") Donate crypto directly to every content creator that you like. Automatically and without middlemen.
63-
p.mdl-color-text--grey
64-
| #[b Note:] Thankful was discontinued in 2019. We've talked about reviving it, but it's not a priority.
65-
// TODO: Change URL to actual website once fixed
66-
//+button("https://github.com/SuperuserLabs/thankful", style="background-color: #009624").mdl-button--colored.mdl-button--raised
67-
| #[i.fas.fa-download] Get the extension
68-
+button("https://github.com/SuperuserLabs/thankful")
69-
| #[i.fab.fa-github] GitHub
70-
+button("https://superuserlabs.org/thankful/")
71-
| More info
64+
+project("gptme", "gptme-logo.png").text-sm
65+
p
66+
| A chat-CLI for conveniently interacting with LLMs in your terminal, similar to ChatGPT's "Advanced Data Analysis".
67+
| Has access to tools to run code and modify files on the host machine, to speed up your workflow.
68+
div.flex.text-sm.py-4
69+
+button(href="https://github.com/ErikBjare/gptme")
70+
| #[i.fab.fa-github] GitHub
71+
+button(href="https://erik.bjareholt.com/gptme/docs/")
72+
| #[i.fas.fa-book] Docs
7273

73-
+cell(12)
74-
div(style="display: flex; margin-top: 2em")
75-
div(style="min-width: 14em; display: flex; align-items: center; justify-content: center")
76-
img(src="/media/uniswap-python.png" style="width: 8em;")
77-
div(style="flex-grow: 1")
78-
h3 uniswap-python
79-
p
80-
| The unofficial Python library for Uniswap. Funded by #[a(href="https://bounties.gitcoin.co/grants/2631/uniswap-python") Gitcoin] and the Uniswap Grants Program.
81-
+button("https://github.com/uniswap-python/uniswap-python")
82-
| #[i.fab.fa-github] GitHub
74+
+project("Thankful", "thankful-logo.png").text-sm
75+
p.mb-2.text-sm Donate crypto directly to every content creator that you like. Automatically and without middlemen.
76+
p.text-gray-500
77+
| #[b Note:] Thankful was discontinued in 2019. We've talked about reviving it, but it's not a priority.
78+
// TODO: Change URL to actual website once fixed
79+
//+button(href="https://github.com/SuperuserLabs/thankful", class="bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded")
80+
| #[i.fas.fa-download] Get the extension
81+
div.flex.text-sm.py-4
82+
+button(href="https://superuserlabs.org/thankful/")
83+
| #[i.fas.fa-globe] Website
84+
+button(href="https://github.com/SuperuserLabs/thankful")
85+
| #[i.fab.fa-github] GitHub
8386

84-
//+section.mdl-color--grey-800.mdl-color-text--white
85-
div(style="display: flex")
86-
div(style="min-width: 14em; display: flex; align-items: center; justify-content: center")
87-
+fa('donate', 'fas', 'amber')
88-
div(style="flex-grow: 1")
87+
+project("uniswap-python", "uniswap-python.png").text-sm
88+
p
89+
| The unofficial Python library for Uniswap. Funded by #[a(href="https://bounties.gitcoin.co/grants/2631/uniswap-python") Gitcoin] and the Uniswap Grants Program.
90+
div.flex.py-4
91+
+button(href="https://github.com/uniswap-python/uniswap-python")
92+
| #[i.fab.fa-github] GitHub
93+
+button(href="https://uniswap-python.com/")
94+
| #[i.fas.fa-book] Docs
95+
96+
//+section.bg-gray-800.text-white
97+
div(class="flex")
98+
div(class="min-w-56 flex items-center justify-center")
99+
+fa('donate', 'fas', 'text-yellow-500')
100+
div(class="flex-grow")
89101
h2 Support us!
90102
p We rely on donations to keep our work going, keep an eye on this space for donations.
91103
92-
+section.mdl-color--grey-800.mdl-color-text--white
93-
+cell(12)
94-
p
95-
+typo('div', 'display-2') History
96-
ul
97-
li 2014 - Erik starts working on ActivityWatch
98-
li 2017 - Superuser Labs was born, with Thankful as its initial product.
99-
li 2019 - Thankful folds, ActivityWatch becomes the main focus again.
100-
li 2021 - ActivityWatch getting adopted by researchers.
101-
li 2022 - Superuser Labs formally incorporates as "Superuser Labs Lund AB"
102-
li 2023 - First consulting customer: University of Ghent
104+
div.bg-gray-800.text-white.py-10
105+
div.w-100.max-w-6xl.mx-auto
106+
div.container.mx-auto.px-6.py-10
107+
div.flex.flex-col.items-center
108+
div.text-4xl.mb-10 History
109+
ul.timeline
110+
li.border-l-2.border-gray-200.pl-4.pb-4
111+
p.font-bold 2014
112+
p Erik starts working on ActivityWatch
113+
li.border-l-2.border-gray-200.pl-4.pb-4
114+
p.font-bold 2017
115+
p Superuser Labs was founded, with Thankful as its initial product.
116+
li.border-l-2.border-gray-200.pl-4.pb-4
117+
p.font-bold 2019
118+
p Thankful folds, ActivityWatch becomes the main focus.
119+
li.border-l-2.border-gray-200.pl-4.pb-4
120+
p.font-bold 2021
121+
p ActivityWatch getting adopted by researchers.
122+
li.border-l-2.border-gray-200.pl-4.pb-4
123+
p.font-bold 2022
124+
p Superuser Labs formally incorporates as "Superuser Labs Lund AB"
125+
li.border-l-2.border-gray-200.pl-4.pb-4
126+
p.font-bold 2023
127+
p First consulting client: University of Ghent
103128

104-
+section
105-
+cell(12)
106-
h2.text-center Team
107-
+teammember("Erik Bjäreholt", "erik.jpg", "CEO, Developer", github="http://github.com/ErikBjare", linkedin="https://www.linkedin.com/in/erikbjareholt/")
108-
+teammember("Johan Bjäreholt", "johan.png", "Developer", github="https://github.com/johan-bjareholt", linkedin="https://www.linkedin.com/in/johanbjareholt/")
129+
+section.p-10
130+
h2.text-center.text-4xl.mb-10 Team
131+
div.grid.grid-cols-12.gap-10
132+
div.col-span-6.col-start-1(class="lg:col-span-3 lg:col-start-4")
133+
+teammember("Erik Bjäreholt", "erik.jpg", "CEO, Developer", github="http://github.com/ErikBjare", linkedin="https://www.linkedin.com/in/erikbjareholt/")
134+
div.col-span-6(class="lg:col-span-3")
135+
+teammember("Johan Bjäreholt", "johan.png", "Developer", github="https://github.com/johan-bjareholt", linkedin="https://www.linkedin.com/in/johanbjareholt/")
109136

110-
+section
111-
+cell(12)
112-
h2.text-center Past
113-
+teammember("Johannes Ahnlide", "johannes.jpg", "Developer", github="https://github.com/ahnlabb")
114-
+teammember("Jacob Karlsson", "jacob.jpg", "Developer", github="https://github.com/powersource", linkedin="https://www.linkedin.com/in/jacob-karlsson-6a483bb1/")
115-
+teammember("Patrik Laurell", "patrik.jpg", "Developer", github="https://github.com/patrik-laurell", linkedin="https://www.linkedin.com/in/patrik-laurell-ba5b306b/")
116-
+teammember("Valthor Halldórsson", "valthor.jpg", "Developer", github="https://github.com/vlthr", linkedin="https://www.linkedin.com/in/valthor-halldorsson-002aaa13a/")
117-
+teammember("Dwight Lidman", "dwight.jpg", "Developer", github="https://github.com/dwilid", linkedin="https://www.linkedin.com/in/dwight-lidman/", image_style="background-position-y: 10%")
118-
+teammember("Michael Young", "", "Developer", github="https://github.com/Miyou", linkedin="https://www.linkedin.com/in/michael-young-522148142/")
137+
div.w-full.bg-gray-800.text-white.p-10.pb-20
138+
div(class="xl:w-3/4").mx-auto.text-sm
139+
h2.text-center.text-3xl.mb-10 Past team members
140+
div.grid.grid-cols-12.gap-10
141+
div.col-span-2(class="md:col-span-3")
142+
+teammember("Johannes Ahnlide", "johannes.jpg", "Developer", github="https://github.com/ahnlabb")
143+
div.col-span-2(class="md:col-span-3")
144+
+teammember("Jacob Karlsson", "jacob.jpg", "Developer", github="https://github.com/powersource", linkedin="https://www.linkedin.com/in/jacob-karlsson-6a483bb1/")
145+
div.col-span-2(class="md:col-span-3")
146+
+teammember("Patrik Laurell", "patrik.jpg", "Developer", github="https://github.com/patrik-laurell", linkedin="https://www.linkedin.com/in/patrik-laurell-ba5b306b/")
147+
div.col-span-2(class="md:col-span-3")
148+
+teammember("Valthor Halldórsson", "valthor.jpg", "Developer", github="https://github.com/vlthr", linkedin="https://www.linkedin.com/in/valthor-halldorsson-002aaa13a/")
149+
div.col-span-2(class="md:col-span-3")
150+
+teammember("Dwight Lidman", "dwight.jpg", "Developer", github="https://github.com/dwilid", linkedin="https://www.linkedin.com/in/dwight-lidman/", image_style="background-position-y: 10%")
151+
div.col-span-2(class="md:col-span-3")
152+
+teammember("Michael Young", "michael.jpg", "Developer", github="https://github.com/Miyou", linkedin="https://www.linkedin.com/in/michael-young-522148142/")
119153

120-
+footer
154+
+section
155+
.mx-auto
156+
+footer

media/gptme-logo.png

184 KB
Loading

media/michael.jpg

26.1 KB
Loading

templates/footer.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
+section("2em").bg-dark.text-white
2-
p.w-100(style="margin: 0")
1+
+section("8").bg-dark.text-white
2+
p.w-full(style="m-0")
33
b Made with #[i.fas.fa-heart(style="color: red")] by Superuser Labs

templates/head-includes.pug

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@ meta(name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit
44
// Favicon
55
link(rel="shortcut icon" href="/media/favicon.ico" type="image/x-icon")
66

7-
// MDL
8-
link(rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons")
9-
// Possible values for primary: deep_orange, red, pink, purple, deep_purple, indigo, blue, light_blue, cyan, teal, green, light_green, lime, yellow, amber, orange, brown, blue_grey, grey
10-
- var primary = 'deep_purple';
11-
// Possible values for secondary: deep_orange, red, pink, purple, deep_purple, indigo, blue, light_blue, cyan, teal, green, light_green, lime, yellow, amber, orange
12-
- var secondary = 'orange';
13-
link(rel="stylesheet" href=`https://code.getmdl.io/1.3.0/material.${primary}-${secondary}.min.css`)
14-
script(defer src="https://code.getmdl.io/1.3.0/material.min.js")
7+
// Tailwind
8+
script(src="https://cdn.tailwindcss.com")
9+
|<script>
10+
| tailwind.config = {
11+
| theme: {
12+
| container: {
13+
| center: true,
14+
| },
15+
| extend: {
16+
| colors: {
17+
| clifford: '#da373d',
18+
| }
19+
| }
20+
| }
21+
| };
22+
|</script>
1523

1624
// Font Awesome
1725
link(rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous")
1826

27+
// Custom CSS
1928
link(rel="stylesheet" href="/index.css")
2029

21-
// Roboto
30+
// Fonts (Roboto & Varela Round)
2231
link(rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css")
32+
link(rel="stylesheet" href="http://fonts.googleapis.com/css?family=Varela+Round" type="text/css")

0 commit comments

Comments
 (0)