Portfolio

Colegio Aragón 2.0: a full redesign of a live school website

A three-week redesign of a live school website: new visual identity, real photos of the school, images and video through AWS CloudFront, per-file-type caching in Caddy and a view for the school's totems. The product owners disliked it; the parents, its real users, loved it. Flask, Jinja, CSS and JavaScript with no libraries.

★ Featured In production Team member
Python Flask MySQL AWS CloudFront S3

Leer en español

Colegio Aragón 2.0: a full redesign of a live school website

Colegio Aragón 2.0: a full redesign of a live school website

In September I published the Colegio Aragón case study, a school website with its own admin panel. Between October 22 and November 12, 2026 I rebuilt everything a visitor sees: visual identity, photos, mobile navigation, image delivery through a CDN and a new view for the school's TV screens. The admin panel and the business logic stayed as they were.

In 30 seconds

  • What I did: the visual and technical redesign of a Chilean school's public website, live at colegioaragon.cl.
  • My role: sole developer for this phase (28 of 28 commits). Design, frontend and infrastructure.
  • Outcome: I rewrote 18 of the 22 stylesheets, 24 of the site's 27 photos now come from the school, images and video are served from AWS CloudFront, and the school's TVs have their own promotional view.
  • The surprise: the product owners disliked the design. The parents, who are the real users, loved it.
  • Stack: Flask, Jinja, hand-written CSS, JavaScript with no libraries, Caddy, AWS CloudFront.

The home page before (September) and after (November) the redesign

Overview
RoleFull-stack developer, sole author of this version
TimelineOctober 22 to November 12, 2026 (3 weeks)
TypeRedesign of a production website
StatusLive
CodePrivate; this case study uses screenshots and selected snippets

Why redesign

Version 1.0 covered the functional side: room bookings by QR code, the school timetable, newsletters and in-house analytics. The visual side fell behind. The home page was a carousel with a dark photo of a ping-pong table, the typography looked like any template, and the site barely showed the school.

For 2.0 I set three goals:

  1. Make the site look like Colegio Aragón, with real photos of its classrooms, playgrounds and classes.
  2. Make it work as well on a phone as on a computer.
  3. Keep the video and photos off the application server.

What changed

AreaWhat I didWhy
Visual identityDM Serif Display for headings, Manrope for body text, a navy and gold palette taken from the school crest, all as CSS variablesGive the site its own character and keep every page on the same colors
PhotosA central photo registry and 23 new photos and videos of the schoolSwapping a photo means editing one line, no template changes
Home pageAerial video of the school, Admissions 2026 and 2027 cards, contact form on the same pageAdmissions and contact sit on the first screen
MobileNew full-screen menu and a top bar with the phone number and a contact linkNavigate with your thumb, no tiny menus
GalleriesPhoto viewer with keyboard, arrow and swipe supportSee photos full size without leaving the page
ContentNewsletters as a magazine with search, per-class colors and icons in the Reading Plan and School Supplies pages, an Annual Plan editable from the panel, a section on the national school lunch program (JUNAEB)Every parent finds their child's class at a glance
DeliveryImages and video from CloudFront; Caddy serves static files with a cache policy per file typeLess load on the server and deploys that show up right away
ScreensA full-screen /kiosko view with a QR code to admissionsThe school's TVs promote enrollment without anyone touching them

The new home page: aerial video of the school and admissions cards

The site on a phone: home page, menu and newsletters

The most interesting part: the "horrible" design parents loved

The project's product owners were unhappy with the redesign. They criticized the design and the photos, and one of them called it "horrible".

The parents said the opposite. They are the ones who visit the site to check admissions, school supplies or newsletters, and they told us the page looked great and that they loved the photos and the design.

I share this because it left me with three lessons I've applied since:

  • The people who approve a project and the people who use it look at different things. My reading is that the product owners judge how the institution presents itself, while a parent wants to recognize their child's school: its playground, its classrooms, its activities. Real photos speak to that second group.
  • When someone says "I don't like it", bring the end users' feedback to the table. It changes the conversation from my taste against someone else's.
  • Validate with users from the first draft. On my next redesign I'll show the design to a couple of parents before the product owner review, so I arrive with their opinion as well as mine.

Deep dive: the technical decisions

1. A photo registry to design without waiting for the photo shoot

The design needed photos before the school had them. In 1.0 every template had its image path hard-coded, so changing a photo meant hunting for it across several files.

For 2.0 I built a registry as a Jinja macro: each photo has a name (prebasica, biblioteca, cancha) and templates ask for it by name and by the width they need. I started with 15 placeholder photos from Unsplash and replaced them with school photos as they arrived, without touching a single template. Three remain today. When a photo turned out not to have permission for publication, removing it meant deleting one line.

{% macro url(clave, ancho=1200) -%}
    {%- set src = registro[clave] -%}
    {%- if src.startswith('http') -%}
        {{ src }}?w={{ ancho }}&q=75&auto=format&fit=crop
    {%- elif config.CLOUDFRONT_BASE_URL -%}
        {%- set clean_path = src[4:] if src.startswith('img/') else src -%}
        {{ config.CLOUDFRONT_BASE_URL.rstrip('/') }}/{{ clean_path.lstrip('/') }}
    {%- else -%}
        {{ url_for('static', filename=src) }}
    {%- endif -%}
{%- endmacro %}

