7 Commits

Author SHA1 Message Date
cf43cdcf22 v0.0.4
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m8s
App Image CI / Build app image (push) Successful in 57s
2025-10-27 00:29:28 -05:00
4dbf6a4ae6 traffic logging
Some checks failed
NPM Audit Check / Check NPM audit (push) Has been cancelled
App Image CI / Build app image (push) Has been cancelled
2025-10-27 00:28:54 -05:00
617cffc052 update flyers
All checks were successful
App Image CI / Build app image (push) Successful in 33s
NPM Audit Check / Check NPM audit (push) Successful in -2m8s
2025-10-24 11:25:23 -05:00
5a70c9580c move flyer
All checks were successful
App Image CI / Build app image (push) Successful in 54s
NPM Audit Check / Check NPM audit (push) Successful in -2m8s
2025-10-24 01:17:09 -05:00
ee3c200132 fix typo
Some checks failed
App Image CI / Build app image (push) Failing after -1m17s
NPM Audit Check / Check NPM audit (push) Successful in -2m8s
2025-10-24 01:13:48 -05:00
5ab4216716 add flyers 2025-10-24 01:12:56 -05:00
4a39ffd95e add calendar button
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
App Image CI / Build app image (push) Successful in 45s
2025-10-22 12:34:53 -05:00
11 changed files with 48 additions and 10 deletions

BIN
assets/flyer/flyer.pdf Normal file

Binary file not shown.

BIN
assets/flyer/flyer.psd Normal file

Binary file not shown.

BIN
assets/flyer/flyer_baw.pdf Normal file

Binary file not shown.

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "madisonlinux",
"version": "0.0.1",
"version": "0.0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "madisonlinux",
"version": "0.0.1",
"version": "0.0.4",
"license": "MIT",
"dependencies": {
"ejs": "3.1.10",

View File

@@ -1,6 +1,6 @@
{
"name": "madisonlinux",
"version": "0.0.1",
"version": "0.0.4",
"description": "Website for upcoming Linux install party in Madison WI",
"keywords": [
"web",

View File

@@ -3,7 +3,7 @@ import crypto from 'crypto';
import express from 'express';
import bodyParser from 'body-parser';
import type { Express } from 'express';
import { createEvent} from 'ics';
import { createEvent } from 'ics';
interface WebConfig {
port?: number;
@@ -56,7 +56,13 @@ class Web {
res.send('Healthy');
});
app.get('/', (_, res) => {
app.get('/', (req, res) => {
if (req.query?.['utm_medium']) {
console.log(`${req.query['utm_medium']} | ${req.headers?.['user-agent']}`);
}
else {
console.log(req.headers?.['user-agent']);
}
res.render('index', {
page: {
title: 'Madison End of 10 Install Party',
@@ -93,7 +99,7 @@ class Web {
organizer: { name: 'Cory Sanin', email: 'endof10@cory.sanin.dev' },
method: 'REQUEST'
}, (err, s) => {
if(err) {
if (err) {
console.error(err);
res.status(500).send('something went wrong.');
return;
@@ -105,6 +111,11 @@ class Web {
});
});
app.use(function (req, res, _) {
console.log(`404: ${req.url} requested by ${req.ip} "${req.headers['user-agent']}"`);
res.redirect('/');
});
this._webserver = this.app.listen(this.port, () => console.log(`madisonlinux is running on port ${this.port}`));
}

View File

@@ -62,6 +62,12 @@ img {
}
}
.btn {
padding: .4em .65em;
text-decoration: none;
border-radius: 4px;
}
.img-container {
overflow-x: auto;
max-width: 100%;

View File

@@ -4,14 +4,32 @@ body {
background: linear-gradient(90deg, rgba(19, 65, 123, 1) 0%, rgba(25, 74, 136, 1) 50%, rgba(19, 65, 123, 1) 100%);
}
a, a:link, a:visited {
a,
a:link,
a:visited {
color: #fff;
&:hover {
color: #fff3ba;
}
}
blockquote {
border-left: 5px solid #fff;
}
.btn,
a.btn {
background-color: #fff;
color: #000;
box-shadow: 0px 3px 10px 0px rgba(50, 50, 50, .65);
&:hover {
background-color: #fff3ba;
color: #000;
}
}
.nav_links {
background-color: #fff;
color: #13417B;
@@ -26,4 +44,4 @@ blockquote {
color: #fff;
}
}
}
}

View File

@@ -14,7 +14,7 @@
<link rel="canonical" href="<%= page.canonical%>"/>
<% } %>
<link rel="shortcut icon" href="/assets/svg/favicon.svg">
<link rel="stylesheet" href="/assets/css/styles.css?v4">
<link rel="stylesheet" href="/assets/css/styles.css?v5">
<script nonce="<%= cspNonce %>">
document.addEventListener("DOMContentLoaded", function() {
document.body.classList.remove('preload');

View File

@@ -51,6 +51,9 @@
<p>
Come meet us at Sector67:<br/>56 Corry St, Madison, WI 53704
</p>
<p>
<a class="btn" href="/event.ics">🗓️ Add to Calendar</a>
</p>
<p>
If you have additional questions about the event, email me at <a href="mailto:endof10@cory.sanin.dev">endof10@cory.sanin.dev</a>
</p>

View File

@@ -36,7 +36,7 @@
</p>
<h2>Gaming Focused</h2>
<p>
For gaming-focused PC's, of course most general purpose distro will do. However, there are a couple
For gaming-focused PC's, of course most general purpose distros will do. However, there are a couple
options worth your consideration.
</p>
<p>