-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcapture-web-screenshots.sh
More file actions
executable file
·44 lines (36 loc) · 1.2 KB
/
Copy pathcapture-web-screenshots.sh
File metadata and controls
executable file
·44 lines (36 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Quick web screenshots using Chrome headless
echo "📸 Capturing screenshots from web app..."
echo "=========================================="
echo ""
# Check if chromium-browser is installed
if ! command -v chromium-browser &> /dev/null && ! command -v google-chrome &> /dev/null; then
echo "⚠️ Chrome/Chromium not found. Please install:"
echo " sudo apt install chromium-browser"
exit 1
fi
# Create screenshots directory
mkdir -p screenshots/web
# Set Chrome command
CHROME="chromium-browser"
if command -v google-chrome &> /dev/null; then
CHROME="google-chrome"
fi
echo "Using: $CHROME"
echo ""
# Capture homepage
echo "📱 Capturing homepage..."
$CHROME --headless --disable-gpu \
--window-size=1080,1920 \
--screenshot=screenshots/web/01-home.png \
https://moving-planner-ke.vercel.app
echo "✅ Homepage captured"
echo ""
echo "🎉 Screenshot saved to: screenshots/web/01-home.png"
echo ""
echo "📋 Manual steps for more screenshots:"
echo "1. Open https://moving-planner-ke.vercel.app in browser"
echo "2. Press F12 → Toggle device toolbar (phone icon)"
echo "3. Set device to 'Pixel 5' or similar"
echo "4. Navigate to each page and take screenshots"
echo ""