In a template it reads: <img src="{{ fotos.url('prebasica', 900) }}" alt="Pre-K class">.

2. CloudFront, with automatic fallback to local files

The home page video weighs 5.7 MB. Before, the same server running Flask delivered it, along with every photo. Now images and video come from AWS CloudFront, which serves Chilean visitors from its Santiago edge location.

A function available in every template builds the URL. If the CLOUDFRONT_BASE_URL variable is empty, it points to /static as before: I develop without AWS, and turning the CDN off in production means changing one environment variable.

def _cloudfront_image(image_path):
    base_url = Config.CLOUDFRONT_BASE_URL
    if not base_url:
        return url_for('static', filename=f"/img/{image_path}")
    return f"{base_url.rstrip('/')}/{image_path.lstrip('/')}"

I measured the difference with 15 requests from Santiago: median time to first byte was 41 ms from CloudFront and 47 ms from the server. For a Chilean visitor, latency barely changes. What the school gains is a server that no longer pushes 5.7 MB of video to every new visitor.

3. Caddy: a cache policy for each kind of file

I put the configuration of Caddy, the web server in front of the application, under version control and split files by how often they change:

handle_path /static/* {
    root * /var/www/colegioaragon.cl/app/static
    # CSS/JS no llevan versión en la URL: se revalidan (304) para que cada deploy se vea al tiro
    @code path *.css *.js
    @assets not path *.css *.js
    header @code Cache-Control "no-cache"
    header @assets Cache-Control "public, max-age=604800"
    file_server
}

# Subidas del admin: cada archivo nuevo lleva un id único en el nombre, nunca cambia
handle_path /media/uploads/* {
    root * /var/www/colegioaragon.cl/storage/uploads
    header Cache-Control "public, max-age=31536000, immutable"
    file_server
}

# El resto del storage (backups/) nunca se publica
handle /media/* {
    respond 404
}
  • CSS and JS revalidate on every visit. The server answers 304 when nothing changed, and after a deploy parents see the new version immediately.
  • Images stay in the browser cache for 7 days.
  • Files uploaded from the panel stay cached for a year, because each one carries a unique id in its name and never changes.
  • Database backups are never published. I block them at two layers: Caddy returns 404 and Flask only serves files from the uploads/ folder.

Caddy also serves static files without going through Gunicorn, compresses with zstd or gzip, and adds HSTS and other security headers. Gunicorn now listens only on 127.0.0.1: from the internet, Caddy is the only way into the application.

4. A photo viewer with no libraries

The facilities, class level, workshop and uniform galleries open full size on click. Instead of adding a library, I wrote a viewer of about 80 lines on top of the native <dialog> element, which already locks the rest of the page and closes with Esc.

  • Any template turns it on with one attribute: every <img> inside a data-lightbox container becomes zoomable.
  • It works with a keyboard: Enter or Space opens a photo and the arrow keys move between photos.
  • On a phone you swipe between photos.
  • Each photo has a label for screen readers, and the animation turns off when the user asks their system for reduced motion.

The photo viewer in the facilities gallery

5. A view for the school's TVs

The school has totems and TVs in its hallways. The /kiosko route shows a full-screen presentation that rotates on its own: school video, photos, animated stat counters, class levels, admissions and contact. The server generates the admissions QR code as an SVG with the current admission year, so it updates itself when the year changes.

A screen nobody touches needs care a normal page doesn't:

  • The Wake Lock API keeps the TV from turning off its screen.
  • The cursor hides after 3 seconds without movement.
  • Every 6 hours the view reloads to pick up new content, but only if the server responds. If the internet drops, the TV keeps showing the presentation instead of an error page.
setInterval(() => {
    fetch(location.href, { method: 'HEAD', cache: 'no-store' })
        .then((r) => { if (r.ok) location.reload(); })
        .catch(() => {});
}, 6 * 3600 * 1000);

The admissions scene on the totem view, with a QR code to the 2027 process

6. Accessibility built into the design

The crest's gold on a cream background falls short of the minimum contrast for comfortable reading. I defined two darker golds with fixed uses: one for large headings (contrast of at least 3:1) and one for small text (at least 4.5:1), the WCAG AA thresholds.

--gold-heading: #b97a12;  /* títulos grandes, ≥3:1 */
--gold-ink: #946010;      /* texto pequeño, ≥4.5:1 */

Scroll-in animations only run if the user's system doesn't ask for reduced motion. A script in the <head> checks this before the page paints, so nobody sees a jump.

Newsletters with their new magazine design

The Reading Plan with per-class colors and icons

By the numbers

MetricValue
Duration3 weeks (October 22 to November 12, 2026)
Commits28, all mine
Files changed106 (+4,462 / −2,480 lines)
Stylesheets rewritten18 of 22
Public templates changed30
New photos and videos of the school23
Stock photos on the sitefrom 15 placeholders down to 3
New JavaScript libraries0

What I take away

On the technical side, this version taught me to build so content can change without touching code: a photo registry, a CDN you switch off with one variable, and a different cache for each kind of file. The school swapped photos throughout the redesign and no template had to wait.

On the human side, I keep the gap between the product owners and the parents. The people who use a design are the ones who judge it, and I now seek their opinion before the review meeting.

Screenshots taken from the live site in November 2026. I left out photos with students in the foreground: the school authorized those images for its own site, not for this portfolio.

Project screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6 Screenshot 7 Screenshot 8
← All projects