commit 53d3703f95cce3ae898da19539c9fe9903ea26d4 Author: chris bell Date: Fri Nov 20 09:46:49 2026 -0600 Init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ec0b9e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.continue/rules +/.direnv +/.envrc +/.old diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..2cfdc55 Binary files /dev/null and b/assets/logo.png differ diff --git a/docs/design.md b/docs/design.md new file mode 100644 index 0000000..497f721 --- /dev/null +++ b/docs/design.md @@ -0,0 +1,77 @@ +# Alabama Progress - New Website + +## Design + +- Use the old site as inspiration: [https://alabamaprogress.org](https://alabamaprogress.org) +- A basic layout that outlines information about the Alabama Progress community. +- A navy and gold color scheme + +## Stack + +- HTML +- CSS +- Vanilla JavaScript (if possible) + +## Content + +### Logo + +![Logo](../assets/logo.png) + +### Tagline + +Progress begins with you. + +### Description + +Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current social and political issues, and also connecting, organizing, and collaborating on political actions of consequence primarily in our local communities. + +### Mission Statement + +Empower Alabamians to create positive change. + +Our mission is to empower Alabamians to create positive change and pursue forward progress by creating connections, building coalitions, encouraging active participation in processes both political and non-political, and dissolving the barrier between those who seek to represent and the represented. + +### Vision Statement + +A strong and victorious future of progress. + +Our vision is to see an Alabama working towards a strong and victorious future of progress for the people and places we call home. + +### Values + +- Pro Racial Justice +- Pro Union +- Pro Human Rights, including LGBTQ+ and Women’s Rights +- Pro Marijuana Legalization +- Pro Prison Reform +- Pro Public Transit +- Pro Environment +- Pro Medicare Expansion +- Pro Voting Reform +- Pro Voting Access Expansion +- Pro Direct Ballot Access +- Pro Privacy +- Pro Homesteader / Unhoused Rights +- Anti Death Penalty +- Anti Censorship / Government Overreach + +### Getting involved + +Ready to get involved? + +If you’re interested in becoming a part of our community, reach out and say hello. We’d love to have you. + +We run a private discord community for our members. You can request to join by filling out this application form below: + +-> Have an application form that asks for the user's name, discord username, and a brief description of their interest in joining the community that will send an email to AlabamaProgressOrg@gmail.com or send a discord message to a discord server channel somehow, maybe through the custom discord bot. + +### Community + +#### Events + +This section should include a calendar of community events. + +### Blog + +This section should be a blog from the administrators including news, etc. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d20625a --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1794840529, + "narHash": "sha256-ySrWnmZB5UsZTYGHHnBjllT05O5iFjElCRS+mabtfP0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e21fec321d73511849707a7585e4ea155ee4bf40", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..4f267fb --- /dev/null +++ b/flake.nix @@ -0,0 +1,68 @@ +{ + description = "Simple vanilla web dev shell: VSCodium + HTML/JS extensions + Python http.server"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + + outputs = { self, nixpkgs }: + let + systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; + forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); + in + { + devShells = forAllSystems (pkgs: + let + lib = pkgs.lib; + + # Extensions as attribute paths under pkgs.vscode-extensions. + # Any that don't exist in your nixpkgs revision are silently skipped + # instead of breaking the whole shell. + wanted = [ + [ "esbenp" "prettier-vscode" ] # formatter + [ "dbaeumer" "vscode-eslint" ] # JS linting + [ "ritwickdey" "liveserver" ] # live reload server + [ "formulahendry" "auto-rename-tag" ] # rename paired HTML tags + [ "formulahendry" "auto-close-tag" ] # auto-close HTML tags + [ "christian-kohler" "path-intellisense" ] # file path autocomplete + [ "usernamehw" "errorlens" ] # inline error messages + [ "editorconfig" "editorconfig" ] # .editorconfig support + [ "bradlc" "vscode-tailwindcss" ] # harmless if unused + [ "ms-python" "python" ] # Python support + [ "continue" "continue" ] # local line-completion + ]; + + extensions = lib.filter (e: e != null) + (map (path: lib.attrByPath path null pkgs.vscode-extensions) wanted); + + codium = pkgs.vscode-with-extensions.override { + vscode = pkgs.vscodium; + vscodeExtensions = extensions; + }; + in + { + default = pkgs.mkShell { + name = "web-dev"; + + packages = [ + codium + pkgs.python3 # `python -m http.server` for static serving + pkgs.nodejs # optional: npm, eslint, prettier CLIs, etc. + ]; + + shellHook = '' + # Serve current directory: `serve` or `serve 3000` + serve() { + local port="''${1:-8000}" + echo "Serving $(pwd) at http://localhost:$port" + python3 -m http.server "$port" + } + + echo "Web dev shell ready." + echo " codium . - open the editor in this directory" + echo " serve [p] - start a static server (default port 8000)" + ''; + }; + }); + }; +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..f53e258 --- /dev/null +++ b/index.html @@ -0,0 +1,41 @@ + + + + + + + Alabama Progress + + + + + + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/pages/about.html b/pages/about.html new file mode 100644 index 0000000..871c414 --- /dev/null +++ b/pages/about.html @@ -0,0 +1,50 @@ +

