Commit Graph

791 Commits

Author SHA1 Message Date
Telegram Bot 4bc7eeb0f0 Синхронизация репозитория 2026-01-15 22:24:06 +03:00
Kirik b9931fe705 Change trip description to Moscow region 2026-01-14 21:28:34 +01:00
Kirik 75594b7b25 Update upcoming trips: leave only January 2026 trip
- Remove November 2025, December trips
- Add single January 2026 trip with Zakrytie sezona photo
- Update meta information
2026-01-14 21:26:49 +01:00
Kirik e2fa83bf1d Update copyright year to 2026 2026-01-05 11:06:06 +01:00
Kirik 689fb97b47 Add two December trips: "Открытка на снегу" and "Закрытие сезона 2025"
Replaced single December trip with two separate events:
- December 20-21: "Открытка на снегу" (Snow Postcard)
- December 27-28: "Закрытие сезона 2025" (Season Closing 2025)

Both trips are for regular participants only with 5-day advance registration cutoff.
2025-12-16 09:47:51 +01:00
Kirik 292cba06f0 Fix formatting: remove dot before date in December trip 2025-12-04 19:59:58 +01:00
Kirik e771f02a68 Update trip descriptions: keep only Vladimir region
- Remove Moscow and Tver regions from November trip
- Remove Tver region from December trip (keep only Vladimir)
- Keep December 13 date
2025-12-04 19:58:54 +01:00
Kirik 662538a3c1 Make December 13 date bold in trip description 2025-11-28 11:31:18 +01:00
Kirik 38bacfd09c Add .pdf format specification to notification upload label 2025-11-28 11:27:55 +01:00
Kirik f0ed4373d4 Add December 13 date to upcoming trip 2025-11-27 19:08:54 +01:00
Kirik ac334495b9 Make drone serial number field mandatory in trip form
- Added required validation for bvs_number field in send_plan.php
- Updated form label to show asterisk (*) indicating required field
- Implemented file attachment support in email notifications (multipart MIME)
- Files are now temporarily saved and automatically deleted after email is sent
2025-11-20 00:41:48 +01:00
Kirik c6f909a042 Fix accessibility: Improve footer contrast and text visibility
- Add explicit white color and bold weight to footer navigation spans
- Increase seasonal info opacity from 50% to 85% for better contrast
- Ensures footer text meets WCAG accessibility standards
- Improves readability for users with low vision
2025-11-12 20:56:04 +01:00
Kirik 4776b309c0 Update Norilsk post preview image to WebP format
- severnyy-veter-20251006: Norilsk-20251006-1.jpg -> Norilsk-20251006-1.webp
- Reduces preview image file size on main page
2025-11-12 20:55:05 +01:00
Kirik 2b593a528a Fix accessibility: Allow viewport zooming for users with low vision
- Remove user-scalable=no which blocks zooming
- Add maximum-scale=5 to allow users to magnify up to 5x
- Complies with accessibility guidelines (WCAG 2.1)
- Allows screen magnification users to properly see content
2025-11-12 20:51:19 +01:00
Kirik 8e5ddd0fa1 Fix: Update correct posts with WebP image links
- svyato-vvedenskaya-ostrovnaya-pustyn-20250601: Pokrov-20250908-1.webp
- zabroshennye-karery-20250602: Vetchi-20250908-1.webp
- Revert Pokrov-20230204 to original image
- Revert Vetchi_20241012_0 to original image
2025-11-12 20:46:15 +01:00
Kirik c64ac91ab1 Update preview images to WebP format for main page posts
- Vetchi: jpg -> Vetchi-20250908-1.webp
- Pokrov: jpg -> Pokrov-20250908-1.webp
- Knyazhigory: jpg -> Knyazhigory-20250925-1.webp
- Gurevo: jpg -> Gurevo-20250908-1.webp
- Suzdal: jpg -> Suzdal-20250925-1.webp

