mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-08 16:19:13 +00:00
d9179334dee9cf3d01868342eb0efc599cb3808f
Lapikud External Website
Development plan
Materials are on Google Drive > Lapikud > Tarkvara > Väliveeb
Contribution guide
1. Create Issues
Easiest way to help would be to create issues about things that are missing and wrong
2. Fork this repo and create a pull request
Fork this repo to your own account and create a pull request for changes you have done in there
How to setup development environment
Prerequisites
- Node.js (v18 or higher. v20 is recommended)
- npm (comes with Node.js)
Installation
- Clone the repository
git clone https://github.com/Lapikud/lapikud.github.io.git
cd lapikud.github.io
- Install dependencies
npm install
- Start development server
npm run dev
Important
Optional (secretly required): Image optimization
No one wants to download 5MB images that are then shown in a 100x100px box.
Always optimize images before committing them!
Linux/Windows (WSL/Ubuntu)
sudo apt install ffmpeg
# For thumbnails/small images (100-300px display)
ffmpeg -i input -vf scale=400:-1 output.jpg
# For medium images (300-800px display)
ffmpeg -i input -vf scale=1200:-1 output.jpg
# For full-width hero images
ffmpeg -i input -vf scale=1920:-1 output.jpg
Windows
Option 1: Using winget (Windows 11 or Windows 10 with App Installer)
winget install ffmpeg
Option 2: Manual installation
- Download FFmpeg from ffmpeg.org/download.html
- Extract the archive
- Add the
binfolder to your PATH environment variable
Usage:
# For thumbnails/small images (100-300px display)
ffmpeg -i input -vf scale=400:-1 output.jpg
# For medium images (300-800px display)
ffmpeg -i input -vf scale=1200:-1 output.jpg
# For full-width hero images
ffmpeg -i input -vf scale=1920:-1 output.jpg
MacOS
brew install ffmpeg
# For thumbnails/small images (100-300px display)
ffmpeg -i input -vf scale=400:-1 output.jpg
# For medium images (300-800px display)
ffmpeg -i input -vf scale=1200:-1 output.jpg
# For full-width hero images
ffmpeg -i input -vf scale=1920:-1 output.jpg
Deploy
Note
Github will build and deploy the website automatically on every push to the
mainbranch. You don't need to do anything manually.
Deployment typically takes 2-5 minutes. You can check the progress in the Actions tab.
Description
Languages
HTML
75.8%
SCSS
23%
Shell
1.2%