About Alabama Progress

+

Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current + social and political issues, and also connecting, organizing, and collaborating on political actions of consequence + primarily in our local communities.

+ +
+

Our mission

+
+

Empower Alabamians to create positive change.

+

Our mission is to empower Alabamians to create positive change and pursue forward progress by creating + connections, building coalitions, encouraging active participation in processes both political and non-political, + and dissolving the barrier between those who seek to represent and the represented.

+
+
+ +
+

Our vision

+
+

A strong and victorious future of progress.

+

Our vision is to see an Alabama working towards a strong and victorious future of progress for the people and + places we call home.

+
+
+ +
+

Our values

+ +
+ +
+

Ready to get involved?

+

Reach out and say hello. We’d love to have you.

+

Request to join

+
\ No newline at end of file diff --git a/pages/blog.html b/pages/blog.html new file mode 100644 index 0000000..fe51ae8 --- /dev/null +++ b/pages/blog.html @@ -0,0 +1,7 @@ +
+

Blog

+

News and updates from the Alabama Progress administrators.

+
+
+

Loading posts…

+
\ No newline at end of file diff --git a/pages/community.html b/pages/community.html new file mode 100644 index 0000000..9a5039d --- /dev/null +++ b/pages/community.html @@ -0,0 +1,36 @@ +

Community

+

Members talk, plan, and organize together in our private Discord. Want in? Request to + join.

+ +
+

Events

+ +
+
+ +

+ + +
+ + + + + + + + + + + + + + +
SunMonTueWedThuFriSat
+ +
+
+ +

Upcoming

