diff --git a/build.py b/build.py index 42a95f4..ab39a00 100644 --- a/build.py +++ b/build.py @@ -7,6 +7,7 @@ from pathlib import Path import frontmatter from jinja2 import Environment, FileSystemLoader, select_autoescape +import yaml from config import NAV, SITE @@ -45,6 +46,52 @@ def build() -> None: ) write(TMP, url, html) + state = ( + yaml.safe_load((ROOT / "data" / "state.yaml").read_text(encoding="utf-8")) + or {} + ) + counties = [ + yaml.safe_load(p.read_text(encoding="utf-8")) + for p in sorted((ROOT / "data" / "counties").glob("*.yaml")) + ] + for c in counties: + c["url"] = f"/act/{c['slug']}-county/" + + map_file = STATIC / "assets" / "alabama-counties.svg" + map_svg = map_file.read_text(encoding="utf-8") if map_file.exists() else None + + write( + TMP, + "/act/", + env.get_template("act.html").render( + **common, + url="/act/", + state=state, + counties=counties, + map_svg=map_svg, + meta={ + "title": "Take Action", + "description": "Find your representatives and county, and how to contact them.", + }, + ), + ) + + county_tpl = env.get_template("county.html") + for c in counties: + write( + TMP, + c["url"], + county_tpl.render( + **common, + url=c["url"], + county=c, + meta={ + "title": f"{c['name']} County, Alabama", + "description": f"Representatives, local groups, and ways to take action in {c['name']} County, Alabama.", + }, + ), + ) + (TMP / "404.html").write_text( env.get_template("404.html").render( **common, url="/404.html", meta={"title": "Page not found", "noindex": True} diff --git a/config.py b/config.py index 0513c2f..17eae16 100644 --- a/config.py +++ b/config.py @@ -9,5 +9,6 @@ SITE = { NAV = [ ("Home", "/"), ("About", "/about/"), + ("Take Action", "/act/"), ("Join", "/join/"), ] diff --git a/data/counties/autauga.yaml b/data/counties/autauga.yaml new file mode 100644 index 0000000..b84c6ad --- /dev/null +++ b/data/counties/autauga.yaml @@ -0,0 +1,4 @@ +name: Autauga +slug: autauga +fips: '01001' +region: Central diff --git a/data/counties/baldwin.yaml b/data/counties/baldwin.yaml new file mode 100644 index 0000000..8e56208 --- /dev/null +++ b/data/counties/baldwin.yaml @@ -0,0 +1,4 @@ +name: Baldwin +slug: baldwin +fips: '01003' +region: South diff --git a/data/counties/barbour.yaml b/data/counties/barbour.yaml new file mode 100644 index 0000000..4a54f86 --- /dev/null +++ b/data/counties/barbour.yaml @@ -0,0 +1,4 @@ +name: Barbour +slug: barbour +fips: '01005' +region: South diff --git a/data/counties/bibb.yaml b/data/counties/bibb.yaml new file mode 100644 index 0000000..1a02d92 --- /dev/null +++ b/data/counties/bibb.yaml @@ -0,0 +1,4 @@ +name: Bibb +slug: bibb +fips: '01007' +region: West diff --git a/data/counties/blount.yaml b/data/counties/blount.yaml new file mode 100644 index 0000000..060f8b8 --- /dev/null +++ b/data/counties/blount.yaml @@ -0,0 +1,4 @@ +name: Blount +slug: blount +fips: 01009 +region: Central diff --git a/data/counties/bullock.yaml b/data/counties/bullock.yaml new file mode 100644 index 0000000..7326b13 --- /dev/null +++ b/data/counties/bullock.yaml @@ -0,0 +1,4 @@ +name: Bullock +slug: bullock +fips: '01011' +region: East diff --git a/data/counties/butler.yaml b/data/counties/butler.yaml new file mode 100644 index 0000000..8ebdae7 --- /dev/null +++ b/data/counties/butler.yaml @@ -0,0 +1,4 @@ +name: Butler +slug: butler +fips: '01013' +region: South diff --git a/data/counties/calhoun.yaml b/data/counties/calhoun.yaml new file mode 100644 index 0000000..49a51c7 --- /dev/null +++ b/data/counties/calhoun.yaml @@ -0,0 +1,4 @@ +name: Calhoun +slug: calhoun +fips: '01015' +region: East diff --git a/data/counties/chambers.yaml b/data/counties/chambers.yaml new file mode 100644 index 0000000..3e63288 --- /dev/null +++ b/data/counties/chambers.yaml @@ -0,0 +1,4 @@ +name: Chambers +slug: chambers +fips: '01017' +region: East diff --git a/data/counties/cherokee.yaml b/data/counties/cherokee.yaml new file mode 100644 index 0000000..c0afa93 --- /dev/null +++ b/data/counties/cherokee.yaml @@ -0,0 +1,4 @@ +name: Cherokee +slug: cherokee +fips: 01019 +region: North diff --git a/data/counties/chilton.yaml b/data/counties/chilton.yaml new file mode 100644 index 0000000..00c34b3 --- /dev/null +++ b/data/counties/chilton.yaml @@ -0,0 +1,4 @@ +name: Chilton +slug: chilton +fips: '01021' +region: Central diff --git a/data/counties/choctaw.yaml b/data/counties/choctaw.yaml new file mode 100644 index 0000000..efabec6 --- /dev/null +++ b/data/counties/choctaw.yaml @@ -0,0 +1,4 @@ +name: Choctaw +slug: choctaw +fips: '01023' +region: West diff --git a/data/counties/clarke.yaml b/data/counties/clarke.yaml new file mode 100644 index 0000000..82ef651 --- /dev/null +++ b/data/counties/clarke.yaml @@ -0,0 +1,4 @@ +name: Clarke +slug: clarke +fips: '01025' +region: South diff --git a/data/counties/clay.yaml b/data/counties/clay.yaml new file mode 100644 index 0000000..27a9cb8 --- /dev/null +++ b/data/counties/clay.yaml @@ -0,0 +1,4 @@ +name: Clay +slug: clay +fips: '01027' +region: East diff --git a/data/counties/cleburne.yaml b/data/counties/cleburne.yaml new file mode 100644 index 0000000..783d108 --- /dev/null +++ b/data/counties/cleburne.yaml @@ -0,0 +1,4 @@ +name: Cleburne +slug: cleburne +fips: 01029 +region: East diff --git a/data/counties/coffee.yaml b/data/counties/coffee.yaml new file mode 100644 index 0000000..50e8748 --- /dev/null +++ b/data/counties/coffee.yaml @@ -0,0 +1,4 @@ +name: Coffee +slug: coffee +fips: '01031' +region: South diff --git a/data/counties/colbert.yaml b/data/counties/colbert.yaml new file mode 100644 index 0000000..6839490 --- /dev/null +++ b/data/counties/colbert.yaml @@ -0,0 +1,4 @@ +name: Colbert +slug: colbert +fips: '01033' +region: North diff --git a/data/counties/conecuh.yaml b/data/counties/conecuh.yaml new file mode 100644 index 0000000..efd03af --- /dev/null +++ b/data/counties/conecuh.yaml @@ -0,0 +1,4 @@ +name: Conecuh +slug: conecuh +fips: '01035' +region: South diff --git a/data/counties/coosa.yaml b/data/counties/coosa.yaml new file mode 100644 index 0000000..2372cd0 --- /dev/null +++ b/data/counties/coosa.yaml @@ -0,0 +1,4 @@ +name: Coosa +slug: coosa +fips: '01037' +region: East diff --git a/data/counties/covington.yaml b/data/counties/covington.yaml new file mode 100644 index 0000000..1110350 --- /dev/null +++ b/data/counties/covington.yaml @@ -0,0 +1,4 @@ +name: Covington +slug: covington +fips: 01039 +region: South diff --git a/data/counties/crenshaw.yaml b/data/counties/crenshaw.yaml new file mode 100644 index 0000000..0fcda51 --- /dev/null +++ b/data/counties/crenshaw.yaml @@ -0,0 +1,4 @@ +name: Crenshaw +slug: crenshaw +fips: '01041' +region: South diff --git a/data/counties/cullman.yaml b/data/counties/cullman.yaml new file mode 100644 index 0000000..0ac588e --- /dev/null +++ b/data/counties/cullman.yaml @@ -0,0 +1,4 @@ +name: Cullman +slug: cullman +fips: '01043' +region: North diff --git a/data/counties/dale.yaml b/data/counties/dale.yaml new file mode 100644 index 0000000..7ffee21 --- /dev/null +++ b/data/counties/dale.yaml @@ -0,0 +1,4 @@ +name: Dale +slug: dale +fips: '01045' +region: South diff --git a/data/counties/dallas.yaml b/data/counties/dallas.yaml new file mode 100644 index 0000000..ea98cf1 --- /dev/null +++ b/data/counties/dallas.yaml @@ -0,0 +1,4 @@ +name: Dallas +slug: dallas +fips: '01047' +region: Central diff --git a/data/counties/dekalb.yaml b/data/counties/dekalb.yaml new file mode 100644 index 0000000..a2855ad --- /dev/null +++ b/data/counties/dekalb.yaml @@ -0,0 +1,4 @@ +name: DeKalb +slug: dekalb +fips: 01049 +region: North diff --git a/data/counties/elmore.yaml b/data/counties/elmore.yaml new file mode 100644 index 0000000..e05770c --- /dev/null +++ b/data/counties/elmore.yaml @@ -0,0 +1,4 @@ +name: Elmore +slug: elmore +fips: '01051' +region: Central diff --git a/data/counties/escambia.yaml b/data/counties/escambia.yaml new file mode 100644 index 0000000..62f9406 --- /dev/null +++ b/data/counties/escambia.yaml @@ -0,0 +1,4 @@ +name: Escambia +slug: escambia +fips: '01053' +region: South diff --git a/data/counties/etowah.yaml b/data/counties/etowah.yaml new file mode 100644 index 0000000..075f724 --- /dev/null +++ b/data/counties/etowah.yaml @@ -0,0 +1,4 @@ +name: Etowah +slug: etowah +fips: '01055' +region: North diff --git a/data/counties/fayette.yaml b/data/counties/fayette.yaml new file mode 100644 index 0000000..ca8a000 --- /dev/null +++ b/data/counties/fayette.yaml @@ -0,0 +1,4 @@ +name: Fayette +slug: fayette +fips: '01057' +region: West diff --git a/data/counties/franklin.yaml b/data/counties/franklin.yaml new file mode 100644 index 0000000..1db7565 --- /dev/null +++ b/data/counties/franklin.yaml @@ -0,0 +1,4 @@ +name: Franklin +slug: franklin +fips: 01059 +region: North diff --git a/data/counties/geneva.yaml b/data/counties/geneva.yaml new file mode 100644 index 0000000..ff803e5 --- /dev/null +++ b/data/counties/geneva.yaml @@ -0,0 +1,4 @@ +name: Geneva +slug: geneva +fips: '01061' +region: South diff --git a/data/counties/greene.yaml b/data/counties/greene.yaml new file mode 100644 index 0000000..f4180be --- /dev/null +++ b/data/counties/greene.yaml @@ -0,0 +1,4 @@ +name: Greene +slug: greene +fips: '01063' +region: West diff --git a/data/counties/hale.yaml b/data/counties/hale.yaml new file mode 100644 index 0000000..07ea5c2 --- /dev/null +++ b/data/counties/hale.yaml @@ -0,0 +1,4 @@ +name: Hale +slug: hale +fips: '01065' +region: West diff --git a/data/counties/henry.yaml b/data/counties/henry.yaml new file mode 100644 index 0000000..4fa57a5 --- /dev/null +++ b/data/counties/henry.yaml @@ -0,0 +1,4 @@ +name: Henry +slug: henry +fips: '01067' +region: South diff --git a/data/counties/houston.yaml b/data/counties/houston.yaml new file mode 100644 index 0000000..4d99ac6 --- /dev/null +++ b/data/counties/houston.yaml @@ -0,0 +1,4 @@ +name: Houston +slug: houston +fips: 01069 +region: South diff --git a/data/counties/jackson.yaml b/data/counties/jackson.yaml new file mode 100644 index 0000000..d55f887 --- /dev/null +++ b/data/counties/jackson.yaml @@ -0,0 +1,4 @@ +name: Jackson +slug: jackson +fips: '01071' +region: North diff --git a/data/counties/jefferson.yaml b/data/counties/jefferson.yaml new file mode 100644 index 0000000..769b57d --- /dev/null +++ b/data/counties/jefferson.yaml @@ -0,0 +1,4 @@ +name: Jefferson +slug: jefferson +fips: '01073' +region: Central diff --git a/data/counties/lamar.yaml b/data/counties/lamar.yaml new file mode 100644 index 0000000..bd62d22 --- /dev/null +++ b/data/counties/lamar.yaml @@ -0,0 +1,4 @@ +name: Lamar +slug: lamar +fips: '01075' +region: North diff --git a/data/counties/lauderdale.yaml b/data/counties/lauderdale.yaml new file mode 100644 index 0000000..ce9431f --- /dev/null +++ b/data/counties/lauderdale.yaml @@ -0,0 +1,4 @@ +name: Lauderdale +slug: lauderdale +fips: '01077' +region: North diff --git a/data/counties/lawrence.yaml b/data/counties/lawrence.yaml new file mode 100644 index 0000000..1974c1d --- /dev/null +++ b/data/counties/lawrence.yaml @@ -0,0 +1,4 @@ +name: Lawrence +slug: lawrence +fips: 01079 +region: North diff --git a/data/counties/lee.yaml b/data/counties/lee.yaml new file mode 100644 index 0000000..9bd2a0b --- /dev/null +++ b/data/counties/lee.yaml @@ -0,0 +1,4 @@ +name: Lee +slug: lee +fips: 01081 +region: East diff --git a/data/counties/limestone.yaml b/data/counties/limestone.yaml new file mode 100644 index 0000000..b4d18e8 --- /dev/null +++ b/data/counties/limestone.yaml @@ -0,0 +1,4 @@ +name: Limestone +slug: limestone +fips: 01083 +region: North diff --git a/data/counties/lowndes.yaml b/data/counties/lowndes.yaml new file mode 100644 index 0000000..1e360e1 --- /dev/null +++ b/data/counties/lowndes.yaml @@ -0,0 +1,4 @@ +name: Lowndes +slug: lowndes +fips: 01085 +region: Central diff --git a/data/counties/macon.yaml b/data/counties/macon.yaml new file mode 100644 index 0000000..f42a7d2 --- /dev/null +++ b/data/counties/macon.yaml @@ -0,0 +1,4 @@ +name: Macon +slug: macon +fips: 01087 +region: East diff --git a/data/counties/madison.yaml b/data/counties/madison.yaml new file mode 100644 index 0000000..e77c25a --- /dev/null +++ b/data/counties/madison.yaml @@ -0,0 +1,4 @@ +name: Madison +slug: madison +fips: 01089 +region: North diff --git a/data/counties/marengo.yaml b/data/counties/marengo.yaml new file mode 100644 index 0000000..b7e2954 --- /dev/null +++ b/data/counties/marengo.yaml @@ -0,0 +1,4 @@ +name: Marengo +slug: marengo +fips: 01091 +region: West diff --git a/data/counties/marion.yaml b/data/counties/marion.yaml new file mode 100644 index 0000000..41c0e68 --- /dev/null +++ b/data/counties/marion.yaml @@ -0,0 +1,4 @@ +name: Marion +slug: marion +fips: 01093 +region: North diff --git a/data/counties/marshall.yaml b/data/counties/marshall.yaml new file mode 100644 index 0000000..bfb7158 --- /dev/null +++ b/data/counties/marshall.yaml @@ -0,0 +1,4 @@ +name: Marshall +slug: marshall +fips: 01095 +region: North diff --git a/data/counties/mobile.yaml b/data/counties/mobile.yaml new file mode 100644 index 0000000..9de3757 --- /dev/null +++ b/data/counties/mobile.yaml @@ -0,0 +1,4 @@ +name: Mobile +slug: mobile +fips: 01097 +region: South diff --git a/data/counties/monroe.yaml b/data/counties/monroe.yaml new file mode 100644 index 0000000..3aee420 --- /dev/null +++ b/data/counties/monroe.yaml @@ -0,0 +1,4 @@ +name: Monroe +slug: monroe +fips: 01099 +region: South diff --git a/data/counties/montgomery.yaml b/data/counties/montgomery.yaml new file mode 100644 index 0000000..d8b9a6e --- /dev/null +++ b/data/counties/montgomery.yaml @@ -0,0 +1,4 @@ +name: Montgomery +slug: montgomery +fips: '01101' +region: Central diff --git a/data/counties/morgan.yaml b/data/counties/morgan.yaml new file mode 100644 index 0000000..a0cbbc0 --- /dev/null +++ b/data/counties/morgan.yaml @@ -0,0 +1,4 @@ +name: Morgan +slug: morgan +fips: '01103' +region: North diff --git a/data/counties/perry.yaml b/data/counties/perry.yaml new file mode 100644 index 0000000..fe816c8 --- /dev/null +++ b/data/counties/perry.yaml @@ -0,0 +1,4 @@ +name: Perry +slug: perry +fips: '01105' +region: West diff --git a/data/counties/pickens.yaml b/data/counties/pickens.yaml new file mode 100644 index 0000000..16b3f15 --- /dev/null +++ b/data/counties/pickens.yaml @@ -0,0 +1,4 @@ +name: Pickens +slug: pickens +fips: '01107' +region: West diff --git a/data/counties/pike.yaml b/data/counties/pike.yaml new file mode 100644 index 0000000..f3f6dca --- /dev/null +++ b/data/counties/pike.yaml @@ -0,0 +1,4 @@ +name: Pike +slug: pike +fips: 01109 +region: South diff --git a/data/counties/randolph.yaml b/data/counties/randolph.yaml new file mode 100644 index 0000000..43eb3d4 --- /dev/null +++ b/data/counties/randolph.yaml @@ -0,0 +1,4 @@ +name: Randolph +slug: randolph +fips: '01111' +region: East diff --git a/data/counties/russell.yaml b/data/counties/russell.yaml new file mode 100644 index 0000000..4974f5e --- /dev/null +++ b/data/counties/russell.yaml @@ -0,0 +1,4 @@ +name: Russell +slug: russell +fips: '01113' +region: East diff --git a/data/counties/saint-clair.yaml b/data/counties/saint-clair.yaml new file mode 100644 index 0000000..1ae4cd3 --- /dev/null +++ b/data/counties/saint-clair.yaml @@ -0,0 +1,4 @@ +name: Saint Clair +slug: saint-clair +fips: '01115' +region: Central diff --git a/data/counties/shelby.yaml b/data/counties/shelby.yaml new file mode 100644 index 0000000..7f2256f --- /dev/null +++ b/data/counties/shelby.yaml @@ -0,0 +1,4 @@ +name: Shelby +slug: shelby +fips: '01117' +region: Central diff --git a/data/counties/sumter.yaml b/data/counties/sumter.yaml new file mode 100644 index 0000000..b76bdb1 --- /dev/null +++ b/data/counties/sumter.yaml @@ -0,0 +1,4 @@ +name: Sumter +slug: sumter +fips: 01119 +region: West diff --git a/data/counties/talladega.yaml b/data/counties/talladega.yaml new file mode 100644 index 0000000..9e01507 --- /dev/null +++ b/data/counties/talladega.yaml @@ -0,0 +1,4 @@ +name: Talladega +slug: talladega +fips: '01121' +region: East diff --git a/data/counties/tallapoosa.yaml b/data/counties/tallapoosa.yaml new file mode 100644 index 0000000..9b5cea7 --- /dev/null +++ b/data/counties/tallapoosa.yaml @@ -0,0 +1,4 @@ +name: Tallapoosa +slug: tallapoosa +fips: '01123' +region: East diff --git a/data/counties/tuscaloosa.yaml b/data/counties/tuscaloosa.yaml new file mode 100644 index 0000000..11b99cd --- /dev/null +++ b/data/counties/tuscaloosa.yaml @@ -0,0 +1,4 @@ +name: Tuscaloosa +slug: tuscaloosa +fips: '01125' +region: West diff --git a/data/counties/walker.yaml b/data/counties/walker.yaml new file mode 100644 index 0000000..e8bc1a9 --- /dev/null +++ b/data/counties/walker.yaml @@ -0,0 +1,4 @@ +name: Walker +slug: walker +fips: '01127' +region: Central diff --git a/data/counties/washington.yaml b/data/counties/washington.yaml new file mode 100644 index 0000000..1a0ff56 --- /dev/null +++ b/data/counties/washington.yaml @@ -0,0 +1,4 @@ +name: Washington +slug: washington +fips: 01129 +region: South diff --git a/data/counties/wilcox.yaml b/data/counties/wilcox.yaml new file mode 100644 index 0000000..a3e6139 --- /dev/null +++ b/data/counties/wilcox.yaml @@ -0,0 +1,4 @@ +name: Wilcox +slug: wilcox +fips: '01131' +region: South diff --git a/data/counties/winston.yaml b/data/counties/winston.yaml new file mode 100644 index 0000000..29d3f21 --- /dev/null +++ b/data/counties/winston.yaml @@ -0,0 +1,4 @@ +name: Winston +slug: winston +fips: '01133' +region: North diff --git a/data/state.yaml b/data/state.yaml new file mode 100644 index 0000000..193be81 --- /dev/null +++ b/data/state.yaml @@ -0,0 +1,8 @@ +# Statewide officials for the Take Action page. +# Roles only for now. Add name / phone / url per entry when the data is sourced. +updated: "" +officials: + - role: Governor + - role: Lieutenant Governor + - role: U.S. Senator + - role: U.S. Senator \ No newline at end of file diff --git a/scripts/make_county_stubs.py b/scripts/make_county_stubs.py new file mode 100644 index 0000000..df36286 --- /dev/null +++ b/scripts/make_county_stubs.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python3 +"""One-off: create data/counties/.yaml for all 67 Alabama counties. + +Alabama county FIPS codes are the odd numbers 001..133 in alphabetical order, +so they can be computed. Run from the repo root: python scripts/make_county_stubs.py +Existing files are never overwritten, so it is safe to re-run. +""" + +from pathlib import Path + +import yaml + +# Same regions as the Discord bot's data.py +REGIONS = { + "North": "Lauderdale, Colbert, Franklin, Marion, Lamar, Madison, Limestone, Morgan, " + "Lawrence, Cullman, Winston, Jackson, Marshall, DeKalb, Cherokee, Etowah", + "West": "Bibb, Choctaw, Fayette, Greene, Hale, Marengo, Pickens, Sumter, Tuscaloosa, Perry", + "South": "Mobile, Baldwin, Houston, Dale, Coffee, Geneva, Henry, Covington, Escambia, " + "Conecuh, Monroe, Clarke, Washington, Pike, Barbour, Butler, Crenshaw, Wilcox", + "Central": "Jefferson, Shelby, Saint Clair, Blount, Walker, Montgomery, Autauga, Elmore, " + "Chilton, Dallas, Lowndes", + "East": "Lee, Russell, Chambers, Tallapoosa, Randolph, Macon, Calhoun, Cleburne, Clay, " + "Talladega, Coosa, Bullock", +} + +region_of = { + name.strip(): region + for region, names in REGIONS.items() + for name in names.split(",") +} +assert len(region_of) == 67, len(region_of) + +out = Path("data/counties") +out.mkdir(parents=True, exist_ok=True) + +for i, name in enumerate(sorted(region_of)): + slug = name.lower().replace(" ", "-") + record = { + "name": name, + "slug": slug, + "fips": f"01{2 * i + 1:03d}", + "region": region_of[name], + } + if name == "DeKalb": + assert record["fips"] == "01049" # sanity check on the numbering + path = out / f"{slug}.yaml" + if not path.exists(): + path.write_text(yaml.safe_dump(record, sort_keys=False), encoding="utf-8") + +print(f"{len(list(out.glob('*.yaml')))} county files in {out}/") diff --git a/static/styles/main.css b/static/styles/main.css index 97bfcd4..c4b5aa4 100644 --- a/static/styles/main.css +++ b/static/styles/main.css @@ -756,4 +756,60 @@ li .stance-anti { .values { grid-template-columns: 1fr; } +} + +/* ---------- Take Action / counties ---------- */ +.breadcrumb { + margin-bottom: 1rem; + font-size: 0.95rem; + color: var(--muted); +} + +.official-list { + list-style: none; + padding: 0; + display: grid; + gap: 0.65rem; + grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); +} + +.official-list li { + margin: 0; + padding: 0.75rem 1rem; + background: var(--white); + border: 1px solid var(--rule); + border-radius: 0.35rem; +} + +.county-map { + max-width: 28rem; + margin: 1rem auto 1.5rem; +} + +.county-map svg { + width: 100%; + height: auto; +} + +.county-map path { + fill: var(--white); + stroke: var(--blue); + stroke-width: 0.75; +} + +.county-map a:hover path, +.county-map a:focus path { + fill: var(--gold); +} + +.county-grid { + list-style: none; + padding: 0; + columns: 14rem; + column-gap: 1.5rem; +} + +.county-grid li { + margin: 0 0 0.35rem; + break-inside: avoid; } \ No newline at end of file diff --git a/templates/act.html b/templates/act.html new file mode 100644 index 0000000..68eb983 --- /dev/null +++ b/templates/act.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% block content %} +
+

Take Action

+

Find out who represents you and how to reach them, from the governor’s office to your county courthouse.

+
+ +
+

Statewide

+ {% if state.officials %} + + {% if state.updated %}

Last checked: {{ state.updated }}

{% endif %} + {% endif %} +
+ +
+

Find your county

+ {% if map_svg %} +
{{ map_svg|safe }}
+ {% endif %} + +
+{% endblock %} \ No newline at end of file diff --git a/templates/county.html b/templates/county.html new file mode 100644 index 0000000..2cb37ab --- /dev/null +++ b/templates/county.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} +{% block content %} + + +

{{ county.name }} County

+

{{ county.region }} Alabama

+ +
+

About the county

+

Coming soon.

+
+ +
+

Who represents you

+

Coming soon.

+
+ +
+

Local chapters and groups

+

Coming soon.

+
+ +
+

News and events

+

Coming soon.

+
+{% endblock %} \ No newline at end of file diff --git a/templates/partials/header.html b/templates/partials/header.html index e02796e..a33cf52 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -5,7 +5,7 @@ \ No newline at end of file