Reduced file size on homepage by using WebP images from S3
2025-11-12 20:39:51 +01:00
Kirik d7c8f87b64 Use mobile4.webp for mobile devices background
- Converted mobile4.jpeg to mobile4.webp (1.4 MB, 2224x6140)
- Better aspect ratio and composition for mobile screens
- Desktop continues to use desktop.webp (716 KB, 2732x1535)
2025-11-12 20:22:24 +01:00
Kirik d76fa752cb Use mobile2.webp for mobile devices background
- Converted mobile2.jpg to mobile2.webp (517 KB, 1106x3070)
- Perfect aspect ratio for mobile screens
- Desktop continues to use desktop.webp (716 KB, 2732x1535)
2025-11-12 20:16:16 +01:00
Kirik 86c69883b8 Revert to desktop.webp for mobile - troubleshoot missing background
- mobile2.jpg path seems to cause issues
- Reverting to desktop.webp for both mobile and desktop
- Will investigate mobile2.jpg issue separately
2025-11-12 20:15:23 +01:00
Kirik 28f262d163 Use mobile2.jpg for mobile devices background
- Mobile devices now use mobile2.jpg (1106x3070, 1.6 MB)
- Desktop continues to use desktop.webp
- Better composition for mobile screen aspect ratio
2025-11-12 20:14:03 +01:00
Kirik 2d6c391866 Increase mobile background zoom to 800% for wider view
- Changed from 300% to 800% for better mobile composition
- Image appears even more zoomed out on mobile devices
- Better visibility of full scene without extreme cropping
2025-11-12 20:10:59 +01:00
Kirik 9727ff5dc0 Zoom out mobile background 3x for better composition
- Change background-size from cover to 300% on mobile devices
- Makes the image appear 3x further away
- Better composition and less cropped view of the scene
2025-11-12 20:08:30 +01:00
Kirik a6ee115908 Use same desktop.webp for all devices - simpler and cleaner
- Remove separate mobile image (was causing file bloat and complexity)
- Use desktop.webp (716 KB) for all screen sizes via media query
- Browser's background-size: cover handles responsive display
- Simplify preload-images.html to single image preload
- Cleaner CSS without unnecessary file duplication
2025-11-12 20:06:59 +01:00
Kirik 82ad87dbfc Replace mobile.webp with high quality version using cwebp compression
- Converted from mobile3.webp with cwebp -q 88 -m 6
- Resized to 556x316 (optimized for mobile)
- File size: 69 KB with excellent quality (3.22 bpp)
- Much sharper than ImageMagick resize version
2025-11-12 20:04:47 +01:00
Kirik bc57c51b44 Replace mobile.webp with higher quality version from mobile3 resize
- Resized mobile3.webp (5418x3070) to mobile dimensions (556x315)
- Quality: 85% WebP compression for better image clarity
- File size: 126 KB -> 66 KB (still lighter, much better quality)
- Now using consistent aspect ratio with desktop version
2025-11-12 20:02:47 +01:00
Kirik 6269d3323c Implement adaptive background images for mobile and desktop
- Add desktop.webp (2732x1535) for desktop devices and mobile.webp (556x1535) for mobile
- Create adaptive-background.css with media queries (max-width: 736px for mobile)
- Update config.toml to use desktop.webp as default background
- Modify htmlhead.html to include adaptive-background.css
- Update preload-images.html for responsive image preloading
- Optimize background loading based on device screen width

