Skip to content

ensuro/ensuro.github.io

Repository files navigation

Ensuro Website

This repository has the Ensuro website hosted in https://ensuro.co using GitHub pages.

The HTML files are generated from Jinja2 templates, so the changes need to be done on the .j2 files.

After changing the .j2 files, using the script ./generate.sh, the HTML are refreshed.

To test locally, you can just run <browser> index.html.

To deploy, just commit and push the HTML files.

The input parameters for the Jinja2 templates are defined in the file input.yaml.

Formatting Team Images with ImageMagick

Optional: Install ImageMagick

sudo apt-get install imagemagick

To format team member images using ImageMagick, follow these steps:

  1. Resize the image to 500x500 pixels and convert it to grayscale:
convert /route/to/image.png -resize 200x200^ -gravity center -extent 200x200 -colorspace Gray resized_grayscale_image.png
  1. Create a mask with rounded corners:
convert -size 200x200 xc:none -draw "roundrectangle 0,0 199,199 50,50" mask.png
  1. Apply the mask to the resized grayscale image:
convert resized_grayscale_image.png mask.png -alpha set -compose DstIn -composite team_member.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published