+
    +
    \ No newline at end of file diff --git a/pages/contact.html b/pages/contact.html new file mode 100644 index 0000000..e69de29 diff --git a/pages/home.html b/pages/home.html new file mode 100644 index 0000000..7b15401 --- /dev/null +++ b/pages/home.html @@ -0,0 +1,31 @@ +
    +

    Progress begins with you.

    +

    Alabama Progress is a community of like-minded Alabamians who enjoy discussing and debating current + social and political issues, and also connecting, organizing, and collaborating on political actions of consequence + primarily in our local communities.

    +

    + Join the community + Learn more +

    +
    + +
    +

    Our mission

    +
    +

    Empower Alabamians to create positive change.

    +
    +
    + +
    +

    Our vision

    +
    +

    A strong and victorious future of progress.

    +

    Read more about who we are

    +
    +
    + +
    +

    Ready to get involved?

    +

    If you’re interested in becoming a part of our community, reach out and say hello. We’d love to have you.

    +

    Request to join

    +
    \ No newline at end of file diff --git a/pages/join.html b/pages/join.html new file mode 100644 index 0000000..c8ee429 --- /dev/null +++ b/pages/join.html @@ -0,0 +1,32 @@ +

    Ready to get involved?

    +

    If you’re interested in becoming a part of our community, reach out and say hello. We’d love to have + you.

    +

    We run a private Discord community for our members. You can request to join by filling out the application below.

    + +
    +
    + + +
    + +
    + + +
    + +
    + +

    A sentence or two about your interest is plenty.

    + +
    + + + + +

    +
    + +

    Prefer email? Write to AlabamaProgressOrg@gmail.com.

    \ No newline at end of file diff --git a/scripts/app.js b/scripts/app.js new file mode 100644 index 0000000..bea0387 --- /dev/null +++ b/scripts/app.js @@ -0,0 +1,52 @@ +const content = document.getElementById('page-content'); +const loader = document.getElementById('loader'); + +// Whitelist of pages: name -> file (and title) +const routes = { + home: { url: 'pages/home.html', title: 'Home' }, + about: { url: 'pages/about.html', title: 'About' }, + community: { url: 'pages/community.html', title: 'Community' }, + blog: { url: 'pages/blog.html', title: 'Blog' }, + join: { url: 'pages/join.html', title: 'Join' }, +}; + +let controller; + +async function loadPage() { + const name = location.hash.slice(1) || 'home'; + + document.querySelectorAll('nav a').forEach(a => { + if (a.getAttribute('href') === `#${name}`) a.setAttribute('aria-current', 'page'); + else a.removeAttribute('aria-current'); + }); + + const route = routes[name]; + + if (!route) { + content.innerHTML = '

    Page not found

    '; + return; + } + + // Cancel the previous request if the user clicks quickly + controller?.abort(); + controller = new AbortController(); + + loader.hidden = false; + try { + const res = await fetch(route.url, { signal: controller.signal }); + if (!res.ok) throw new Error(`HTTP ${res.status}`); + + content.innerHTML = await res.text(); + document.title = `${route.title} | Alabama Progress`; + content.focus(); + } catch (err) { + if (err.name === 'AbortError') return; // superseded by a newer request + content.innerHTML = '

    Sorry, that page failed to load.

    '; + console.error(err); + } finally { + loader.hidden = true; + } +} + +window.addEventListener('hashchange', loadPage); +loadPage(); \ No newline at end of file diff --git a/styles/main.css b/styles/main.css new file mode 100644 index 0000000..5767da8 --- /dev/null +++ b/styles/main.css @@ -0,0 +1,282 @@ +:root { + --blue: #1b3f73; + --ink: #14233a; + --gold: #f0b323; + --paper: #f5f6f4; + --white: #ffffff; + --rule: #c5cbd3; + --muted: #46546a; + + --measure: 68rem; + /* max content width */ + --gutter: 1.25rem; + /* side padding */ + + --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + --font-sign: "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif; +} + +/* ---------- Reset-ish ---------- */ +*, +*::before, +*::after { + box-sizing: border-box; +} + +[hidden] { + display: none !important; +} + +html { + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; + min-height: 100dvh; + display: flex; + flex-direction: column; + background: var(--paper); + color: var(--ink); + font-family: var(--font-body); + font-size: 1.0625rem; + line-height: 1.6; +} + +img { + max-width: 100%; + height: auto; +} + +/* Lets full-width bars keep their text aligned to the content column */ +.site-header, +.site-footer, +main { + padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2)); +} + +/* ---------- Skip link ---------- */ +.skip-link { + position: absolute; + left: var(--gutter); + top: -4rem; + z-index: 10; + padding: 0.6rem 1rem; + background: var(--gold); + color: var(--ink); + font-weight: 700; +} + +.skip-link:focus { + top: 0.5rem; +} + +/* ---------- Header ---------- */ +.site-header { + background: var(--blue); + color: var(--white); + border-bottom: 6px solid var(--gold); + padding-block: 1rem 0; + display: flex; + flex-wrap: wrap; + align-items: flex-end; + justify-content: space-between; + gap: 0.5rem 2rem; +} + +.masthead { + display: flex; + align-items: center; + gap: 0.9rem; + padding-bottom: 0.9rem; +} + +#header-icon { + width: 56px; + height: 56px; + object-fit: contain; + background: var(--white); + padding: 4px; + border-radius: 4px; + flex: none; +} + +.site-header h1 { + margin: 0; + font-family: var(--font-sign); + font-weight: 900; + font-size: clamp(1.5rem, 4.5vw, 2.25rem); + line-height: 1; + letter-spacing: -0.02em; +} + +/* ---------- Nav ---------- */ +.site-header nav { + display: flex; + flex-wrap: wrap; + gap: 0.25rem; +} + +.site-header nav a { + display: block; + padding: 0.7rem 1rem 0.8rem; + color: var(--white); + font-weight: 700; + text-decoration: none; + border-bottom: 4px solid transparent; + margin-bottom: -6px; + /* sits on top of the gold rule */ +} + +.site-header nav a:hover { + border-bottom-color: var(--gold); +} + +/* Set by app.js for the current page */ +.site-header nav a[aria-current="page"] { + background: var(--gold); + color: var(--ink); + border-bottom-color: var(--gold); +} + +/* ---------- Loader ---------- */ +#loader { + padding: 0.6rem var(--gutter); + background: var(--ink); + color: var(--white); + font-weight: 600; + font-size: 0.95rem; + border-left: 8px solid var(--gold); +} + +/* ---------- Main content area ---------- */ +main { + flex: 1; + padding-block: 2.5rem 4rem; +} + +main:focus { + outline: none; +} + +/* Baseline styles so loaded pages look right without extra work */ +main>* { + max-width: 44rem; +} + +main>.wide { + max-width: none; +} + +main h2, +main h3 { + font-family: var(--font-sign); + font-weight: 900; + line-height: 1.1; + letter-spacing: -0.015em; + color: var(--blue); +} + +main h2 { + font-size: clamp(1.75rem, 5vw, 2.75rem); + margin: 0 0 1rem; +} + +main h3 { + font-size: 1.35rem; + margin: 2.25rem 0 0.5rem; +} + +main p { + margin: 0 0 1.1rem; +} + +main a { + color: var(--blue); + text-decoration-thickness: 2px; + text-underline-offset: 0.2em; +} + +main a:hover { + background: var(--gold); + text-decoration-color: transparent; +} + +main ul { + padding-left: 1.25rem; +} + +main li { + margin-bottom: 0.35rem; +} + +/* ---------- Footer ---------- */ +.site-footer { + background: var(--ink); + color: #d8dee8; + border-top: 6px solid var(--gold); + padding-block: 1.5rem; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + gap: 0.25rem 2rem; + font-size: 0.95rem; +} + +.site-footer p { + margin: 0; +} + +.site-footer .tagline { + font-family: var(--font-sign); + font-weight: 900; + color: var(--white); +} + +/* ---------- Focus ---------- */ +:focus-visible { + outline: 3px solid var(--gold); + outline-offset: 2px; +} + +main :focus-visible { + outline-color: var(--blue); +} + +/* ---------- Small screens ---------- */ +@media (max-width: 36rem) { + .site-header { + padding-top: 0.75rem; + } + + .masthead { + padding-bottom: 0.6rem; + } + + #header-icon { + width: 44px; + height: 44px; + } + + .site-header nav { + width: 100%; + margin-inline: calc(var(--gutter) * -1); + width: calc(100% + var(--gutter) * 2); + } + + .site-header nav a { + flex: 1 1 auto; + text-align: center; + padding-inline: 0.5rem; + } + + main { + padding-block: 1.75rem 3rem; + } +} + +@media (prefers-reduced-motion: no-preference) { + .site-header nav a { + transition: border-color 0.12s; + } +} \ No newline at end of file