Both images include overlay.png and gradient overlay for consistent design.
Mobile version (124 KB) is 5.8x lighter than desktop version (716 KB).
2025-11-12 19:53:54 +01:00
Kirik 93dc90ce31 Remove consent header from form checkbox, keep only in explanations section
- Remove 'СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ' header from privacy consent checkbox in form
- Keep only 'Я выражаю своё согласие на обработку персональных данных' text
- Header remains in 'Пояснения к форме' section for clarity
- Update CHANGES.md with complete documentation of today's work
2025-11-11 09:32:44 +01:00
Kirik 2510dc9110 Update plan page: remove Moscow region, simplify conditions, update text
- Remove 'Московскую область' from trip description
- Replace intro text with 'Хотите присоединится к поездке?...'
- Remove 'Поездки без дронов' section and custom trip proposal text
- Keep only 'Дронослёты' section with 5-day deadline
- Add consent header in explanations section
2025-11-10 20:58:19 +01:00
Kirik 7bacf51dd1 Add custom file upload button with Russian label 'Выбрать файл'
- Replace standard browser file input with custom styled button
- Add blue button label 'Выбрать файл' instead of 'Choose File'
- Display selected filename with checkmark after selection
- Hide default file input element
2025-11-10 20:06:24 +01:00
Kirik 48b8bc3285 Fix December trip image URL to S3 link 2025-11-10 19:41:36 +01:00
Kirik 85d39db6bc Update plan page content with form improvements
- Change field label from 'Имя' to 'Фамилия, имя'
- Make phone field required (add * and required attribute)
- Update drone flight conditions section title to 'Дронослёты'
- Change submission deadline from 7 to 5 days
- Add detailed departure time info with location dependency
- Update BVS field label with new text for registration numbers
- Add PDF file upload for drone registration notice
- Update trip period label from 'Выберите поездку' to 'Выберите мероприятие'
- Add consent header 'СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ' in bold centered
- Update consent text for data processing privacy policy
- Add enctype multipart/form-data for file uploads
2025-11-10 19:27:39 +01:00
Kirik b08063eb1b Update December flights form and trip data
- Update form fields: Change 'Имя' to 'Фамилия, имя', add required phone field
- Add PDF upload for drone registration notice (BVS notice)
- Update trip conditions: Change 'Поездки с полетами дронов' to 'Дронослёты'
- Update submission deadline from 7 days to 5 days for drone flights
- Add detailed time departure info with location dependency
- Update privacy consent text and add centered consent header
- Hide November 2025 flights (set active: false)
- Update December 2025 flights image to winter drone photo
- Add backend validation for phone field and PDF file upload (max 5MB, PDF only)
- Update email notification function for consistent handling
2025-11-10 19:10:07 +01:00
Kirik 5a68ee77b6 Remove 'Предложить свое' option from trip selection dropdown 2025-11-05 16:43:35 +01:00
Kirik a187cd3bf3 Add 'Предложить свое' option to trip selection dropdown 2025-11-05 15:30:07 +01:00
Kirik 2f20c1652a Clean up test webhook marker from plan page 2025-11-05 15:11:29 +01:00
Kirik 6cd8708c16 Test webhook with new domain - check if auto deploy works 2025-11-05 15:02:58 +01:00
Kirik 765b9c5f9f Remove test marker 2025-11-05 14:55:19 +01:00
Kirik 120eec4f4f Test: add 11 to check if deploy is working 2025-11-05 14:52:24 +01:00
Kirik 32d69043f3 Update trips without drones section - combine submission and discussion into one line 2025-11-05 14:30:08 +01:00
Kirik 2cf7237167 Remove 'Свой вариант без БВС' option from trip selection dropdown
This option was displayed in the form dropdown, but users can still suggest custom trips through the 'bvs_number' textarea field.
2025-11-05 14:28:10 +01:00
Kirik 873c397b61 Update calendar to Nov/Dec 2025 and migrate to sleeptrip.ru
- Replace September/October trips with November/December 2025
- Update config.toml baseURL to sleeptrip.ru
- Form options will load dynamically from updated JSON
2025-10-29 00:22:02 +01:00
Kirik 92fd2c18a7 Optimize bg-winter.webp: 2.6MB → ~500KB (1920px width, quality 75) 2025-10-27 17:07:13 +01:00
Kirik 956ce4b8f9 Optimize background image and clean up test content
- Convert DESKTOP_NEW_1.jpg (4.5MB) to DESKTOP_NEW_1.webp (571KB)
- Reduce dimensions from 5418x3070 to 1920x1088
- 87% size reduction for faster page load
- Update config.toml to use optimized WebP background
- Remove test text from map.md page
2025-10-27 17:02:42 +01:00
Kirik f14437c45d Add Security Headers section to deployment guide
- Added section 3.7 with all 6 HTTP security headers
- Includes HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy
- Testing instructions and online validation tools
- Links to detailed SECURITY_HEADERS.md documentation
- Fixed .gitignore to properly allow INFO/Deployment/*.md files
2025-10-27 16:50:55 +01:00
Kirik e26c35e488 Fix ask form and improve .env parsing
- Add AJAX handler to ask.md (same as plan.md)
- Improve load_env_file() to strip inline comments and spaces
- Create ERRORS_COLLECTION.md documenting all 7 error categories
- Fixes white page/JSON display issue in ask form
2025-10-27 16:35:59 +01:00
Kirik f902109b04 Fix plan form: add AJAX submit handler binding
- Add onsubmit handler to plan form
- Form now uses JavaScript fetch instead of standard POST
- Fixes white page issue with JSON response
2025-10-27 15:42:48 +01:00
Kirik 776dbb5e76 Fix forms: return JSON instead of redirect for AJAX compatibility
- send_plan.php: replace redirect with JSON response
- send_ask.php: replace redirect with JSON response
- Fixes white page issue (fetch API doesn't follow redirects)
- Update .gitignore: allow forms folder but protect .env file
2025-10-27 15:35:46 +01:00
Kirik a34a81e0a1 Merge branch 'main' of github.com:reddragon333/ptp 2025-10-26 21:26:57 +01:00
Kirik 2d7ffb9e72 Major updates:
- Fix baseURL to dev.saguaro-cactus.ru
  - Add permissions management scripts
  - Add domain migration tools
  - Fix .env path in forms
  - Update telegram_bot.py for S3 direct upload
2025-10-26 21:12:57 +01:00
Telegram Bot bec2feb35a Синхронизация репозитория 2025-10-26 22:35:55 +03:00