commit 534b505a4814ba459567adcd0522797f66e05df1 Author: Chandler Swift Date: Sat Feb 8 22:34:46 2025 -0600 Initial commit diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..0a722d7 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix; diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..378eac2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/20250201_145049.jpg b/20250201_145049.jpg new file mode 100644 index 0000000..92a3c38 Binary files /dev/null and b/20250201_145049.jpg differ diff --git a/20250201_183056.jpg b/20250201_183056.jpg new file mode 100644 index 0000000..268de5b Binary files /dev/null and b/20250201_183056.jpg differ diff --git a/20250201_202144.jpg b/20250201_202144.jpg new file mode 100644 index 0000000..60c8638 Binary files /dev/null and b/20250201_202144.jpg differ diff --git a/20250202_093728~2.jpg b/20250202_093728~2.jpg new file mode 100644 index 0000000..fb72a66 Binary files /dev/null and b/20250202_093728~2.jpg differ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0dbbe42 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +IMG_SRC := $(wildcard *.jpg) +IMG_DST := $(IMG_SRC:%.jpg=build/%.jpg) +IMG_TAGS := $(patsubst %.jpg,,$(IMG_SRC)) + +.PHONY: all +all: build/index.html $(IMG_DST) + +build/index.html: index.html | build + sed '/INSERT IMAGES HERE/c$(IMG_TAGS)' index.html > $@ + +build/%.jpg: %.jpg | build + magick $< -gravity center -crop 16:9 -resize 1920x1920 -quality 80 $@ + +build: + mkdir -p build + +.PHONY: deploy +deploy: all + rsync -av build/ bert:/srv/www/troop352.us/ + +.PHONY: clean +clean: + rm -rf build diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b42a52 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# troop352.us + +## slider images + +All are 16x9 landscape. The slider doesn't work right if they're not. Rather +than spending time troubleshooting that, I just…made them all the correct aspect +ratio! + +The build script assumes that they're all landscape, and will probably generate +some wonky results if that assumption isn't met. diff --git a/index.html b/index.html new file mode 100644 index 0000000..c4e0d1f --- /dev/null +++ b/index.html @@ -0,0 +1,171 @@ + + + + + + + Scouts BSA Troop 3352 | Glencoe, Minnesota + + + + +
Scouts BSA Troop 3352, Glencoe, Minnesota
+ +
+

Welcome to Troop 3352!

+
+
+ +
+ + +
+
+ +
+

Upcoming Events

+ + +
+ +
+
+
+

Contact Us

+

Scoutmaster David Swift: dave@swiftgang.net

+
+
+

Scouts BSA Troop 352 is chartered by Glencoe VFW Post 5102. To join Troop 352, please attend one of + our meetings, which are typically held on Sundays.

+
+
+
+ + + + + diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..4ffe6ee --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +let + pkgs = import {}; +in + +pkgs.mkShellNoCC { + packages = with pkgs; [ + imagemagick + ]; +}