Compare commits

...

5 Commits

Author SHA1 Message Date
Ben Soroos
f3ae22aa5b Add credits for images and history information. 2024-03-17 17:18:34 +00:00
Ben Soroos
760d5c9d34 Add link to Langley Whale Center. 2024-03-17 17:13:28 +00:00
Ben Soroos
a86ce6a88e Add history information. Sourced from langleywa.org, as linked. 2024-03-17 17:12:18 +00:00
Ben Soroos
92644fc56d Add readme.md with name, student id, design decisions, and challenges faced 2024-03-17 16:48:01 +00:00
Ben Soroos
84ac0c306d Further tooling: commit log generation & copy in codio 2024-03-16 23:43:01 +00:00
6 changed files with 78 additions and 3 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
/build/
/.direnv/
.DS_Store
/latex.out/
built.tar.gz

View File

@@ -18,6 +18,9 @@
simple-http-server
watchexec
(python3.withPackages (ps: with ps; [jinja2]))
latexrun
texlive.combined.scheme-full
ansifilter
];
};
});

View File

@@ -19,3 +19,34 @@ serve: build
watch:
watchexec --restart -- just serve
log:
#!/usr/bin/env bash
set -exuo pipefail
{
cat <<EOP
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage[margin=0.25in]{geometry}
\usepackage{hyperref}
\newcommand{\ws}[1]{\textcolor[rgb]{0,0,0}{#1}}
\DeclareUnicodeCharacter{22EE}{│}
\usepackage{pmboxdraw}
\begin{document}
\ttfamily
\section*{}
EOP
git log -p --format=tformat:'(((RULE)))%h: %s%nBy %aN <%aE> at %ai%n%b%n' -n 5 \
| delta --light -w 110 --plus-style '"#339933" bold' --plus-emph-style '"#339933"' --minus-style 'red bold' --minus-emph-style 'red' --zero-style 'gray dim' --no-gitconfig --line-numbers --syntax-theme none \
| ansifilter --latex -f \
| sed -e '0,/(((RULE)))/s///' -e 's/(((RULE)))/\\hrule\n\\section*{}/g'
echo '\hrule'
echo '\end{document}'
} > build/commits.tex
latexrun -o build/commits.pdf build/commits.tex
rm build/commits.tex
codio: build log
tar c build/ | gzip > built.tar.gz

View File

@@ -2,4 +2,19 @@
{% block title %}History{% endblock %}
{% block history_active %}active{% endblock %}
{% block main %}
<div class="container mt-3">
<p>
Langley was founded by Jacob Anthes, a German who moved to and bought land
in the area in 1881. In 1890, he gave his land to the newly-formed Langley
Land and Improvement Company, which officially founded the town of Langley
in 1891. A dock was soon built, along with a general store and post office
run by Jacob Anthes. In 1898, the school district was founded.
</p>
<p>
Langley was incorporated as a self-governing town in 1913, and a fire station
and a jail were soon constructed.
</p>
Information from <a href="https://www.langleywa.org/visitors/history_of_langley.php">Langley's official history page</a>.
See there for more information.
</div>
{% endblock %}

View File

@@ -13,7 +13,7 @@
<div class="col-md-5">
<figure class="figure container">
<img src="static/mysteryposter.jpg" alt="The poster for the 2024 Mystery Weekend" class="figure-img img-fluid visit-img">
<figcaption class="figure-caption">The poster for the 2024 Mystery Weekend.</figcaption>
<figcaption class="figure-caption">The poster for the 2024 Mystery Weekend, courtesy Langley Chamber of Commerce</figcaption>
</figure>
</div>
</div>
@@ -21,11 +21,12 @@
<div class="col-md-5">
<figure class="figure container">
<img src="static/orcas.jpg" alt="Orcas resident near Whidbey Island" class="figure-img img-fluid visit-img">
<figcaption class="figure-caption">Orcas resident near Whidbey Island</figcaption>
<figcaption class="figure-caption">Orcas resident near Whidbey Island, courtesy NOAA</figcaption>
</figure>
</div>
<div class="col-md-7 align-self-center">
The annual Welcome the Whales festival in April and the Langley Whale Center
The annual Welcome the Whales festival in April and the
<a href="https://www.orcanetwork.org/langley-whale-center">Langley Whale Center</a>
celebrate the cetaceans in the Puget Sound around Whidbey Island. These are
primarily orcas, but there is a small pod of grey whales inhabiting the area,
and humpbacks can sometimes be seen.

23
readme.md Normal file
View File

@@ -0,0 +1,23 @@
# CS1534CA3
Benjamin Soroos, Student ID 52317014
## Design Decisions
I didn't decide to do anything particularly unusual with regard to layout or
navigation - a static navbar, collapsing on mobile, is possibly the most common
form of responsive navigation, and the required 7:5 columnar layout on the visit
page ended up being a quite typical way of attaching images to small paragraphs
of text.
As I have very little ability to judge the aesthetics of color combinations, I
used a single background/accent color, which is the purple used by the city of
Langely on their website and elsewhere.
## Challenges Faced
I didn't face any particular technical challenges, but judging aesthetics proved
quite difficult (not at all surprisingly). I'm still unsure if the banner on the
home page qualifies as 'attention-grabbing'.
Also, 'static map' didn't seem to be well-defined, so for that reason and
because it's difficult to find a single scale of map which usefully shows the
location of Langley to people unfamiliar with maps of the Pacific North-West, I
inserted a dynamic map instead.