165 lines
5.5 KiB
HTML
165 lines
5.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>FLUG Calendar</title>
|
|
<style>
|
|
body {
|
|
font-family:
|
|
system-ui,
|
|
-apple-system,
|
|
sans-serif;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
line-height: 1.5;
|
|
background: #0d1117;
|
|
color: #e6edf3;
|
|
}
|
|
h1 {
|
|
border-bottom: 2px solid #21262d;
|
|
padding-bottom: 0.3em;
|
|
}
|
|
.event {
|
|
padding: 1rem;
|
|
border: 1px solid #21262d;
|
|
border-radius: 6px;
|
|
margin-bottom: 1rem;
|
|
background: #161b22;
|
|
}
|
|
.event-title {
|
|
font-weight: bold;
|
|
font-size: 1.2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.event-details {
|
|
color: #8b949e;
|
|
font-size: 0.9rem;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 0.5rem 1rem;
|
|
background-color: #1f6feb;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-weight: bold;
|
|
margin-top: 1rem;
|
|
}
|
|
.btn:hover {
|
|
background-color: #388bfd;
|
|
}
|
|
a.back {
|
|
display: block;
|
|
margin-bottom: 1rem;
|
|
color: #58a6ff;
|
|
text-decoration: none;
|
|
}
|
|
.google-sub {
|
|
margin-top: 2rem;
|
|
padding: 1.5rem;
|
|
background-color: #161b22;
|
|
border: 1px solid #21262d;
|
|
border-radius: 6px;
|
|
}
|
|
.google-sub h3 {
|
|
margin-top: 0;
|
|
font-size: 1.1rem;
|
|
}
|
|
.copy-box {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
background: #0d1117;
|
|
padding: 0.5rem;
|
|
border: 1px solid #30363d;
|
|
border-radius: 4px;
|
|
margin: 1rem 0;
|
|
}
|
|
.copy-box code {
|
|
flex-grow: 1;
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: #e6edf3;
|
|
}
|
|
.btn-copy {
|
|
padding: 0.3rem 0.6rem;
|
|
background-color: #21262d;
|
|
border: 1px solid #30363d;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
font-weight: bold;
|
|
color: #e6edf3;
|
|
}
|
|
.btn-copy:hover {
|
|
background-color: #30363d;
|
|
}
|
|
.hint {
|
|
font-size: 0.85rem;
|
|
color: #8b949e;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a href="/index.html" class="back">← Back to Home</a>
|
|
<h1>FLUG Calendar</h1>
|
|
|
|
<div class="event">
|
|
<div class="event-title">Next FLUG Meeting</div>
|
|
<div class="event-details">
|
|
<strong>Date:</strong> May 29, 2026<br />
|
|
<strong>Time:</strong> 8:30pm PT<br />
|
|
<strong>Location:</strong> Google CRSM1240, Sunnyvale CA 94089
|
|
</div>
|
|
<div class="btn-group">
|
|
<a href="/calendar/events.ics" class="btn">Download ICS</a>
|
|
<a
|
|
href="https://www.google.com/calendar/render?action=TEMPLATE&text=FLUG+Meeting&dates=20260530T033000Z/20260530T053000Z&details=FLUG+Meeting&location=Google+CRSM1240%2C+Sunnyvale+CA+94089"
|
|
class="btn btn-google"
|
|
>Add to Google Calendar</a
|
|
>
|
|
<a href="#" id="subscribe-btn" class="btn"
|
|
>Subscribe (Thunderbird/Evolution/Merkuro/Calendar)</a
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="google-sub">
|
|
<h3>Subscribe via Google Calendar</h3>
|
|
<p>
|
|
Google Calendar requires you to manually add the calendar URL:
|
|
</p>
|
|
<div class="copy-box">
|
|
<code id="cal-url"></code>
|
|
<button id="copy-url-btn" class="btn-copy">Copy URL</button>
|
|
</div>
|
|
<p class="hint">
|
|
Then go to Google Calendar →
|
|
<strong>Other calendars (+)</strong> →
|
|
<strong>From URL</strong> and paste the link.
|
|
</p>
|
|
</div>
|
|
|
|
<script>
|
|
const fullUrl = window.location.origin + "/calendar/events.ics";
|
|
document.getElementById("subscribe-btn").href =
|
|
"webcal://" + window.location.host + "/calendar/events.ics";
|
|
document.getElementById("cal-url").textContent = fullUrl;
|
|
|
|
document.getElementById("copy-url-btn").onclick = function () {
|
|
navigator.clipboard.writeText(fullUrl).then(() => {
|
|
this.textContent = "Copied!";
|
|
setTimeout(() => {
|
|
this.textContent = "Copy URL";
|
|
}, 2000);
|
|
});
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|