Initial import: web4beginners editor and deployment setup
7
.dockerignore
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
node_modules
|
||||||
|
.DS_Store
|
||||||
|
*.log
|
||||||
|
.offline-server.log
|
||||||
|
.offline-server.pid
|
||||||
18
.gitignore
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# OS / editor
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Local runtime files
|
||||||
|
.offline-server.log
|
||||||
|
.offline-server.pid
|
||||||
|
|
||||||
|
# Editor auth + reset + rate limit state (never commit)
|
||||||
|
content/.editor-credentials.json
|
||||||
|
content/.editor-reset.json
|
||||||
|
content/.editor-rate-limit.json
|
||||||
|
|
||||||
|
# Generated backups
|
||||||
|
*.bak
|
||||||
|
content/*.bak
|
||||||
|
|
||||||
|
# Optional local tooling
|
||||||
|
node_modules/
|
||||||
1
1698d822c6d3fe9b0c50b3ab44ef524a.js
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM php:8.3-cli-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
EXPOSE 4173
|
||||||
|
|
||||||
|
CMD ["php", "-d", "opcache.enable_cli=0", "-S", "0.0.0.0:4173", "scripts/editor_server.php"]
|
||||||
87
README.md
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
# web4beginners WYSIWYG Multi-Route Deploy
|
||||||
|
|
||||||
|
This project runs a local-content WYSIWYG editor behind Traefik and supports multiple route instances on one domain.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
- `https://mydomain.de/webpage1/`
|
||||||
|
- `https://mydomain.de/webpage2/`
|
||||||
|
- `https://mydomain.de/webpage3/`
|
||||||
|
|
||||||
|
## Files
|
||||||
|
- `docker-compose.traefik-routes.yml`: Traefik-ready multi-service compose file
|
||||||
|
- `scripts/add-webpage.sh`: auto-generate new `webpageN` route + compose service
|
||||||
|
- `scripts/editor_server.php`: local API + static server (`/api/content`, `/api/save`)
|
||||||
|
- See [Brute-Force Protection](#brute-force-protection) for auth hardening details
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
- Docker + Docker Compose
|
||||||
|
- Traefik with external network named `proxy`
|
||||||
|
|
||||||
|
## First deploy
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose.traefik-routes.yml up -d --build
|
||||||
|
```
|
||||||
|
|
||||||
|
## Add a new route (autogenerator)
|
||||||
|
```bash
|
||||||
|
./scripts/add-webpage.sh webpage4 mydomain.de
|
||||||
|
```
|
||||||
|
|
||||||
|
What it does:
|
||||||
|
1. Creates route data folder: `/srv/web4beginners/webpage4/`
|
||||||
|
2. Seeds files if missing:
|
||||||
|
- `/srv/web4beginners/webpage4/web4beginners.com.html`
|
||||||
|
- `/srv/web4beginners/webpage4/site-content.de.json`
|
||||||
|
3. Injects `webpage4` service into `docker-compose.traefik-routes.yml`
|
||||||
|
|
||||||
|
Then redeploy:
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose.traefik-routes.yml up -d --build
|
||||||
|
```
|
||||||
|
|
||||||
|
Open:
|
||||||
|
- `https://mydomain.de/webpage4/`
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
- Edit mode is only active with `?edit=1`.
|
||||||
|
- Saves write both HTML and JSON and create `.bak` backups.
|
||||||
|
- Route names can include letters, numbers, `_`, `-`.
|
||||||
|
|
||||||
|
## Editor claim, login, reset (v1)
|
||||||
|
- New deployment starts as **unclaimed** (viewer-only by default).
|
||||||
|
- Open `https://mydomain.de/webpageN/?edit=1` to run first-time onboarding.
|
||||||
|
- First onboarding claim uses `email + password` and creates:
|
||||||
|
- `content/.editor-credentials.json`
|
||||||
|
- Afterwards, editing requires login. Without auth, users remain viewer.
|
||||||
|
|
||||||
|
### Password reset (without SMTP)
|
||||||
|
- On failed login, trigger reset request.
|
||||||
|
- Server writes reset data to:
|
||||||
|
- `content/.editor-reset.json`
|
||||||
|
- The file contains `reset_url` with token.
|
||||||
|
- Open that URL, set new password, then login again.
|
||||||
|
|
||||||
|
Security note:
|
||||||
|
- `content/.editor-credentials.json` and `content/.editor-reset.json` are blocked from HTTP access by the server router.
|
||||||
|
- Access to these files requires container/filesystem access.
|
||||||
|
- Simple brute-force protection is enabled in-app for login/reset (`content/.editor-rate-limit.json`) with account-based + global per-site thresholds (IP-independent).
|
||||||
|
- L3/L4 DDoS and global rate limiting should be handled at Traefik/network level.
|
||||||
|
|
||||||
|
## Brute-Force Protection
|
||||||
|
- Login/Reset limits are enforced in `scripts/editor_server.php`.
|
||||||
|
- Limiting is account-based + global per site (not IP-bound), so IP hopping is less effective.
|
||||||
|
- Buckets currently used:
|
||||||
|
- `login_account`, `login_global`
|
||||||
|
- `reset_request_account`, `reset_request_global`
|
||||||
|
- `reset_confirm_account`, `reset_confirm_global`
|
||||||
|
- Rate-limit state is stored in:
|
||||||
|
- `content/.editor-rate-limit.json`
|
||||||
|
|
||||||
|
## Optional env overrides
|
||||||
|
- `ROOT_BASE` (default: `/srv/web4beginners`)
|
||||||
|
- `COMPOSE_FILE` (default: `docker-compose.traefik-routes.yml`)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```bash
|
||||||
|
ROOT_BASE=/data/pages COMPOSE_FILE=docker-compose.traefik-routes.yml ./scripts/add-webpage.sh webpage5 mydomain.de
|
||||||
|
```
|
||||||
342
content/site-content.de.json
Normal file
@@ -0,0 +1,342 @@
|
|||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"title": "Home | web4beginners.com",
|
||||||
|
"description": "Daten. Websites. Skills. Anwendungen.",
|
||||||
|
"open_graph": {
|
||||||
|
"og:description": "Daten. Websites. Skills. Anwendungen.",
|
||||||
|
"og:image": "https://web4beginners.com/user/pages/_assets/Share_Img_DF.jpg",
|
||||||
|
"og:site_name": "Klar. Innovativ. Digital - web4beginners GmbH",
|
||||||
|
"og:title": "Klar. Innovativ. Digital - web4beginners GmbH",
|
||||||
|
"og:url": "https://web4beginners.com/"
|
||||||
|
},
|
||||||
|
"twitter": {
|
||||||
|
"twitter:card": "summary_large_image",
|
||||||
|
"twitter:image": "https://web4beginners.com/user/pages/_assets/twitter_card.jpg",
|
||||||
|
"twitter:image:alt": "web4beginners"
|
||||||
|
},
|
||||||
|
"other": {
|
||||||
|
"title": "Klar. Innovativ. Digital - web4beginners GmbH"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"shared": {
|
||||||
|
"common_texts": {
|
||||||
|
"common_001": "Projekte",
|
||||||
|
"common_002": "Awesome",
|
||||||
|
"common_003": "Team",
|
||||||
|
"common_004": "Robbi",
|
||||||
|
"common_005": "Impressum",
|
||||||
|
"common_006": "Datenschutz",
|
||||||
|
"common_007": "Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell, während andere uns helfen, diese Website und Ihre Erfahrung zu verbessern.",
|
||||||
|
"common_008": "Mehr erfahren",
|
||||||
|
"common_009": "Ablehnen",
|
||||||
|
"common_010": "Stimme zu",
|
||||||
|
"common_011": "web4beginners GmbH",
|
||||||
|
"common_012": "Schillerstraße 21",
|
||||||
|
"common_013": "22767 Hamburg",
|
||||||
|
"common_014": "info@web4beginners.com",
|
||||||
|
"common_015": "040 / 35 73 69 11"
|
||||||
|
},
|
||||||
|
"navigation": {
|
||||||
|
"text_keys": [
|
||||||
|
"common_001",
|
||||||
|
"common_002",
|
||||||
|
"common_003",
|
||||||
|
"common_004",
|
||||||
|
"common_005",
|
||||||
|
"common_006"
|
||||||
|
],
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "https://mindboost.app/images/logo.svg",
|
||||||
|
"alt": "mindboost Logo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"cookie_layer": {
|
||||||
|
"text_keys": [
|
||||||
|
"common_007",
|
||||||
|
"common_008",
|
||||||
|
"common_009",
|
||||||
|
"common_010"
|
||||||
|
],
|
||||||
|
"images": []
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"text_keys": [
|
||||||
|
"common_011",
|
||||||
|
"common_012",
|
||||||
|
"common_013",
|
||||||
|
"common_004",
|
||||||
|
"common_014",
|
||||||
|
"common_015",
|
||||||
|
"common_005",
|
||||||
|
"common_006"
|
||||||
|
],
|
||||||
|
"images": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sections": {
|
||||||
|
"hero": {
|
||||||
|
"texts": {
|
||||||
|
"h1_001": "Klar.",
|
||||||
|
"h1_002": "Crazy.",
|
||||||
|
"h1_003": "Fiktiv.",
|
||||||
|
"div_001": "Musik. Websites. Skills. Anwendungen."
|
||||||
|
},
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "web4beginners.com_files/0ffcdedcfc816182f817ac2520731c5868840c6e-heroimage1200x6253.jpg",
|
||||||
|
"alt": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"page_header": {
|
||||||
|
"texts": {
|
||||||
|
"div_001": "Die richtige Form der Kommunikation - individuell, innovativ und auf Augenhöhe.",
|
||||||
|
"div_002": "Wir beraten, planen und gestalten. Und wir setzen Ideen um - alles aus einer Hand."
|
||||||
|
},
|
||||||
|
"images": []
|
||||||
|
},
|
||||||
|
"projects": {
|
||||||
|
"texts": {
|
||||||
|
"span_001": "RuhrFutur gGmbH",
|
||||||
|
"h2_001": "Festivals",
|
||||||
|
"p_001": "Entwicklungen in der Bildungslandschaft kontinuierlich im Blick behalten mit Hilfe von Bildungsmonitoring.",
|
||||||
|
"a_001": "Dream",
|
||||||
|
"span_002": "Cofinpro AG",
|
||||||
|
"h2_002": "Banken-Check",
|
||||||
|
"p_002": "So gesund sind Deutschlands Finanzinstitute. Bankenanalyse-Tool mit mehr als 1.400 Finanzinstituten.",
|
||||||
|
"a_002": "Ansehen",
|
||||||
|
"span_003": "RuhrFutur gGmbH",
|
||||||
|
"h2_003": "Bildungs-bericht",
|
||||||
|
"p_003": "Die Bildungslandschaft 2020 im Ruhrgebiet sichtbar und wissenschaftliche Erkenntnisse erfassbar machen.",
|
||||||
|
"a_003": "Ansehen",
|
||||||
|
"span_004": "Telefónica Deutschland",
|
||||||
|
"h2_004": "Mobilität verstehen",
|
||||||
|
"p_004": "„So bewegt sich Deutschland“ - eine Karte zeigt Bewegungsmuster in ganz Deutschland anhand anonymisierter Mobilfunk-Daten.",
|
||||||
|
"a_004": "Ansehen",
|
||||||
|
"span_005": "Forschungszentrum Jülich",
|
||||||
|
"h2_005": "Wasser-monitor",
|
||||||
|
"p_005": "Das Ziel besteht darin, die Prognosen für den Wasserhaushalt im Boden zu visualisieren.",
|
||||||
|
"a_005": "Ansehen",
|
||||||
|
"span_006": "Tide",
|
||||||
|
"h2_006": "Webseite Relaunch",
|
||||||
|
"p_006": "TIDE ist Hamburgs Communitysender. Zeitgemäße Überarbeitung der Website mit besonderem Fokus auf mobiler Nutzbarkeit.",
|
||||||
|
"a_006": "Ansehen",
|
||||||
|
"a_007": "Mehr Projekte"
|
||||||
|
},
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "web4beginners.com_files/ic_monitoring_1_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_002": {
|
||||||
|
"src": "web4beginners.com_files/c54c8a64fe535bf7249d676fc7cb69cd6f27c3d7-kobimoprojekteimage.jpg",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_003": {
|
||||||
|
"src": "web4beginners.com_files/ic_coins_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_004": {
|
||||||
|
"src": "web4beginners.com_files/026d3a0dcea46e3c6ea8418280abc143a883560f-projektteasercofinp.jpg",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_005": {
|
||||||
|
"src": "web4beginners.com_files/ic_bildung_1_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_006": {
|
||||||
|
"src": "web4beginners.com_files/3b61b2909589fd44ec1af7c47f8a89c1515aebc1-ruhrfuturprojteaser.jpg",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_007": {
|
||||||
|
"src": "web4beginners.com_files/ic_mobility_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_008": {
|
||||||
|
"src": "web4beginners.com_files/07eb52c038c4c75165c7ec1a757d022015dd12f1-telefonicateaser.jpg",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_009": {
|
||||||
|
"src": "web4beginners.com_files/ic_wasser_1_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_010": {
|
||||||
|
"src": "web4beginners.com_files/15542365f25229683d4a118ad7e05d35f620d42a-wassermonitorteaser.jpg",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_011": {
|
||||||
|
"src": "web4beginners.com_files/ic_mic_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_012": {
|
||||||
|
"src": "web4beginners.com_files/9faf87d7e48c5116e700e47a7cd48abf995fdbed-tideprojektteaser85.jpg",
|
||||||
|
"alt": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"texts": {
|
||||||
|
"h2_001": "Wir tun",
|
||||||
|
"h2_002": "es mit",
|
||||||
|
"h2_003": "Leiden",
|
||||||
|
"h2_004": "schaft",
|
||||||
|
"h3_001": "Konzept & Beratung",
|
||||||
|
"li_001": "Konzeption",
|
||||||
|
"li_002": "Innovationsberatung",
|
||||||
|
"li_003": "Workshops",
|
||||||
|
"li_004": "Digitale Strategien",
|
||||||
|
"li_005": "Voice UX",
|
||||||
|
"h3_002": "Design",
|
||||||
|
"li_006": "UI/UX Design",
|
||||||
|
"li_007": "Visualisierungen",
|
||||||
|
"li_008": "Interaktionsdesign",
|
||||||
|
"h3_003": "Lösungen",
|
||||||
|
"li_009": "Websites",
|
||||||
|
"li_010": "Sprachanwendungen",
|
||||||
|
"li_011": "Prototypen",
|
||||||
|
"li_012": "Datenanalysen",
|
||||||
|
"li_013": "Web-Anwendungen"
|
||||||
|
},
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "web4beginners.com_files/ic_fire.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"team": {
|
||||||
|
"texts": {
|
||||||
|
"h2_001": "Der Mensch",
|
||||||
|
"h2_002": "dahinter ist toll",
|
||||||
|
"p_001": "Unaufgeregt. Innovativ. Unkompliziert. Offen. Partnerschaftlich. Zuhörend.",
|
||||||
|
"p_002": "Auf das Wesentliche konzentriert. Die Details im Blick.",
|
||||||
|
"p_003": "Wir bauen Brücken zwischen Nutzern und Inhalten, Menschen und Maschinen, Unternehmen und Technologie.",
|
||||||
|
"a_001": "Das Team kennenlernen"
|
||||||
|
},
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "web4beginners.com_files/ic_team_2_brown.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"awards": {
|
||||||
|
"texts": {
|
||||||
|
"h2_001": "Darauf",
|
||||||
|
"h2_002": "sind wir",
|
||||||
|
"h2_003": "besonders",
|
||||||
|
"h2_004": "stolz",
|
||||||
|
"p_001": "Wir durften in den letzten Jahren für unsere Arbeit viele Preise entgegennehmen. Jeder ehrt uns und bedeutet uns sehr viel. Einige auf die wir besonders stolz sind:",
|
||||||
|
"p_002": "und viele mehr"
|
||||||
|
},
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "web4beginners.com_files/ic_pokal.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_002": {
|
||||||
|
"src": "web4beginners.com_files/dpok@2.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_003": {
|
||||||
|
"src": "web4beginners.com_files/grimmeonline@2.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_004": {
|
||||||
|
"src": "web4beginners.com_files/leadawards.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_005": {
|
||||||
|
"src": "web4beginners.com_files/dt_land@2.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_006": {
|
||||||
|
"src": "web4beginners.com_files/prixeuropa@2.png",
|
||||||
|
"alt": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"texts": {
|
||||||
|
"h2_001": "Kunde",
|
||||||
|
"h2_002": "werden",
|
||||||
|
"a_001": "info@web4beginners.com",
|
||||||
|
"a_002": "040 / 35 73 69 11"
|
||||||
|
},
|
||||||
|
"images": []
|
||||||
|
},
|
||||||
|
"clients": {
|
||||||
|
"texts": {
|
||||||
|
"h2_001": "Mitein",
|
||||||
|
"wbr_001": "ander",
|
||||||
|
"wbr_002": "erfolg",
|
||||||
|
"wbr_003": "reich",
|
||||||
|
"p_001": "und viele andere"
|
||||||
|
},
|
||||||
|
"images": {
|
||||||
|
"img_001": {
|
||||||
|
"src": "web4beginners.com_files/ic_smiley.svg",
|
||||||
|
"alt": "Icon"
|
||||||
|
},
|
||||||
|
"img_002": {
|
||||||
|
"src": "web4beginners.com_files/tagesschau@2.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_003": {
|
||||||
|
"src": "web4beginners.com_files/zdf@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_004": {
|
||||||
|
"src": "web4beginners.com_files/ndr@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_005": {
|
||||||
|
"src": "web4beginners.com_files/google@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_006": {
|
||||||
|
"src": "web4beginners.com_files/stifterverband@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_007": {
|
||||||
|
"src": "web4beginners.com_files/gdv@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_008": {
|
||||||
|
"src": "web4beginners.com_files/telefonica@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_009": {
|
||||||
|
"src": "web4beginners.com_files/brandeins@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_010": {
|
||||||
|
"src": "web4beginners.com_files/shz@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_011": {
|
||||||
|
"src": "web4beginners.com_files/tide@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_012": {
|
||||||
|
"src": "web4beginners.com_files/detektorfm@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
},
|
||||||
|
"img_013": {
|
||||||
|
"src": "web4beginners.com_files/spon@2x.png",
|
||||||
|
"alt": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"partners": {
|
||||||
|
"texts": {
|
||||||
|
"h2_001": "Kooperationen & Partner",
|
||||||
|
"p_001": "Unsere Arbeit lebt von Kooperationen und dem Austausch mit anderen Unternehmen, die in verwandten Themenbereichen ihrer Schwerpunkte haben.",
|
||||||
|
"a_001": "Zu den Partnern"
|
||||||
|
},
|
||||||
|
"images": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
datenfreunde.com.html
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
web4beginners.com.html
|
||||||
1
datenfreunde.com_files
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
web4beginners.com_files
|
||||||
73
docker-compose.traefik-routes.yml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
services:
|
||||||
|
webpage1:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: web4beginners-webpage1
|
||||||
|
volumes:
|
||||||
|
- /srv/web4beginners/webpage1/web4beginners.com.html:/app/web4beginners.com.html
|
||||||
|
- /srv/web4beginners/webpage1/site-content.de.json:/app/content/site-content.de.json
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.webpage1.rule=Host(`mydomain.de`) && PathPrefix(`/webpage1`)
|
||||||
|
- traefik.http.routers.webpage1.entrypoints=websecure
|
||||||
|
- traefik.http.routers.webpage1.tls=true
|
||||||
|
- traefik.http.services.webpage1.loadbalancer.server.port=4173
|
||||||
|
- traefik.http.routers.webpage1.middlewares=webpage1-slash,webpage1-strip
|
||||||
|
- traefik.http.middlewares.webpage1-slash.redirectregex.regex=^https?://([^/]+)/webpage1$
|
||||||
|
- traefik.http.middlewares.webpage1-slash.redirectregex.replacement=https://$${1}/webpage1/
|
||||||
|
- traefik.http.middlewares.webpage1-slash.redirectregex.permanent=true
|
||||||
|
- traefik.http.middlewares.webpage1-strip.stripprefix.prefixes=/webpage1
|
||||||
|
|
||||||
|
webpage2:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: web4beginners-webpage2
|
||||||
|
volumes:
|
||||||
|
- /srv/web4beginners/webpage2/web4beginners.com.html:/app/web4beginners.com.html
|
||||||
|
- /srv/web4beginners/webpage2/site-content.de.json:/app/content/site-content.de.json
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.webpage2.rule=Host(`mydomain.de`) && PathPrefix(`/webpage2`)
|
||||||
|
- traefik.http.routers.webpage2.entrypoints=websecure
|
||||||
|
- traefik.http.routers.webpage2.tls=true
|
||||||
|
- traefik.http.services.webpage2.loadbalancer.server.port=4173
|
||||||
|
- traefik.http.routers.webpage2.middlewares=webpage2-slash,webpage2-strip
|
||||||
|
- traefik.http.middlewares.webpage2-slash.redirectregex.regex=^https?://([^/]+)/webpage2$
|
||||||
|
- traefik.http.middlewares.webpage2-slash.redirectregex.replacement=https://$${1}/webpage2/
|
||||||
|
- traefik.http.middlewares.webpage2-slash.redirectregex.permanent=true
|
||||||
|
- traefik.http.middlewares.webpage2-strip.stripprefix.prefixes=/webpage2
|
||||||
|
|
||||||
|
webpage3:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: web4beginners-webpage3
|
||||||
|
volumes:
|
||||||
|
- /srv/web4beginners/webpage3/web4beginners.com.html:/app/web4beginners.com.html
|
||||||
|
- /srv/web4beginners/webpage3/site-content.de.json:/app/content/site-content.de.json
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.webpage3.rule=Host(`mydomain.de`) && PathPrefix(`/webpage3`)
|
||||||
|
- traefik.http.routers.webpage3.entrypoints=websecure
|
||||||
|
- traefik.http.routers.webpage3.tls=true
|
||||||
|
- traefik.http.services.webpage3.loadbalancer.server.port=4173
|
||||||
|
- traefik.http.routers.webpage3.middlewares=webpage3-slash,webpage3-strip
|
||||||
|
- traefik.http.middlewares.webpage3-slash.redirectregex.regex=^https?://([^/]+)/webpage3$
|
||||||
|
- traefik.http.middlewares.webpage3-slash.redirectregex.replacement=https://$${1}/webpage3/
|
||||||
|
- traefik.http.middlewares.webpage3-slash.redirectregex.permanent=true
|
||||||
|
- traefik.http.middlewares.webpage3-strip.stripprefix.prefixes=/webpage3
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
13
docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
editor:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: web4beginners-editor
|
||||||
|
ports:
|
||||||
|
- "4173:4173"
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
working_dir: /app
|
||||||
|
command: ["php", "-d", "opcache.enable_cli=0", "-S", "0.0.0.0:4173", "scripts/editor_server.php"]
|
||||||
|
restart: unless-stopped
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
date: 2026-03-03
|
||||||
|
topic: dom-json-wysiwyg-sync
|
||||||
|
---
|
||||||
|
|
||||||
|
# DOM to JSON + WYSIWYG Sync
|
||||||
|
|
||||||
|
## What We're Building
|
||||||
|
A content workflow for this static site that starts with DOM-to-JSON extraction and then enables inline visual editing. The immediate goal is a JSON file generated from the current HTML snapshot that captures:
|
||||||
|
- visible page text
|
||||||
|
- page metadata (`title`, description, Open Graph/Twitter meta)
|
||||||
|
- image content (`img src` and `alt`)
|
||||||
|
|
||||||
|
The JSON should preserve subtopics and be structured by DOM context so it maps cleanly to the existing page. The follow-up goal is a lightweight WYSIWYG editor that lets humans change text directly in the page and update image `src`/`alt`, with synchronization between HTML and JSON.
|
||||||
|
|
||||||
|
## Why This Approach
|
||||||
|
The chosen direction prioritizes low-friction adoption in an existing static snapshot where editors still work directly in HTML. A DOM-to-JSON first pass minimizes upfront modeling effort and captures the current content state quickly. Then, a WYSIWYG layer provides direct manipulation while preserving visual context.
|
||||||
|
|
||||||
|
YAGNI rationale: avoid building a full CMS or strict schema-first localization system now. Start with extraction and practical editing primitives, then evolve only if editorial complexity requires it.
|
||||||
|
|
||||||
|
## Key Decisions
|
||||||
|
- Output format: Nested JSON with subtopics.
|
||||||
|
- Extraction scope: Visible page text plus metadata (title/description/Open Graph/Twitter).
|
||||||
|
- Key organization: DOM-first grouping with section-based top-level subtopics.
|
||||||
|
- Duplicate handling: Hybrid strategy. Keep section-local duplicates; dedupe only global/common content.
|
||||||
|
- Product scope: Include both stages in feature intent, but implement DOM-to-JSON extraction first.
|
||||||
|
- Sync model (future WYSIWYG): Bidirectional HTML ↔ JSON sync.
|
||||||
|
- Image editing v1 (future WYSIWYG): Edit `img src` and `alt` only (exclude `srcset`/`picture` initially).
|
||||||
|
- WYSIWYG editing scope v1 (future): Content updates only (text and image properties), no styling/layout editing.
|
||||||
|
- Content identity: Hybrid identification. Reuse existing selectors/IDs where possible and add `data-*` IDs only where needed.
|
||||||
|
|
||||||
|
## Resolved Questions
|
||||||
|
- JSON shape should include subtopics rather than flat keys.
|
||||||
|
- Metadata must be part of extraction.
|
||||||
|
- Human editors will still work against the HTML site, so DOM-oriented extraction is preferred.
|
||||||
|
- Full responsive image source editing is deferred to avoid layout breakage risk.
|
||||||
|
|
||||||
|
## Open Questions
|
||||||
|
- None currently.
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
1. Proceed to planning (`/prompts:workflows-plan`) focused only on step 1: extraction pipeline and JSON structure contract.
|
||||||
|
2. Follow with a second planning pass for step 2: WYSIWYG editing and robust bi-directional sync rules.
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
date: 2026-03-04
|
||||||
|
topic: wysiwyg-inline-editor-sync
|
||||||
|
---
|
||||||
|
|
||||||
|
# WYSIWYG Inline Editor + HTML/JSON Sync
|
||||||
|
|
||||||
|
## What We're Building
|
||||||
|
A local-first WYSIWYG editing mode for the static HTML snapshot where creators can edit page content directly on the rendered page. Text becomes editable on double-click using inline `contenteditable` behavior. Images open a small overlay for editing `src` and `alt` only.
|
||||||
|
|
||||||
|
Edits must update both representations: the HTML content and the extracted content JSON. Persistence is local file write (not browser-only), so creators can save directly to project files during offline editing.
|
||||||
|
|
||||||
|
This phase is content-only. It explicitly excludes CSS/layout editing.
|
||||||
|
|
||||||
|
## Why This Approach
|
||||||
|
Approach A (in-page edit mode + local save service) was selected because it matches the intended user behavior: fast direct edits where content lives visually. It minimizes training and friction for non-technical editors who already think in terms of “change this heading here.”
|
||||||
|
|
||||||
|
YAGNI rationale: keep the first editor narrow and reliable. Only text and image content are editable, and image validation is warning-based (not blocking) to avoid blocking workflows while still reducing accidental visual breakage.
|
||||||
|
|
||||||
|
## Key Decisions
|
||||||
|
- Interaction model: Double-click inline editing for text.
|
||||||
|
- Save behavior: Auto-save on blur/enter plus manual save/undo controls.
|
||||||
|
- Image editing v1: Overlay for `src` + `alt` only.
|
||||||
|
- Ratio validation: Warning (non-blocking), threshold set to 15% difference between current and replacement image aspect ratios.
|
||||||
|
- Persistence model: Direct local file writes to `.html` and `.json` through a local helper service.
|
||||||
|
- Sync model: Bidirectional HTML ↔ JSON.
|
||||||
|
- Conflict default: HTML wins when both sides changed for the same mapped key.
|
||||||
|
- Scope guard: No CSS/layout editing in this phase.
|
||||||
|
|
||||||
|
## Resolved Questions
|
||||||
|
- Inline editing is preferred over panel-based editing.
|
||||||
|
- Save UX should support both auto-save and explicit controls.
|
||||||
|
- Image editing should remain limited to `src`/`alt` in v1.
|
||||||
|
- Ratio checks are advisory to preserve editor flow.
|
||||||
|
- Local file write capability is required for practical offline usage.
|
||||||
|
|
||||||
|
## Open Questions
|
||||||
|
- None currently.
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
1. Move to planning for step 2 (`/prompts:workflows-plan`) with focus on editor UX rules, content identity mapping, and local save contract.
|
||||||
|
2. Keep implementation split into phases: text editing first, then image overlay and ratio warning behavior.
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
---
|
||||||
|
title: "feat: DOM-to-JSON content extraction for static snapshot"
|
||||||
|
type: feat
|
||||||
|
status: completed
|
||||||
|
date: 2026-03-04
|
||||||
|
---
|
||||||
|
|
||||||
|
# feat: DOM-to-JSON content extraction for static snapshot
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
Create a first-stage extraction workflow that converts the existing HTML snapshot into a nested JSON content file. This plan is intentionally limited to extraction and content mapping. It does not include building the WYSIWYG editor yet.
|
||||||
|
|
||||||
|
## Problem Statement / Motivation
|
||||||
|
Content updates are currently tied to manual HTML edits. A JSON representation is needed so text and selected image properties can be adapted more easily and later edited through an interface.
|
||||||
|
|
||||||
|
## Proposed Solution
|
||||||
|
Build a deterministic DOM-to-JSON extraction flow for `web4beginners.com.html` that captures visible text, selected metadata, and image fields (`src`, `alt`).
|
||||||
|
|
||||||
|
The JSON structure should be DOM-first with section-based top-level subtopics, matching the brainstorm decisions and keeping context for editors. Duplicate text handling should follow the agreed hybrid policy: keep section-local duplicates; dedupe only clearly global/common items.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
In scope:
|
||||||
|
- Extract visible text content from page sections
|
||||||
|
- Extract metadata: `title`, `description`, Open Graph, Twitter
|
||||||
|
- Extract image fields: `img src`, `img alt`
|
||||||
|
- Produce nested JSON output aligned with DOM sections
|
||||||
|
- Define stable content identity strategy (reuse existing selectors/IDs; add `data-*` only when needed)
|
||||||
|
|
||||||
|
Out of scope:
|
||||||
|
- WYSIWYG editing UI
|
||||||
|
- Styling/layout editing
|
||||||
|
- Full responsive image source editing (`srcset`, `picture`)
|
||||||
|
- Full bidirectional sync mechanics
|
||||||
|
|
||||||
|
## Technical Considerations
|
||||||
|
- The repository is a static snapshot with bundled/minified assets; there is no existing i18n framework.
|
||||||
|
- Extraction rules must avoid pulling non-content technical strings from scripts/styles.
|
||||||
|
- Section mapping should remain stable even if content text changes.
|
||||||
|
- Output should be deterministic so repeated runs produce predictable key ordering/paths.
|
||||||
|
|
||||||
|
## SpecFlow Analysis
|
||||||
|
Primary flow:
|
||||||
|
1. Input snapshot HTML is parsed.
|
||||||
|
2. Eligible text nodes and target attributes are identified.
|
||||||
|
3. Content is grouped by top-level page sections.
|
||||||
|
4. Metadata and image fields are merged into the same JSON tree.
|
||||||
|
5. Output JSON is written.
|
||||||
|
|
||||||
|
Edge cases to cover:
|
||||||
|
- Empty or whitespace-only nodes
|
||||||
|
- Repeated text across sections
|
||||||
|
- Links/buttons with nested elements
|
||||||
|
- Missing `alt` attributes
|
||||||
|
- Cookie/modal/footer content that may be conditionally visible
|
||||||
|
|
||||||
|
## Acceptance Criteria
|
||||||
|
- [x] A single extraction run generates one nested JSON file from `web4beginners.com.html`.
|
||||||
|
- [x] JSON includes visible page text grouped by section subtopics.
|
||||||
|
- [x] JSON includes `title`, `description`, Open Graph, and Twitter metadata values.
|
||||||
|
- [x] JSON includes `img src` and `img alt` values where present.
|
||||||
|
- [x] Duplicate policy is applied: section-local duplicates kept; global/common duplicates deduped.
|
||||||
|
- [x] Extraction excludes JS/CSS artifacts and non-content noise.
|
||||||
|
- [x] Re-running extraction on unchanged input produces stable output structure.
|
||||||
|
|
||||||
|
## Success Metrics
|
||||||
|
- Editors can locate and update target strings in JSON without editing HTML directly.
|
||||||
|
- JSON organization is understandable by section/context without reverse-engineering selectors.
|
||||||
|
- No unintended layout/content regressions in source HTML (read-only extraction phase).
|
||||||
|
|
||||||
|
## Dependencies & Risks
|
||||||
|
Dependencies:
|
||||||
|
- Final agreement on section boundaries for grouping
|
||||||
|
- Final output file location/name convention
|
||||||
|
|
||||||
|
Risks:
|
||||||
|
- Over-extraction of non-user-facing strings
|
||||||
|
- Unstable keys if selector strategy is inconsistent
|
||||||
|
- Ambiguity around “global/common” duplicate classification
|
||||||
|
|
||||||
|
Mitigations:
|
||||||
|
- Explicit extraction allowlist for elements/attributes
|
||||||
|
- Deterministic key-generation policy
|
||||||
|
- Documented duplicate decision rules with examples
|
||||||
|
|
||||||
|
## References & Research
|
||||||
|
- Brainstorm: `docs/brainstorms/2026-03-03-dom-json-wysiwyg-sync-brainstorm.md`
|
||||||
|
- Source snapshot: `web4beginners.com.html`
|
||||||
|
- Existing site bundle references: `web4beginners.com_files/*`
|
||||||
103
docs/plans/2026-03-04-feat-inline-wysiwyg-html-json-sync-plan.md
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
---
|
||||||
|
title: "feat: Inline WYSIWYG editor with HTML-JSON sync"
|
||||||
|
type: feat
|
||||||
|
status: completed
|
||||||
|
date: 2026-03-04
|
||||||
|
---
|
||||||
|
|
||||||
|
# feat: Inline WYSIWYG editor with HTML-JSON sync
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
Build step 2 of the content workflow: a local-first WYSIWYG editor for the existing static page where creators can directly edit content on the rendered page and persist changes to both HTML and JSON.
|
||||||
|
|
||||||
|
This plan is limited to content editing and synchronization behavior. It explicitly excludes style/layout editing.
|
||||||
|
|
||||||
|
## Problem Statement / Motivation
|
||||||
|
The repository now has extractable structured content (`content/site-content.de.json`) but no practical editing surface for creators. Editors need direct, low-friction page editing (double-click text, click image) while keeping HTML and JSON in sync.
|
||||||
|
|
||||||
|
## Proposed Solution
|
||||||
|
Add an in-page edit mode with inline `contenteditable` text editing and an image overlay editor for `src` and `alt`. Implement autosave (blur/enter) plus manual save/undo controls. Persist edits via a local helper service that writes both `web4beginners.com.html` and `content/site-content.de.json`.
|
||||||
|
|
||||||
|
Synchronization is bidirectional in model intent, with conflict default set to HTML wins when the same mapped key diverges.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
In scope:
|
||||||
|
- Text editing on double-click for editable content nodes
|
||||||
|
- Image editing overlay for `src` and `alt`
|
||||||
|
- Aspect-ratio warning (non-blocking) at 15% threshold
|
||||||
|
- Autosave + manual save/undo controls
|
||||||
|
- Local persistence endpoint to write HTML + JSON
|
||||||
|
- Content identity mapping between DOM elements and JSON keys
|
||||||
|
- Conflict handling policy: HTML wins
|
||||||
|
|
||||||
|
Out of scope:
|
||||||
|
- CSS/layout editing
|
||||||
|
- `srcset`/`picture` editing
|
||||||
|
- Multi-user collaboration or remote persistence
|
||||||
|
- Authentication/authorization layer
|
||||||
|
|
||||||
|
## Technical Considerations
|
||||||
|
- Current site scripts are bundled/minified, so editor behavior should be isolated in a dedicated script layer.
|
||||||
|
- Content identity mapping must be stable enough for repeat edits and sync.
|
||||||
|
- Editing rules should avoid hidden/system nodes (cookie mechanics/scripts/non-content regions unless explicitly intended).
|
||||||
|
- Local persistence requires a trusted local helper process and clear file write boundaries.
|
||||||
|
- Undo scope must be defined (session-level content undo, not full VCS-like history).
|
||||||
|
|
||||||
|
## SpecFlow Analysis
|
||||||
|
Primary flow:
|
||||||
|
1. Editor enters edit mode.
|
||||||
|
2. User double-clicks text node and edits inline.
|
||||||
|
3. User blur/enter triggers autosave path.
|
||||||
|
4. Mapping resolves edited node to JSON key.
|
||||||
|
5. HTML and JSON are both updated and persisted via local helper.
|
||||||
|
|
||||||
|
Image flow:
|
||||||
|
1. User selects editable image.
|
||||||
|
2. Overlay opens with current `src` and `alt`.
|
||||||
|
3. New source is validated; ratio warning shown if aspect ratio differs by >15%.
|
||||||
|
4. User can still save despite warning.
|
||||||
|
5. HTML and JSON are updated and persisted.
|
||||||
|
|
||||||
|
Conflict flow:
|
||||||
|
1. Divergent values detected for same mapped key.
|
||||||
|
2. Default resolution applies: HTML value wins.
|
||||||
|
3. JSON is reconciled to HTML on save.
|
||||||
|
|
||||||
|
## Acceptance Criteria
|
||||||
|
- [x] Double-click enables inline text editing on intended content elements.
|
||||||
|
- [x] Text autosaves on blur/enter and also supports explicit save/undo controls.
|
||||||
|
- [x] Clicking editable images opens an overlay with `src` and `alt` fields.
|
||||||
|
- [x] Image ratio check warns (non-blocking) when replacement differs by >15% aspect ratio.
|
||||||
|
- [x] Save operation persists both `web4beginners.com.html` and `content/site-content.de.json`.
|
||||||
|
- [x] Sync mapping updates the correct JSON key for edited text/image values.
|
||||||
|
- [x] Conflict resolution follows HTML-wins default.
|
||||||
|
- [x] No CSS/layout properties are modified by editor actions.
|
||||||
|
|
||||||
|
## Success Metrics
|
||||||
|
- Editors can modify headings/body text/images directly on page without manual JSON editing.
|
||||||
|
- Saved output remains consistent between HTML and JSON for edited items.
|
||||||
|
- Editing interactions feel immediate and require minimal training.
|
||||||
|
- No unintended style/layout changes caused by the editor.
|
||||||
|
|
||||||
|
## Dependencies & Risks
|
||||||
|
Dependencies:
|
||||||
|
- Defined DOM↔JSON mapping contract for editable nodes
|
||||||
|
- Local helper service runtime available in the editor environment
|
||||||
|
|
||||||
|
Risks:
|
||||||
|
- Incorrect key mapping leading to wrong JSON updates
|
||||||
|
- Over-editability (allowing non-content nodes)
|
||||||
|
- Unexpected side effects from integrating with existing bundled scripts
|
||||||
|
- File write race conditions during rapid autosave
|
||||||
|
|
||||||
|
Mitigations:
|
||||||
|
- Explicit editable-node allowlist and mapping tests
|
||||||
|
- Isolated editor namespace/events
|
||||||
|
- Debounced autosave + write serialization
|
||||||
|
- Dry-run/preview diagnostics for mapping during development
|
||||||
|
|
||||||
|
## References & Research
|
||||||
|
- Brainstorm input: `docs/brainstorms/2026-03-04-wysiwyg-inline-editor-sync-brainstorm.md`
|
||||||
|
- Prior extraction plan: `docs/plans/2026-03-04-feat-dom-to-json-content-extraction-plan.md`
|
||||||
|
- Extractor/source contract: `scripts/extract_dom_content.php`, `content/site-content.de.json`
|
||||||
|
- Target HTML: `web4beginners.com.html`
|
||||||
120
editor/wysiwyg-editor.css
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
.ce-toolbar {
|
||||||
|
position: fixed;
|
||||||
|
right: 16px;
|
||||||
|
bottom: 16px;
|
||||||
|
z-index: 99999;
|
||||||
|
background: #1f2937;
|
||||||
|
color: #fff;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-radius: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 13px;
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-toolbar button {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: #2563eb;
|
||||||
|
color: #fff;
|
||||||
|
padding: 6px 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-status {
|
||||||
|
color: #d1d5db;
|
||||||
|
min-width: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-inline-text {
|
||||||
|
outline: 1px dashed transparent;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-inline-text:hover {
|
||||||
|
outline-color: #60a5fa;
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-text-editing {
|
||||||
|
outline-color: #f59e0b !important;
|
||||||
|
background: rgba(245, 158, 11, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-target {
|
||||||
|
outline: 2px solid transparent;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-target:hover {
|
||||||
|
outline-color: #34d399;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 100000;
|
||||||
|
background: rgba(17, 24, 39, 0.45);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-card {
|
||||||
|
width: min(460px, calc(100vw - 40px));
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 16px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-card h4 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-card label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #374151;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-card input {
|
||||||
|
padding: 8px;
|
||||||
|
border: 1px solid #d1d5db;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-actions button {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-actions [data-ce-cancel] {
|
||||||
|
background: #e5e7eb;
|
||||||
|
color: #111827;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ce-image-overlay-actions [data-ce-apply] {
|
||||||
|
background: #059669;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
793
editor/wysiwyg-editor.js
Normal file
@@ -0,0 +1,793 @@
|
|||||||
|
(function () {
|
||||||
|
const params = new URLSearchParams(window.location.search);
|
||||||
|
if (params.get("edit") !== "1") return;
|
||||||
|
|
||||||
|
const state = {
|
||||||
|
content: null,
|
||||||
|
textTargets: new Map(),
|
||||||
|
imageTargets: new Map(),
|
||||||
|
sharedTextTargets: new Map(),
|
||||||
|
dirtyText: new Map(),
|
||||||
|
dirtyImages: new Map(),
|
||||||
|
undoStack: [],
|
||||||
|
autoSaveTimer: null,
|
||||||
|
saving: false,
|
||||||
|
toolbar: null,
|
||||||
|
statusEl: null,
|
||||||
|
authToken: null,
|
||||||
|
ownerEmail: "",
|
||||||
|
};
|
||||||
|
const apiBase = computeApiBasePath();
|
||||||
|
const TOKEN_STORAGE_KEY = "web4beginners_editor_token";
|
||||||
|
|
||||||
|
const SECTION_ROOTS = {
|
||||||
|
hero: "main section.module-hero-teaser",
|
||||||
|
page_header: "main section.page-header",
|
||||||
|
projects: "main section.module-projects-teaser",
|
||||||
|
services: "main section:has(.services-teaser__content)",
|
||||||
|
team: "main section.text-image",
|
||||||
|
awards: "main section:has(.awards-teaser__content)",
|
||||||
|
contact: "main section.contact-teaser",
|
||||||
|
clients: "main section:has(.clients-teaser__content)",
|
||||||
|
};
|
||||||
|
|
||||||
|
const SHARED_ROOTS = {
|
||||||
|
navigation: "header.page-head",
|
||||||
|
cookie_layer: "#cookie-layer",
|
||||||
|
footer: "footer.site-footer",
|
||||||
|
};
|
||||||
|
|
||||||
|
init().catch((error) => {
|
||||||
|
console.error("[WYSIWYG] init failed", error);
|
||||||
|
alert("WYSIWYG init failed. Check console.");
|
||||||
|
});
|
||||||
|
|
||||||
|
async function init() {
|
||||||
|
injectCssClass();
|
||||||
|
createToolbar();
|
||||||
|
|
||||||
|
await handleResetTokenFlow();
|
||||||
|
const ready = await ensureEditorSession();
|
||||||
|
if (!ready) {
|
||||||
|
setStatus("Viewer mode (not authorized)");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = await fetch(`${apiBase}/api/content`, { cache: "no-store" });
|
||||||
|
if (!response.ok) throw new Error(`Failed to load ${apiBase}/api/content`);
|
||||||
|
state.content = await response.json();
|
||||||
|
|
||||||
|
mapSectionTextTargets();
|
||||||
|
mapSharedTextTargets();
|
||||||
|
mapSectionImageTargets();
|
||||||
|
mapSharedImageTargets();
|
||||||
|
|
||||||
|
setStatus("Edit mode ready");
|
||||||
|
}
|
||||||
|
|
||||||
|
function injectCssClass() {
|
||||||
|
document.documentElement.classList.add("ce-edit-mode");
|
||||||
|
}
|
||||||
|
|
||||||
|
function createToolbar() {
|
||||||
|
const toolbar = document.createElement("div");
|
||||||
|
toolbar.className = "ce-toolbar";
|
||||||
|
toolbar.innerHTML = [
|
||||||
|
'<strong>Editor Mode</strong>',
|
||||||
|
'<button type="button" data-ce-save>Save</button>',
|
||||||
|
'<button type="button" data-ce-undo>Undo</button>',
|
||||||
|
'<button type="button" data-ce-reset>Reset</button>',
|
||||||
|
'<button type="button" data-ce-logout>Logout</button>',
|
||||||
|
'<span class="ce-status" data-ce-status>Loading…</span>',
|
||||||
|
].join(" ");
|
||||||
|
|
||||||
|
document.body.appendChild(toolbar);
|
||||||
|
state.toolbar = toolbar;
|
||||||
|
state.statusEl = toolbar.querySelector("[data-ce-status]");
|
||||||
|
|
||||||
|
toolbar.querySelector("[data-ce-save]").addEventListener("click", () => saveNow());
|
||||||
|
toolbar.querySelector("[data-ce-undo]").addEventListener("click", () => undoLast());
|
||||||
|
toolbar.querySelector("[data-ce-reset]").addEventListener("click", () => triggerResetRequest());
|
||||||
|
toolbar.querySelector("[data-ce-logout]").addEventListener("click", () => logoutEditor());
|
||||||
|
}
|
||||||
|
|
||||||
|
function setStatus(message) {
|
||||||
|
if (state.statusEl) state.statusEl.textContent = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function handleResetTokenFlow() {
|
||||||
|
const resetToken = params.get("reset_token");
|
||||||
|
if (!resetToken) return;
|
||||||
|
|
||||||
|
const newPassword = window.prompt("Reset token erkannt. Neues Passwort (mind. 8 Zeichen):");
|
||||||
|
if (!newPassword) return;
|
||||||
|
if (newPassword.length < 8) {
|
||||||
|
alert("Passwort zu kurz.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = await fetch(`${apiBase}/api/editor/reset/confirm`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ token: resetToken, newPassword }),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
const text = await response.text();
|
||||||
|
alert(`Reset fehlgeschlagen: ${text}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const url = new URL(window.location.href);
|
||||||
|
url.searchParams.delete("reset_token");
|
||||||
|
history.replaceState({}, "", url.toString());
|
||||||
|
alert("Passwort wurde zurückgesetzt. Bitte neu einloggen.");
|
||||||
|
}
|
||||||
|
|
||||||
|
async function ensureEditorSession() {
|
||||||
|
state.authToken = getStoredToken();
|
||||||
|
|
||||||
|
let status = await fetchEditorStatus();
|
||||||
|
if (!status.claimed) {
|
||||||
|
const claimed = await runClaimOnboarding();
|
||||||
|
if (!claimed) return false;
|
||||||
|
status = await fetchEditorStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!status.authenticated) {
|
||||||
|
const loggedIn = await runLoginPrompt(status.owner_email || "");
|
||||||
|
if (!loggedIn) return false;
|
||||||
|
status = await fetchEditorStatus();
|
||||||
|
if (!status.authenticated) return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
state.ownerEmail = status.owner_email || "";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function fetchEditorStatus() {
|
||||||
|
const response = await fetch(`${apiBase}/api/editor/status`, {
|
||||||
|
headers: authHeaders(),
|
||||||
|
cache: "no-store",
|
||||||
|
});
|
||||||
|
if (!response.ok) throw new Error("Failed to load editor status.");
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runClaimOnboarding() {
|
||||||
|
const email = window.prompt("Ersteinrichtung: Editor E-Mail");
|
||||||
|
if (!email) return false;
|
||||||
|
const password = window.prompt("Ersteinrichtung: Editor Passwort (mind. 8 Zeichen)");
|
||||||
|
if (!password || password.length < 8) {
|
||||||
|
alert("Passwort zu kurz.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const response = await fetch(`${apiBase}/api/editor/claim`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ email, password }),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
const text = await response.text();
|
||||||
|
alert(`Claim fehlgeschlagen: ${text}`);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = await response.json();
|
||||||
|
if (data.token) {
|
||||||
|
state.authToken = data.token;
|
||||||
|
setStoredToken(data.token);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runLoginPrompt(defaultEmail) {
|
||||||
|
const email = window.prompt("Editor Login E-Mail", defaultEmail || "");
|
||||||
|
if (!email) return false;
|
||||||
|
const password = window.prompt("Editor Passwort");
|
||||||
|
if (!password) return false;
|
||||||
|
|
||||||
|
const response = await fetch(`${apiBase}/api/editor/login`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ email, password }),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
const wantsReset = window.confirm(
|
||||||
|
"Login fehlgeschlagen. Passwort-Reset anfordern (Token wird in content/.editor-reset.json erzeugt)?"
|
||||||
|
);
|
||||||
|
if (wantsReset) {
|
||||||
|
await triggerResetRequest(email);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = await response.json();
|
||||||
|
if (data.token) {
|
||||||
|
state.authToken = data.token;
|
||||||
|
setStoredToken(data.token);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function triggerResetRequest(prefilledEmail) {
|
||||||
|
const email = prefilledEmail || window.prompt("Passwort-Reset: E-Mail");
|
||||||
|
if (!email) return;
|
||||||
|
|
||||||
|
const response = await fetch(`${apiBase}/api/editor/reset/request`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ email }),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
alert("Reset konnte nicht angefordert werden.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
alert(
|
||||||
|
"Reset angefordert. Prüfe im Container die Datei content/.editor-reset.json und nutze den reset_url Link."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function logoutEditor() {
|
||||||
|
try {
|
||||||
|
await fetch(`${apiBase}/api/editor/logout`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: authHeaders(),
|
||||||
|
});
|
||||||
|
} catch (_e) {
|
||||||
|
// ignore network failure here
|
||||||
|
}
|
||||||
|
clearStoredToken();
|
||||||
|
state.authToken = null;
|
||||||
|
alert("Abgemeldet. Seite neu laden für Viewer-Modus.");
|
||||||
|
}
|
||||||
|
|
||||||
|
function authHeaders() {
|
||||||
|
const headers = {};
|
||||||
|
if (state.authToken) {
|
||||||
|
headers.Authorization = `Bearer ${state.authToken}`;
|
||||||
|
}
|
||||||
|
return headers;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getStoredToken() {
|
||||||
|
try {
|
||||||
|
return window.sessionStorage.getItem(TOKEN_STORAGE_KEY);
|
||||||
|
} catch (_e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function setStoredToken(token) {
|
||||||
|
try {
|
||||||
|
window.sessionStorage.setItem(TOKEN_STORAGE_KEY, token);
|
||||||
|
} catch (_e) {
|
||||||
|
// ignore storage failures
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearStoredToken() {
|
||||||
|
try {
|
||||||
|
window.sessionStorage.removeItem(TOKEN_STORAGE_KEY);
|
||||||
|
} catch (_e) {
|
||||||
|
// ignore storage failures
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function mapSectionTextTargets() {
|
||||||
|
const sections = state.content.sections || {};
|
||||||
|
const textImageSections = Array.from(document.querySelectorAll("main section.text-image"));
|
||||||
|
|
||||||
|
Object.keys(sections).forEach((sectionName) => {
|
||||||
|
const sectionData = sections[sectionName];
|
||||||
|
if (!sectionData || !sectionData.texts) return;
|
||||||
|
|
||||||
|
let root = null;
|
||||||
|
if (sectionName === "team") root = textImageSections[0] || null;
|
||||||
|
else if (sectionName === "partners") root = textImageSections[1] || null;
|
||||||
|
else root = queryFirstCompat(SECTION_ROOTS[sectionName]);
|
||||||
|
|
||||||
|
if (!root) return;
|
||||||
|
|
||||||
|
const nodes = collectVisibleTextNodes(root);
|
||||||
|
const counters = {};
|
||||||
|
|
||||||
|
nodes.forEach((node) => {
|
||||||
|
const parent = node.parentElement;
|
||||||
|
if (!parent) return;
|
||||||
|
|
||||||
|
const tag = parent.tagName.toLowerCase();
|
||||||
|
counters[tag] = (counters[tag] || 0) + 1;
|
||||||
|
const key = `${tag}_${String(counters[tag]).padStart(3, "0")}`;
|
||||||
|
|
||||||
|
if (!(key in sectionData.texts)) return;
|
||||||
|
|
||||||
|
const id = `section:${sectionName}:${key}`;
|
||||||
|
const initialValue = normalizeText(node.nodeValue || "");
|
||||||
|
const wrapped = wrapTextNode(node, id);
|
||||||
|
if (!wrapped) return;
|
||||||
|
|
||||||
|
const target = {
|
||||||
|
id,
|
||||||
|
scope: "section",
|
||||||
|
section: sectionName,
|
||||||
|
key,
|
||||||
|
el: wrapped,
|
||||||
|
savedValue: initialValue,
|
||||||
|
currentValue: initialValue,
|
||||||
|
};
|
||||||
|
|
||||||
|
state.textTargets.set(id, target);
|
||||||
|
wireTextTarget(target);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function mapSharedTextTargets() {
|
||||||
|
const shared = state.content.shared || {};
|
||||||
|
|
||||||
|
Object.entries(SHARED_ROOTS).forEach(([area, selector]) => {
|
||||||
|
const root = queryFirstCompat(selector);
|
||||||
|
const areaData = shared[area];
|
||||||
|
if (!root || !areaData || !Array.isArray(areaData.text_keys)) return;
|
||||||
|
|
||||||
|
const nodes = collectVisibleTextNodes(root);
|
||||||
|
nodes.forEach((node, index) => {
|
||||||
|
const key = areaData.text_keys[index];
|
||||||
|
if (!key) return;
|
||||||
|
|
||||||
|
const initial = normalizeText(node.nodeValue || "");
|
||||||
|
const id = `shared:${key}`;
|
||||||
|
const wrapped = wrapTextNode(node, id);
|
||||||
|
if (!wrapped) return;
|
||||||
|
|
||||||
|
const target = {
|
||||||
|
id,
|
||||||
|
scope: "shared",
|
||||||
|
area,
|
||||||
|
key,
|
||||||
|
el: wrapped,
|
||||||
|
savedValue: initial,
|
||||||
|
currentValue: initial,
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!state.sharedTextTargets.has(key)) state.sharedTextTargets.set(key, []);
|
||||||
|
state.sharedTextTargets.get(key).push(target);
|
||||||
|
|
||||||
|
state.textTargets.set(`${id}:${area}:${index}`, target);
|
||||||
|
wireTextTarget(target);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function mapSectionImageTargets() {
|
||||||
|
const sections = state.content.sections || {};
|
||||||
|
const textImageSections = Array.from(document.querySelectorAll("main section.text-image"));
|
||||||
|
|
||||||
|
Object.keys(sections).forEach((sectionName) => {
|
||||||
|
const sectionData = sections[sectionName];
|
||||||
|
if (!sectionData || !sectionData.images) return;
|
||||||
|
|
||||||
|
let root = null;
|
||||||
|
if (sectionName === "team") root = textImageSections[0] || null;
|
||||||
|
else if (sectionName === "partners") root = textImageSections[1] || null;
|
||||||
|
else root = queryFirstCompat(SECTION_ROOTS[sectionName]);
|
||||||
|
if (!root) return;
|
||||||
|
|
||||||
|
const images = Array.from(root.querySelectorAll("img[src]"));
|
||||||
|
images.forEach((img, i) => {
|
||||||
|
const key = `img_${String(i + 1).padStart(3, "0")}`;
|
||||||
|
if (!(key in sectionData.images)) return;
|
||||||
|
|
||||||
|
const id = `section:${sectionName}:${key}`;
|
||||||
|
const target = {
|
||||||
|
id,
|
||||||
|
scope: "section",
|
||||||
|
section: sectionName,
|
||||||
|
key,
|
||||||
|
el: img,
|
||||||
|
savedValue: {
|
||||||
|
src: img.getAttribute("src") || "",
|
||||||
|
alt: img.getAttribute("alt") || "",
|
||||||
|
},
|
||||||
|
currentValue: {
|
||||||
|
src: img.getAttribute("src") || "",
|
||||||
|
alt: img.getAttribute("alt") || "",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
state.imageTargets.set(id, target);
|
||||||
|
wireImageTarget(target);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function mapSharedImageTargets() {
|
||||||
|
const shared = state.content.shared || {};
|
||||||
|
|
||||||
|
Object.entries(SHARED_ROOTS).forEach(([area, selector]) => {
|
||||||
|
const root = queryFirstCompat(selector);
|
||||||
|
const areaData = shared[area];
|
||||||
|
if (!root || !areaData || !areaData.images) return;
|
||||||
|
|
||||||
|
const images = Array.from(root.querySelectorAll("img[src]"));
|
||||||
|
images.forEach((img, i) => {
|
||||||
|
const key = `img_${String(i + 1).padStart(3, "0")}`;
|
||||||
|
if (!(key in areaData.images)) return;
|
||||||
|
|
||||||
|
const id = `shared:${area}:${key}`;
|
||||||
|
const target = {
|
||||||
|
id,
|
||||||
|
scope: "shared",
|
||||||
|
area,
|
||||||
|
key,
|
||||||
|
el: img,
|
||||||
|
savedValue: {
|
||||||
|
src: img.getAttribute("src") || "",
|
||||||
|
alt: img.getAttribute("alt") || "",
|
||||||
|
},
|
||||||
|
currentValue: {
|
||||||
|
src: img.getAttribute("src") || "",
|
||||||
|
alt: img.getAttribute("alt") || "",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
state.imageTargets.set(id, target);
|
||||||
|
wireImageTarget(target);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function wireTextTarget(target) {
|
||||||
|
target.el.classList.add("ce-text-target");
|
||||||
|
|
||||||
|
target.el.addEventListener("click", (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
});
|
||||||
|
|
||||||
|
target.el.addEventListener("dblclick", (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
startInlineEdit(target);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function startInlineEdit(target) {
|
||||||
|
const el = target.el;
|
||||||
|
if (el.isContentEditable) return;
|
||||||
|
|
||||||
|
el.setAttribute("contenteditable", "true");
|
||||||
|
el.classList.add("ce-text-editing");
|
||||||
|
placeCaretAtEnd(el);
|
||||||
|
|
||||||
|
const onKeyDown = (e) => {
|
||||||
|
if (e.key === "Enter") {
|
||||||
|
e.preventDefault();
|
||||||
|
el.blur();
|
||||||
|
} else if (e.key === "Escape") {
|
||||||
|
e.preventDefault();
|
||||||
|
el.textContent = target.currentValue;
|
||||||
|
el.blur();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const onBlur = () => {
|
||||||
|
el.removeAttribute("contenteditable");
|
||||||
|
el.classList.remove("ce-text-editing");
|
||||||
|
el.removeEventListener("keydown", onKeyDown);
|
||||||
|
el.removeEventListener("blur", onBlur);
|
||||||
|
|
||||||
|
const nextValue = normalizeText(el.textContent || "");
|
||||||
|
applyTextChange(target, nextValue, true);
|
||||||
|
queueAutoSave();
|
||||||
|
};
|
||||||
|
|
||||||
|
el.addEventListener("keydown", onKeyDown);
|
||||||
|
el.addEventListener("blur", onBlur);
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyTextChange(target, nextValue, pushUndo) {
|
||||||
|
const prevValue = target.currentValue;
|
||||||
|
if (nextValue === prevValue) return;
|
||||||
|
|
||||||
|
if (pushUndo) {
|
||||||
|
state.undoStack.push({ type: "text", id: target.id, prevValue, nextValue });
|
||||||
|
}
|
||||||
|
|
||||||
|
if (target.scope === "shared") {
|
||||||
|
const group = state.sharedTextTargets.get(target.key) || [];
|
||||||
|
group.forEach((t) => {
|
||||||
|
t.currentValue = nextValue;
|
||||||
|
t.el.textContent = nextValue;
|
||||||
|
});
|
||||||
|
state.dirtyText.set(`shared:${target.key}`, nextValue);
|
||||||
|
} else {
|
||||||
|
target.currentValue = nextValue;
|
||||||
|
target.el.textContent = nextValue;
|
||||||
|
state.dirtyText.set(target.id, nextValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
markDirtyStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
function wireImageTarget(target) {
|
||||||
|
target.el.classList.add("ce-image-target");
|
||||||
|
target.el.addEventListener("click", (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
openImageOverlay(target);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function openImageOverlay(target) {
|
||||||
|
closeImageOverlay();
|
||||||
|
|
||||||
|
const overlay = document.createElement("div");
|
||||||
|
overlay.className = "ce-image-overlay";
|
||||||
|
overlay.innerHTML = [
|
||||||
|
'<div class="ce-image-overlay-card">',
|
||||||
|
"<h4>Image Content</h4>",
|
||||||
|
'<label>src <input type="text" data-ce-src /></label>',
|
||||||
|
'<label>alt <input type="text" data-ce-alt /></label>',
|
||||||
|
'<div class="ce-image-overlay-actions">',
|
||||||
|
'<button type="button" data-ce-cancel>Cancel</button>',
|
||||||
|
'<button type="button" data-ce-apply>Apply</button>',
|
||||||
|
"</div>",
|
||||||
|
"</div>",
|
||||||
|
].join("");
|
||||||
|
|
||||||
|
const srcInput = overlay.querySelector("[data-ce-src]");
|
||||||
|
const altInput = overlay.querySelector("[data-ce-alt]");
|
||||||
|
srcInput.value = target.currentValue.src;
|
||||||
|
altInput.value = target.currentValue.alt;
|
||||||
|
|
||||||
|
overlay.querySelector("[data-ce-cancel]").addEventListener("click", () => closeImageOverlay());
|
||||||
|
overlay.querySelector("[data-ce-apply]").addEventListener("click", async () => {
|
||||||
|
const nextSrc = srcInput.value.trim();
|
||||||
|
const nextAlt = normalizeText(altInput.value || "");
|
||||||
|
|
||||||
|
const allow = await checkImageRatioWarning(target.currentValue.src, nextSrc);
|
||||||
|
if (!allow) return;
|
||||||
|
|
||||||
|
applyImageChange(target, { src: nextSrc || target.currentValue.src, alt: nextAlt }, true);
|
||||||
|
closeImageOverlay();
|
||||||
|
queueAutoSave();
|
||||||
|
});
|
||||||
|
|
||||||
|
document.body.appendChild(overlay);
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeImageOverlay() {
|
||||||
|
const existing = document.querySelector(".ce-image-overlay");
|
||||||
|
if (existing) existing.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function checkImageRatioWarning(currentSrc, nextSrc) {
|
||||||
|
if (!nextSrc || nextSrc === currentSrc) return true;
|
||||||
|
|
||||||
|
try {
|
||||||
|
const currentRatio = await loadImageRatio(currentSrc);
|
||||||
|
const nextRatio = await loadImageRatio(nextSrc);
|
||||||
|
|
||||||
|
if (!currentRatio || !nextRatio) return true;
|
||||||
|
|
||||||
|
const diff = Math.abs(nextRatio - currentRatio) / currentRatio;
|
||||||
|
if (diff > 0.15) {
|
||||||
|
return window.confirm(
|
||||||
|
"Warning: the new image ratio differs by more than 15%. Save anyway?"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
} catch (_e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadImageRatio(src) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const img = new Image();
|
||||||
|
img.onload = () => {
|
||||||
|
if (!img.naturalWidth || !img.naturalHeight) return resolve(null);
|
||||||
|
resolve(img.naturalWidth / img.naturalHeight);
|
||||||
|
};
|
||||||
|
img.onerror = () => reject(new Error("image load failed"));
|
||||||
|
img.src = src;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyImageChange(target, nextValue, pushUndo) {
|
||||||
|
const prevValue = { ...target.currentValue };
|
||||||
|
if (prevValue.src === nextValue.src && prevValue.alt === nextValue.alt) return;
|
||||||
|
|
||||||
|
if (pushUndo) {
|
||||||
|
state.undoStack.push({
|
||||||
|
type: "image",
|
||||||
|
id: target.id,
|
||||||
|
prevValue,
|
||||||
|
nextValue: { ...nextValue },
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
target.currentValue = { ...nextValue };
|
||||||
|
target.el.setAttribute("src", nextValue.src);
|
||||||
|
target.el.setAttribute("alt", nextValue.alt);
|
||||||
|
state.dirtyImages.set(target.id, { ...nextValue });
|
||||||
|
|
||||||
|
markDirtyStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
function undoLast() {
|
||||||
|
const action = state.undoStack.pop();
|
||||||
|
if (!action) return;
|
||||||
|
|
||||||
|
if (action.type === "text") {
|
||||||
|
const target = findTextTargetById(action.id);
|
||||||
|
if (!target) return;
|
||||||
|
applyTextChange(target, action.prevValue, false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (action.type === "image") {
|
||||||
|
const target = state.imageTargets.get(action.id);
|
||||||
|
if (!target) return;
|
||||||
|
applyImageChange(target, action.prevValue, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function findTextTargetById(id) {
|
||||||
|
for (const target of state.textTargets.values()) {
|
||||||
|
if (target.id === id) return target;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function queueAutoSave() {
|
||||||
|
clearTimeout(state.autoSaveTimer);
|
||||||
|
state.autoSaveTimer = setTimeout(() => saveNow(), 500);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function saveNow() {
|
||||||
|
if (state.saving) return;
|
||||||
|
if (state.dirtyText.size === 0 && state.dirtyImages.size === 0) {
|
||||||
|
setStatus("No changes");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
state.saving = true;
|
||||||
|
setStatus("Saving…");
|
||||||
|
|
||||||
|
const textChanges = [];
|
||||||
|
const imageChanges = [];
|
||||||
|
|
||||||
|
for (const [id, value] of state.dirtyText.entries()) {
|
||||||
|
if (id.startsWith("shared:")) {
|
||||||
|
textChanges.push({ scope: "shared", key: id.replace("shared:", ""), value });
|
||||||
|
} else {
|
||||||
|
const [, section, key] = id.split(":");
|
||||||
|
textChanges.push({ scope: "section", section, key, value });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const [id, value] of state.dirtyImages.entries()) {
|
||||||
|
const parts = id.split(":");
|
||||||
|
if (parts[0] === "shared") {
|
||||||
|
imageChanges.push({ scope: "shared", area: parts[1], key: parts[2], ...value });
|
||||||
|
} else {
|
||||||
|
imageChanges.push({ scope: "section", section: parts[1], key: parts[2], ...value });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const response = await fetch(`${apiBase}/api/save`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json", ...authHeaders() },
|
||||||
|
body: JSON.stringify({ textChanges, imageChanges }),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
const text = await response.text();
|
||||||
|
throw new Error(text || "Save failed");
|
||||||
|
}
|
||||||
|
|
||||||
|
markSaved();
|
||||||
|
setStatus("Saved");
|
||||||
|
} catch (error) {
|
||||||
|
console.error("[WYSIWYG] save error", error);
|
||||||
|
setStatus("Save failed");
|
||||||
|
alert("Save failed. Check console.");
|
||||||
|
} finally {
|
||||||
|
state.saving = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function markSaved() {
|
||||||
|
for (const target of state.textTargets.values()) {
|
||||||
|
target.savedValue = target.currentValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const target of state.imageTargets.values()) {
|
||||||
|
target.savedValue = { ...target.currentValue };
|
||||||
|
}
|
||||||
|
|
||||||
|
state.dirtyText.clear();
|
||||||
|
state.dirtyImages.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
function markDirtyStatus() {
|
||||||
|
const total = state.dirtyText.size + state.dirtyImages.size;
|
||||||
|
setStatus(total > 0 ? `${total} unsaved change(s)` : "No changes");
|
||||||
|
}
|
||||||
|
|
||||||
|
function collectVisibleTextNodes(root) {
|
||||||
|
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT, {
|
||||||
|
acceptNode(node) {
|
||||||
|
if (!node || !node.parentElement) return NodeFilter.FILTER_REJECT;
|
||||||
|
const parentTag = node.parentElement.tagName.toLowerCase();
|
||||||
|
if (["script", "style", "noscript", "template", "svg", "path", "defs"].includes(parentTag)) {
|
||||||
|
return NodeFilter.FILTER_REJECT;
|
||||||
|
}
|
||||||
|
if (normalizeText(node.nodeValue || "") === "") return NodeFilter.FILTER_REJECT;
|
||||||
|
return NodeFilter.FILTER_ACCEPT;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const nodes = [];
|
||||||
|
let current = walker.nextNode();
|
||||||
|
while (current) {
|
||||||
|
nodes.push(current);
|
||||||
|
current = walker.nextNode();
|
||||||
|
}
|
||||||
|
return nodes;
|
||||||
|
}
|
||||||
|
|
||||||
|
function wrapTextNode(node, id) {
|
||||||
|
if (!node.parentNode) return null;
|
||||||
|
const span = document.createElement("span");
|
||||||
|
span.className = "ce-inline-text";
|
||||||
|
span.dataset.ceTextId = id;
|
||||||
|
span.textContent = node.nodeValue || "";
|
||||||
|
node.parentNode.replaceChild(span, node);
|
||||||
|
return span;
|
||||||
|
}
|
||||||
|
|
||||||
|
function placeCaretAtEnd(el) {
|
||||||
|
el.focus();
|
||||||
|
const range = document.createRange();
|
||||||
|
range.selectNodeContents(el);
|
||||||
|
range.collapse(false);
|
||||||
|
const sel = window.getSelection();
|
||||||
|
if (!sel) return;
|
||||||
|
sel.removeAllRanges();
|
||||||
|
sel.addRange(range);
|
||||||
|
}
|
||||||
|
|
||||||
|
function normalizeText(value) {
|
||||||
|
return String(value || "").replace(/\s+/g, " ").trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
function queryFirstCompat(selector) {
|
||||||
|
if (!selector) return null;
|
||||||
|
|
||||||
|
if (selector.includes(":has(")) {
|
||||||
|
const base = selector.slice(0, selector.indexOf(":has("));
|
||||||
|
const inner = selector.slice(selector.indexOf(":has(") + 5, -1);
|
||||||
|
const candidates = Array.from(document.querySelectorAll(base));
|
||||||
|
return candidates.find((el) => el.querySelector(inner)) || null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return document.querySelector(selector);
|
||||||
|
}
|
||||||
|
|
||||||
|
function computeApiBasePath() {
|
||||||
|
const path = window.location.pathname || "/";
|
||||||
|
const parts = path.split("/").filter(Boolean);
|
||||||
|
if (parts.length === 0) return "";
|
||||||
|
return `/${parts[0]}`;
|
||||||
|
}
|
||||||
|
})();
|
||||||
1
f73f70e70b0ac5f1d474abd842fb4b24.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"===typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=1)})([function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));function r(n,e,t,r){function o(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,u){function i(n){try{f(r.next(n))}catch(e){u(e)}}function c(n){try{f(r["throw"](n))}catch(e){u(e)}}function f(n){n.done?t(n.value):o(n.value).then(i,c)}f((r=r.apply(n,e||[])).next())}))}},function(n,e,t){"use strict";t.r(e);var r=t(0);let o=null;function u(){return Object(r["a"])(this,void 0,void 0,(function*(){return o||(o=new Promise((n,e)=>{document.addEventListener("initialized",()=>{n()})})),o}))}window.jsReady=u}]);
|
||||||
1
index.html
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
web4beginners.com.html
|
||||||
97
scripts/add-webpage.sh
Executable file
@@ -0,0 +1,97 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if [[ $# -lt 1 || $# -gt 2 ]]; then
|
||||||
|
echo "Usage: $0 <route-name> [domain]"
|
||||||
|
echo "Example: $0 webpage4 mydomain.de"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
NAME="$1"
|
||||||
|
DOMAIN="${2:-mydomain.de}"
|
||||||
|
|
||||||
|
if [[ ! "$NAME" =~ ^[a-zA-Z0-9][a-zA-Z0-9_-]*$ ]]; then
|
||||||
|
echo "Invalid route name: $NAME"
|
||||||
|
echo "Allowed: letters, numbers, underscore, dash"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ROOT_BASE="${ROOT_BASE:-/srv/web4beginners}"
|
||||||
|
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.traefik-routes.yml}"
|
||||||
|
ROOT="${ROOT_BASE}/${NAME}"
|
||||||
|
|
||||||
|
if [[ ! -f "$COMPOSE_FILE" ]]; then
|
||||||
|
echo "Compose file not found: $COMPOSE_FILE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$ROOT"
|
||||||
|
|
||||||
|
if [[ ! -f "$ROOT/web4beginners.com.html" ]]; then
|
||||||
|
cp web4beginners.com.html "$ROOT/web4beginners.com.html"
|
||||||
|
echo "Created: $ROOT/web4beginners.com.html"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "$ROOT/site-content.de.json" ]]; then
|
||||||
|
cp content/site-content.de.json "$ROOT/site-content.de.json"
|
||||||
|
echo "Created: $ROOT/site-content.de.json"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if rg -q "^ ${NAME}:$" "$COMPOSE_FILE"; then
|
||||||
|
echo "Service '${NAME}' already exists in $COMPOSE_FILE"
|
||||||
|
else
|
||||||
|
block_file="$(mktemp)"
|
||||||
|
tmp_file="$(mktemp)"
|
||||||
|
|
||||||
|
cat > "$block_file" <<YAML
|
||||||
|
|
||||||
|
${NAME}:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: web4beginners-${NAME}
|
||||||
|
volumes:
|
||||||
|
- ${ROOT}/web4beginners.com.html:/app/web4beginners.com.html
|
||||||
|
- ${ROOT}/site-content.de.json:/app/content/site-content.de.json
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.${NAME}.rule=Host(\`${DOMAIN}\`) && PathPrefix(\`/${NAME}\`)
|
||||||
|
- traefik.http.routers.${NAME}.entrypoints=websecure
|
||||||
|
- traefik.http.routers.${NAME}.tls=true
|
||||||
|
- traefik.http.services.${NAME}.loadbalancer.server.port=4173
|
||||||
|
- traefik.http.routers.${NAME}.middlewares=${NAME}-slash,${NAME}-strip
|
||||||
|
- traefik.http.middlewares.${NAME}-slash.redirectregex.regex=^https?://([^/]+)/${NAME}$
|
||||||
|
- traefik.http.middlewares.${NAME}-slash.redirectregex.replacement=https://\$\${1}/${NAME}/
|
||||||
|
- traefik.http.middlewares.${NAME}-slash.redirectregex.permanent=true
|
||||||
|
- traefik.http.middlewares.${NAME}-strip.stripprefix.prefixes=/${NAME}
|
||||||
|
YAML
|
||||||
|
|
||||||
|
awk -v block_file="$block_file" '
|
||||||
|
BEGIN { inserted = 0 }
|
||||||
|
/^networks:/ && inserted == 0 {
|
||||||
|
while ((getline line < block_file) > 0) print line
|
||||||
|
close(block_file)
|
||||||
|
inserted = 1
|
||||||
|
}
|
||||||
|
{ print }
|
||||||
|
END {
|
||||||
|
if (inserted == 0) {
|
||||||
|
while ((getline line < block_file) > 0) print line
|
||||||
|
close(block_file)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
' "$COMPOSE_FILE" > "$tmp_file"
|
||||||
|
|
||||||
|
mv "$tmp_file" "$COMPOSE_FILE"
|
||||||
|
rm -f "$block_file"
|
||||||
|
|
||||||
|
echo "Inserted service '${NAME}' into $COMPOSE_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Next steps:"
|
||||||
|
echo "1) docker compose -f $COMPOSE_FILE up -d --build"
|
||||||
|
echo "2) Open: https://${DOMAIN}/${NAME}/"
|
||||||
1013
scripts/editor_server.php
Normal file
8
scripts/extract_content.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
INPUT_HTML="${1:-web4beginners.com.html}"
|
||||||
|
OUTPUT_JSON="${2:-content/site-content.de.json}"
|
||||||
|
|
||||||
|
mkdir -p "$(dirname "$OUTPUT_JSON")"
|
||||||
|
php -d opcache.enable_cli=0 scripts/extract_dom_content.php "$INPUT_HTML" "$OUTPUT_JSON"
|
||||||
318
scripts/extract_dom_content.php
Executable file
@@ -0,0 +1,318 @@
|
|||||||
|
#!/usr/bin/env php
|
||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
if ($argc < 3) {
|
||||||
|
fwrite(STDERR, "Usage: php scripts/extract_dom_content.php <input_html> <output_json>\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$inputHtml = $argv[1];
|
||||||
|
$outputJson = $argv[2];
|
||||||
|
|
||||||
|
if (!is_file($inputHtml)) {
|
||||||
|
fwrite(STDERR, "Input file not found: {$inputHtml}\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
libxml_use_internal_errors(true);
|
||||||
|
$dom = new DOMDocument();
|
||||||
|
$html = file_get_contents($inputHtml);
|
||||||
|
if ($html === false) {
|
||||||
|
fwrite(STDERR, "Failed to read input file: {$inputHtml}\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$loaded = $dom->loadHTML($html, LIBXML_NOERROR | LIBXML_NOWARNING | LIBXML_NONET);
|
||||||
|
if (!$loaded) {
|
||||||
|
fwrite(STDERR, "Failed to parse HTML: {$inputHtml}\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$xpath = new DOMXPath($dom);
|
||||||
|
|
||||||
|
$data = [
|
||||||
|
'meta' => extractMeta($xpath, $dom),
|
||||||
|
'shared' => extractShared($xpath),
|
||||||
|
'sections' => extractMainSections($xpath),
|
||||||
|
];
|
||||||
|
|
||||||
|
$json = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||||
|
if ($json === false) {
|
||||||
|
fwrite(STDERR, "Failed to encode JSON output.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (file_put_contents($outputJson, $json . "\n") === false) {
|
||||||
|
fwrite(STDERR, "Failed to write output file: {$outputJson}\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
fwrite(STDOUT, "Wrote extracted content to {$outputJson}\n");
|
||||||
|
|
||||||
|
function extractMeta(DOMXPath $xpath, DOMDocument $dom): array
|
||||||
|
{
|
||||||
|
$meta = [
|
||||||
|
'title' => normalizeText($dom->getElementsByTagName('title')->item(0)?->textContent ?? ''),
|
||||||
|
'description' => firstAttrValue($xpath, "//meta[@name='description']", 'content'),
|
||||||
|
'open_graph' => [],
|
||||||
|
'twitter' => [],
|
||||||
|
'other' => [],
|
||||||
|
];
|
||||||
|
|
||||||
|
$ogNodes = $xpath->query("//meta[starts-with(@property, 'og:') or starts-with(@name, 'og:')]");
|
||||||
|
if ($ogNodes instanceof DOMNodeList) {
|
||||||
|
foreach ($ogNodes as $node) {
|
||||||
|
if (!$node instanceof DOMElement) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$name = trim((string) ($node->getAttribute('property') ?: $node->getAttribute('name')));
|
||||||
|
$value = normalizeText((string) $node->getAttribute('content'));
|
||||||
|
if ($name !== '' && $value !== '') {
|
||||||
|
$meta['open_graph'][$name] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$twitterNodes = $xpath->query("//meta[starts-with(@name, 'twitter:')]");
|
||||||
|
if ($twitterNodes instanceof DOMNodeList) {
|
||||||
|
foreach ($twitterNodes as $node) {
|
||||||
|
if (!$node instanceof DOMElement) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$name = trim((string) $node->getAttribute('name'));
|
||||||
|
$value = normalizeText((string) $node->getAttribute('content'));
|
||||||
|
if ($name !== '' && $value !== '') {
|
||||||
|
$meta['twitter'][$name] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$otherMetaNames = ['title'];
|
||||||
|
foreach ($otherMetaNames as $metaName) {
|
||||||
|
$value = firstAttrValue($xpath, "//meta[@name='{$metaName}']", 'content');
|
||||||
|
if ($value !== '') {
|
||||||
|
$meta['other'][$metaName] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ksort($meta['open_graph']);
|
||||||
|
ksort($meta['twitter']);
|
||||||
|
ksort($meta['other']);
|
||||||
|
|
||||||
|
return $meta;
|
||||||
|
}
|
||||||
|
|
||||||
|
function extractShared(DOMXPath $xpath): array
|
||||||
|
{
|
||||||
|
$commonTexts = [];
|
||||||
|
$textToKey = [];
|
||||||
|
$shared = [
|
||||||
|
'common_texts' => [],
|
||||||
|
'navigation' => ['text_keys' => [], 'images' => []],
|
||||||
|
'cookie_layer' => ['text_keys' => [], 'images' => []],
|
||||||
|
'footer' => ['text_keys' => [], 'images' => []],
|
||||||
|
];
|
||||||
|
|
||||||
|
$sharedRoots = [
|
||||||
|
'navigation' => firstNode($xpath, "//header[contains(@class, 'page-head')]"),
|
||||||
|
'cookie_layer' => firstNode($xpath, "//*[@id='cookie-layer']"),
|
||||||
|
'footer' => firstNode($xpath, "//footer[contains(@class, 'site-footer')]"),
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($sharedRoots as $name => $root) {
|
||||||
|
if (!$root instanceof DOMNode) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$texts = extractTexts($xpath, $root);
|
||||||
|
foreach ($texts as $text) {
|
||||||
|
if (!isset($textToKey[$text])) {
|
||||||
|
$key = 'common_' . str_pad((string) (count($commonTexts) + 1), 3, '0', STR_PAD_LEFT);
|
||||||
|
$textToKey[$text] = $key;
|
||||||
|
$commonTexts[$key] = $text;
|
||||||
|
}
|
||||||
|
$shared[$name]['text_keys'][] = $textToKey[$text];
|
||||||
|
}
|
||||||
|
|
||||||
|
$shared[$name]['images'] = extractImages($xpath, $root);
|
||||||
|
}
|
||||||
|
|
||||||
|
$shared['common_texts'] = $commonTexts;
|
||||||
|
return $shared;
|
||||||
|
}
|
||||||
|
|
||||||
|
function extractMainSections(DOMXPath $xpath): array
|
||||||
|
{
|
||||||
|
$sections = [];
|
||||||
|
|
||||||
|
$sectionQueries = [
|
||||||
|
'hero' => "//main//section[contains(@class, 'module-hero-teaser')]",
|
||||||
|
'page_header' => "//main//section[contains(@class, 'page-header')]",
|
||||||
|
'projects' => "//main//section[contains(@class, 'module-projects-teaser')]",
|
||||||
|
'services' => "//main//section[.//*[contains(@class, 'services-teaser__content')]]",
|
||||||
|
'team' => "(//main//section[contains(@class, 'text-image')])[1]",
|
||||||
|
'awards' => "//main//section[.//*[contains(@class, 'awards-teaser__content')]]",
|
||||||
|
'contact' => "//main//section[contains(@class, 'contact-teaser')]",
|
||||||
|
'clients' => "//main//section[.//*[contains(@class, 'clients-teaser__content')]]",
|
||||||
|
'partners' => "(//main//section[contains(@class, 'text-image')])[2]",
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($sectionQueries as $name => $query) {
|
||||||
|
$root = firstNode($xpath, $query);
|
||||||
|
if (!$root instanceof DOMNode) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$sections[$name] = [
|
||||||
|
'texts' => extractKeyValueTexts($xpath, $root),
|
||||||
|
'images' => extractImages($xpath, $root),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $sections;
|
||||||
|
}
|
||||||
|
|
||||||
|
function extractKeyValueTexts(DOMXPath $xpath, DOMNode $root): array
|
||||||
|
{
|
||||||
|
$textNodes = $xpath->query('.//text()', $root);
|
||||||
|
if (!$textNodes instanceof DOMNodeList) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$counters = [];
|
||||||
|
$texts = [];
|
||||||
|
|
||||||
|
foreach ($textNodes as $textNode) {
|
||||||
|
if (!$textNode instanceof DOMText) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$value = normalizeText($textNode->wholeText);
|
||||||
|
if ($value === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isVisibleTextNode($textNode)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$parent = $textNode->parentNode;
|
||||||
|
if (!$parent instanceof DOMElement) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$tag = strtolower($parent->tagName);
|
||||||
|
$counters[$tag] = ($counters[$tag] ?? 0) + 1;
|
||||||
|
$key = $tag . '_' . str_pad((string) $counters[$tag], 3, '0', STR_PAD_LEFT);
|
||||||
|
|
||||||
|
$texts[$key] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $texts;
|
||||||
|
}
|
||||||
|
|
||||||
|
function extractTexts(DOMXPath $xpath, DOMNode $root): array
|
||||||
|
{
|
||||||
|
$textNodes = $xpath->query('.//text()', $root);
|
||||||
|
if (!$textNodes instanceof DOMNodeList) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$texts = [];
|
||||||
|
foreach ($textNodes as $textNode) {
|
||||||
|
if (!$textNode instanceof DOMText) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$value = normalizeText($textNode->wholeText);
|
||||||
|
if ($value === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isVisibleTextNode($textNode)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$texts[] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $texts;
|
||||||
|
}
|
||||||
|
|
||||||
|
function extractImages(DOMXPath $xpath, DOMNode $root): array
|
||||||
|
{
|
||||||
|
$imageNodes = $xpath->query('.//img[@src]', $root);
|
||||||
|
if (!$imageNodes instanceof DOMNodeList) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$images = [];
|
||||||
|
$index = 1;
|
||||||
|
|
||||||
|
foreach ($imageNodes as $imageNode) {
|
||||||
|
if (!$imageNode instanceof DOMElement) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$src = trim((string) $imageNode->getAttribute('src'));
|
||||||
|
if ($src === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$key = 'img_' . str_pad((string) $index, 3, '0', STR_PAD_LEFT);
|
||||||
|
$images[$key] = [
|
||||||
|
'src' => $src,
|
||||||
|
'alt' => normalizeText((string) $imageNode->getAttribute('alt')),
|
||||||
|
];
|
||||||
|
$index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $images;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isVisibleTextNode(DOMText $textNode): bool
|
||||||
|
{
|
||||||
|
$skipTags = [
|
||||||
|
'script', 'style', 'noscript', 'template', 'svg', 'path', 'defs',
|
||||||
|
];
|
||||||
|
|
||||||
|
$node = $textNode->parentNode;
|
||||||
|
while ($node instanceof DOMNode) {
|
||||||
|
if ($node instanceof DOMElement) {
|
||||||
|
$tag = strtolower($node->tagName);
|
||||||
|
if (in_array($tag, $skipTags, true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$node = $node->parentNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function normalizeText(string $value): string
|
||||||
|
{
|
||||||
|
$value = str_replace(["\r", "\n", "\t"], ' ', $value);
|
||||||
|
$value = preg_replace('/\s+/u', ' ', $value) ?? $value;
|
||||||
|
return trim($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
function firstNode(DOMXPath $xpath, string $query): ?DOMNode
|
||||||
|
{
|
||||||
|
$nodes = $xpath->query($query);
|
||||||
|
if (!$nodes instanceof DOMNodeList || $nodes->length === 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$node = $nodes->item(0);
|
||||||
|
return $node instanceof DOMNode ? $node : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function firstAttrValue(DOMXPath $xpath, string $query, string $attr): string
|
||||||
|
{
|
||||||
|
$node = firstNode($xpath, $query);
|
||||||
|
if (!$node instanceof DOMElement) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
return normalizeText((string) $node->getAttribute($attr));
|
||||||
|
}
|
||||||
4
scripts/new-route.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
exec "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/add-webpage.sh" "$@"
|
||||||
10
scripts/run_editor_server.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
|
cd "$ROOT_DIR"
|
||||||
|
|
||||||
|
PORT="${1:-4173}"
|
||||||
|
|
||||||
|
ln -sf web4beginners.com.html index.html
|
||||||
|
php -d opcache.enable_cli=0 -S 127.0.0.1:"$PORT" scripts/editor_server.php
|
||||||
34
serve-offline.sh
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
cd "$ROOT_DIR"
|
||||||
|
|
||||||
|
PORT="${1:-4173}"
|
||||||
|
PID_FILE=".offline-server.pid"
|
||||||
|
LOG_FILE=".offline-server.log"
|
||||||
|
|
||||||
|
if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
|
||||||
|
echo "Offline server already running on PID $(cat "$PID_FILE")."
|
||||||
|
echo "Open: http://127.0.0.1:${PORT}/"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$PID_FILE"
|
||||||
|
|
||||||
|
ln -sf web4beginners.com.html index.html
|
||||||
|
nohup python3 -m http.server "$PORT" --bind 127.0.0.1 >"$LOG_FILE" 2>&1 &
|
||||||
|
SERVER_PID=$!
|
||||||
|
echo "$SERVER_PID" > "$PID_FILE"
|
||||||
|
|
||||||
|
sleep 0.3
|
||||||
|
if ! kill -0 "$SERVER_PID" 2>/dev/null; then
|
||||||
|
echo "Failed to start offline server on port $PORT."
|
||||||
|
echo "Check log: $ROOT_DIR/$LOG_FILE"
|
||||||
|
rm -f "$PID_FILE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Offline server started (PID $SERVER_PID)."
|
||||||
|
echo "Open: http://127.0.0.1:${PORT}/"
|
||||||
|
echo "Log: $ROOT_DIR/$LOG_FILE"
|
||||||
22
stop-offline.sh
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
cd "$ROOT_DIR"
|
||||||
|
|
||||||
|
PID_FILE=".offline-server.pid"
|
||||||
|
|
||||||
|
if [[ ! -f "$PID_FILE" ]]; then
|
||||||
|
echo "No PID file found. Server may already be stopped."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
PID="$(cat "$PID_FILE")"
|
||||||
|
if kill -0 "$PID" 2>/dev/null; then
|
||||||
|
kill "$PID"
|
||||||
|
echo "Stopped offline server PID $PID."
|
||||||
|
else
|
||||||
|
echo "Process $PID is not running."
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$PID_FILE"
|
||||||
614
web4beginners.com.html
Normal file
@@ -0,0 +1,614 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html><head lang="de">
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Home | web4beginners.com</title>
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="generator" content="GravCMS">
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="title" content="Klar. Innovativ. Digital - web4beginners GmbH">
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="description" content="Daten. Websites. Skills. Anwendungen.">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:image" content="https://web4beginners.com/user/pages/_assets/Share_Img_DF.jpg">
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:site_name" content="Klar. Innovativ. Digital - web4beginners GmbH">
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="twitter:image:alt" content="web4beginners">
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="twitter:image" content="https://web4beginners.com/user/pages/_assets/twitter_card.jpg">
|
||||||
|
|
||||||
|
|
||||||
|
<meta name="og:url" content="https://web4beginners.com/">
|
||||||
|
|
||||||
|
<meta name="og:title" content="Klar. Innovativ. Digital - web4beginners GmbH">
|
||||||
|
|
||||||
|
<meta name="og:description" content="Daten. Websites. Skills. Anwendungen.">
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="https://web4beginners.com/user/themes/web4beginners/assets/favicon/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="https://web4beginners.com/user/themes/web4beginners/assets/favicon/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="https://web4beginners.com/user/themes/web4beginners/assets/favicon/favicon-16x16.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="https://web4beginners.com/user/themes/web4beginners/assets/favicon/android-chrome-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="512x512" href="https://web4beginners.com/user/themes/web4beginners/assets/favicon/android-chrome-512x512.png">
|
||||||
|
<link rel="mask-icon" href="https://web4beginners.com/user/themes/web4beginners/assets/favicon/safari-pinned-tab.svg" color="#5bbad5">
|
||||||
|
<meta name="msapplication-TileColor" content="#da532c">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link href="web4beginners.com_files/ee792949df0da81967291f5675ce6b3b.css" type="text/css" rel="stylesheet">
|
||||||
|
<link href="editor/wysiwyg-editor.css" type="text/css" rel="stylesheet">
|
||||||
|
|
||||||
|
<script src="web4beginners.com_files/f73f70e70b0ac5f1d474abd842fb4b24.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
<script data-name="google_analytics" async="" src="web4beginners.com_files/google-analytics_analytics.js"></script></head>
|
||||||
|
<body data-ua="G-79HSR2GSX9" class="search_plugin_added">
|
||||||
|
|
||||||
|
<div class="spacer"></div>
|
||||||
|
<div class="main-stage">
|
||||||
|
|
||||||
|
|
||||||
|
<header class="page-head" style="top: 0rem;">
|
||||||
|
<div class="page-head__inner">
|
||||||
|
<nav class="prm-nav page-head__navigation" role="navigation">
|
||||||
|
<input type="checkbox" class="prm-nav__mobile-toggle" id="prm-nav__mobile-toggle-checkbox">
|
||||||
|
<label for="prm-nav__mobile-toggle-checkbox" class="prm-nav__mobile-toggle-icon">
|
||||||
|
<div class="spinner"></div>
|
||||||
|
<div class="spinner"></div>
|
||||||
|
<div class="spinner"></div>
|
||||||
|
</label>
|
||||||
|
<div class="prn-nav__content">
|
||||||
|
<ul class="prm-nav__list">
|
||||||
|
<li class=""><a href="#_projects">Projekte</a></li>
|
||||||
|
<li class=""><a href="#_services-teaser">Awesome</a></li>
|
||||||
|
<li class="prm-nav__break">
|
||||||
|
</li><li class=""><a href="#_team-teaser">Team</a></li>
|
||||||
|
<li class=""><a href="#_contact-teaser">Robbi</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="prm-nav__meta">
|
||||||
|
<li class="font-link-text-small"><a href="https://web4beginners.com/impressum">Impressum</a></li>
|
||||||
|
<li class="font-link-text-small"><a href="https://web4beginners.com/datenschutz">Datenschutz</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<a href="https://web4beginners.com/" title="" class="page-head__logo">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/logo-df.svg 1x" media="(max-width: 992px)">
|
||||||
|
<source srcset="" media="(min-width: 993px)">
|
||||||
|
<img class="page-head__logo-image" loading="lazy" src="https://mindboost.app/images/logo.svg" alt="mindboost Logo">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<div class="page-head__spacer" style="height: 181px;"></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<main id="main" role="main" class="cf">
|
||||||
|
<section class="module-hero-teaser brush-bottom-white">
|
||||||
|
<div class="module-hero-teaser__content">
|
||||||
|
<h1 class="font-headline-1 module-hero-teaser__headline animation brush-overlay-hero animate">Klar.<br>Crazy.<br>Fiktiv.</h1>
|
||||||
|
|
||||||
|
<div class="font-intro module-hero-teaser__intro animation animate">Musik. Websites. Skills. Anwendungen.</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="module-hero-teaser__background animation animate">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/0ffcdedcfc816182f817ac2520731c5868840c6e-heroimage1200x6253.jpg 1x, web4beginners.com_files/524569d400cf68ef1cf160c58a8b501a139a8a81-heroimage1200x62532.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/0ffcdedcfc816182f817ac2520731c5868840c6e-heroimage1200x6253.jpg 1x, web4beginners.com_files/524569d400cf68ef1cf160c58a8b501a139a8a81-heroimage1200x62532.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-hero-teaser__background-image" loading="lazy" src="web4beginners.com_files/0ffcdedcfc816182f817ac2520731c5868840c6e-heroimage1200x6253.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section class="page-header">
|
||||||
|
<div class="page-header__copytext font-copy">Die richtige Form der Kommunikation - individuell, innovativ und auf Augenhöhe. <br>
|
||||||
|
|
||||||
|
Wir beraten, planen und gestalten. Und wir setzen Ideen um - alles aus einer Hand.</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<a class="jump-to-anchor" name="_projects"></a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="module-projects-teaser">
|
||||||
|
<section class="module-project-teaser animation animate">
|
||||||
|
|
||||||
|
<div class="module-project-teaser__content module-project-teaser__align-left">
|
||||||
|
<div class="module-project-teaser__content-inner ">
|
||||||
|
<span class="animation font-topline-teaser animate">RuhrFutur gGmbH</span>
|
||||||
|
|
||||||
|
<h2 class="module-project-teaser__headline animation brush-overlay-headline font-headline-1 animate">Festivals</h2>
|
||||||
|
|
||||||
|
<p class="font-copy animation animate">Entwicklungen in der Bildungslandschaft kontinuierlich im Blick behalten mit Hilfe von Bildungsmonitoring.</p>
|
||||||
|
|
||||||
|
<img loading="lazy" src="web4beginners.com_files/ic_monitoring_1_brown.svg" class="svg-icon module-project-teaser__icon animation animate" alt="Icon">
|
||||||
|
<div class="module-project-teaser__button-container">
|
||||||
|
<a href="https://web4beginners.com/projects/bildungsmonitoring" title="" class="btn btn-standard module-project-teaser__button" target="">Dream</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="animation module-project-teaser__image-container module-project-teaser__align-right brush-bottom-white animate">
|
||||||
|
<a class="module-project-teaser__image-link" href="https://web4beginners.com/projects/bildungsmonitoring">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/c54c8a64fe535bf7249d676fc7cb69cd6f27c3d7-kobimoprojekteimage.jpg 1x, web4beginners.com_files/e679b01b355748edfb67d2d16f52570f63266e6c-kobimoprojekteimage.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/c54c8a64fe535bf7249d676fc7cb69cd6f27c3d7-kobimoprojekteimage.jpg 1x, web4beginners.com_files/e679b01b355748edfb67d2d16f52570f63266e6c-kobimoprojekteimage.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-project-teaser__image grayscale-on-hover" loading="lazy" src="web4beginners.com_files/c54c8a64fe535bf7249d676fc7cb69cd6f27c3d7-kobimoprojekteimage.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="module-project-teaser animation animate">
|
||||||
|
|
||||||
|
<div class="module-project-teaser__content module-project-teaser__align-right">
|
||||||
|
<div class="module-project-teaser__content-inner ">
|
||||||
|
<span class="animation font-topline-teaser animate">Cofinpro AG</span>
|
||||||
|
|
||||||
|
<h2 class="module-project-teaser__headline animation brush-overlay-headline font-headline-1 animate">Banken-Check</h2>
|
||||||
|
|
||||||
|
<p class="font-copy animation animate">So gesund sind Deutschlands Finanzinstitute. Bankenanalyse-Tool mit mehr als 1.400 Finanzinstituten.</p>
|
||||||
|
|
||||||
|
<img loading="lazy" src="web4beginners.com_files/ic_coins_brown.svg" class="svg-icon module-project-teaser__icon animation animate" alt="Icon">
|
||||||
|
<div class="module-project-teaser__button-container">
|
||||||
|
<a href="https://web4beginners.com/projects/banken-check" title="" class="btn btn-standard module-project-teaser__button" target="">Ansehen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="animation module-project-teaser__image-container module-project-teaser__align-left brush-bottom-white animate">
|
||||||
|
<a class="module-project-teaser__image-link" href="https://web4beginners.com/projects/banken-check">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/026d3a0dcea46e3c6ea8418280abc143a883560f-projektteasercofinp.jpg 1x, web4beginners.com_files/b1b5ffb75041c644f7fe52034c6e71e0ddabc103-projektteasercofinp.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/026d3a0dcea46e3c6ea8418280abc143a883560f-projektteasercofinp.jpg 1x, web4beginners.com_files/b1b5ffb75041c644f7fe52034c6e71e0ddabc103-projektteasercofinp.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-project-teaser__image grayscale-on-hover" loading="lazy" src="web4beginners.com_files/026d3a0dcea46e3c6ea8418280abc143a883560f-projektteasercofinp.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="module-project-teaser animation animate">
|
||||||
|
|
||||||
|
<div class="module-project-teaser__content module-project-teaser__align-left">
|
||||||
|
<div class="module-project-teaser__content-inner ">
|
||||||
|
<span class="animation font-topline-teaser animate">RuhrFutur gGmbH</span>
|
||||||
|
|
||||||
|
<h2 class="module-project-teaser__headline animation brush-overlay-headline font-headline-1 animate">Bildungs-bericht</h2>
|
||||||
|
|
||||||
|
<p class="font-copy animation">Die Bildungslandschaft 2020 im Ruhrgebiet sichtbar und wissenschaftliche Erkenntnisse erfassbar machen.</p>
|
||||||
|
|
||||||
|
<img loading="lazy" src="web4beginners.com_files/ic_bildung_1_brown.svg" class="svg-icon module-project-teaser__icon animation" alt="Icon">
|
||||||
|
<div class="module-project-teaser__button-container">
|
||||||
|
<a href="https://web4beginners.com/projects/bildungsbericht" title="" class="btn btn-standard module-project-teaser__button" target="">Ansehen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="animation module-project-teaser__image-container module-project-teaser__align-right brush-bottom-white">
|
||||||
|
<a class="module-project-teaser__image-link" href="https://web4beginners.com/projects/bildungsbericht">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/3b61b2909589fd44ec1af7c47f8a89c1515aebc1-ruhrfuturprojteaser.jpg 1x, web4beginners.com_files/3915f694fef49b9b513d693e0e6a5b1c347aa7c0-ruhrfuturprojteaser.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/3b61b2909589fd44ec1af7c47f8a89c1515aebc1-ruhrfuturprojteaser.jpg 1x, web4beginners.com_files/3915f694fef49b9b513d693e0e6a5b1c347aa7c0-ruhrfuturprojteaser.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-project-teaser__image grayscale-on-hover" loading="lazy" src="web4beginners.com_files/3b61b2909589fd44ec1af7c47f8a89c1515aebc1-ruhrfuturprojteaser.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="module-project-teaser animation">
|
||||||
|
|
||||||
|
<div class="module-project-teaser__content module-project-teaser__align-right">
|
||||||
|
<div class="module-project-teaser__content-inner ">
|
||||||
|
<span class="animation font-topline-teaser">Telefónica Deutschland</span>
|
||||||
|
|
||||||
|
<h2 class="module-project-teaser__headline animation brush-overlay-headline font-headline-1">Mobilität verstehen</h2>
|
||||||
|
|
||||||
|
<p class="font-copy animation">„So bewegt sich Deutschland“ - eine Karte zeigt Bewegungsmuster in ganz Deutschland anhand anonymisierter Mobilfunk-Daten.</p>
|
||||||
|
|
||||||
|
<img loading="lazy" src="web4beginners.com_files/ic_mobility_brown.svg" class="svg-icon module-project-teaser__icon animation" alt="Icon">
|
||||||
|
<div class="module-project-teaser__button-container">
|
||||||
|
<a href="https://web4beginners.com/projects/telefonica" title="" class="btn btn-standard module-project-teaser__button" target="">Ansehen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="animation module-project-teaser__image-container module-project-teaser__align-left brush-bottom-white">
|
||||||
|
<a class="module-project-teaser__image-link" href="https://web4beginners.com/projects/telefonica">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/07eb52c038c4c75165c7ec1a757d022015dd12f1-telefonicateaser.jpg 1x, web4beginners.com_files/307019ce368b35d809ed78f56dc025ce04c0cc07-telefonicateaser2x.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/07eb52c038c4c75165c7ec1a757d022015dd12f1-telefonicateaser.jpg 1x, web4beginners.com_files/307019ce368b35d809ed78f56dc025ce04c0cc07-telefonicateaser2x.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-project-teaser__image grayscale-on-hover" loading="lazy" src="web4beginners.com_files/07eb52c038c4c75165c7ec1a757d022015dd12f1-telefonicateaser.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="module-project-teaser animation">
|
||||||
|
|
||||||
|
<div class="module-project-teaser__content module-project-teaser__align-left">
|
||||||
|
<div class="module-project-teaser__content-inner ">
|
||||||
|
<span class="animation font-topline-teaser">Forschungszentrum Jülich</span>
|
||||||
|
|
||||||
|
<h2 class="module-project-teaser__headline animation brush-overlay-headline font-headline-1">Wasser-monitor</h2>
|
||||||
|
|
||||||
|
<p class="font-copy animation">Das Ziel besteht darin, die Prognosen für den Wasserhaushalt im Boden zu visualisieren.</p>
|
||||||
|
|
||||||
|
<img loading="lazy" src="web4beginners.com_files/ic_wasser_1_brown.svg" class="svg-icon module-project-teaser__icon animation" alt="Icon">
|
||||||
|
<div class="module-project-teaser__button-container">
|
||||||
|
<a href="https://web4beginners.com/projects/wassermonitor" title="" class="btn btn-standard module-project-teaser__button" target="">Ansehen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="animation module-project-teaser__image-container module-project-teaser__align-right brush-bottom-white">
|
||||||
|
<a class="module-project-teaser__image-link" href="https://web4beginners.com/projects/wassermonitor">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/15542365f25229683d4a118ad7e05d35f620d42a-wassermonitorteaser.jpg 1x, web4beginners.com_files/20dc495acdb78d71a5e6cf98a8556e5bef366e8c-wassermonitorteaser.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/15542365f25229683d4a118ad7e05d35f620d42a-wassermonitorteaser.jpg 1x, web4beginners.com_files/20dc495acdb78d71a5e6cf98a8556e5bef366e8c-wassermonitorteaser.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-project-teaser__image grayscale-on-hover" loading="lazy" src="web4beginners.com_files/15542365f25229683d4a118ad7e05d35f620d42a-wassermonitorteaser.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="module-project-teaser animation">
|
||||||
|
|
||||||
|
<div class="module-project-teaser__content module-project-teaser__align-right">
|
||||||
|
<div class="module-project-teaser__content-inner ">
|
||||||
|
<span class="animation font-topline-teaser">Tide</span>
|
||||||
|
|
||||||
|
<h2 class="module-project-teaser__headline animation brush-overlay-headline font-headline-1">Webseite Relaunch</h2>
|
||||||
|
|
||||||
|
<p class="font-copy animation">TIDE ist Hamburgs Communitysender. Zeitgemäße Überarbeitung der Website mit besonderem Fokus auf mobiler Nutzbarkeit.</p>
|
||||||
|
|
||||||
|
<img loading="lazy" src="web4beginners.com_files/ic_mic_brown.svg" class="svg-icon module-project-teaser__icon animation" alt="Icon">
|
||||||
|
<div class="module-project-teaser__button-container">
|
||||||
|
<a href="https://web4beginners.com/projects/tide" title="" class="btn btn-standard module-project-teaser__button" target="">Ansehen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="animation module-project-teaser__image-container module-project-teaser__align-left brush-bottom-white">
|
||||||
|
<a class="module-project-teaser__image-link" href="https://web4beginners.com/projects/tide">
|
||||||
|
<picture>
|
||||||
|
<source srcset="web4beginners.com_files/9faf87d7e48c5116e700e47a7cd48abf995fdbed-tideprojektteaser85.jpg 1x, web4beginners.com_files/6b404ebe8b24e5c0d6b7c65482dcbe896ed51ab7-tideprojektteaser85.jpg 2x" media="(max-width: 992px)">
|
||||||
|
<source srcset="web4beginners.com_files/9faf87d7e48c5116e700e47a7cd48abf995fdbed-tideprojektteaser85.jpg 1x, web4beginners.com_files/6b404ebe8b24e5c0d6b7c65482dcbe896ed51ab7-tideprojektteaser85.jpg 2x" media="(min-width: 993px)">
|
||||||
|
<img class="module-project-teaser__image grayscale-on-hover" loading="lazy" src="web4beginners.com_files/9faf87d7e48c5116e700e47a7cd48abf995fdbed-tideprojektteaser85.jpg" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="module-projects-teaser__button_more_container animation">
|
||||||
|
<a href="https://web4beginners.com/projects" title="" class="font-link-text module-projects-teaser__button_more">Mehr Projekte</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<a class="jump-to-anchor" name="_services-teaser"></a>
|
||||||
|
|
||||||
|
<section class="large-teaser-base bg-brown brush-top-white brush-bottom-white animation">
|
||||||
|
<div class="large-teaser-base__head">
|
||||||
|
<h2 class="large-teaser-base__headline font-haedline font-headline-1">Wir tun<br>
|
||||||
|
es mit<br>
|
||||||
|
Leiden<br>
|
||||||
|
schaft</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<img loading="lazy" class="large-teaser-base__icon" src="web4beginners.com_files/ic_fire.svg" alt="Icon">
|
||||||
|
</div>
|
||||||
|
<div class="large-teaser-base__content services-teaser__content">
|
||||||
|
<div class="services-teaser__content-block">
|
||||||
|
<h3 class="services-teaser__content-headline font-headline-2 headline-border">Konzept & Beratung</h3>
|
||||||
|
|
||||||
|
<ul class="services-teaser__content-list">
|
||||||
|
<li>Konzeption</li>
|
||||||
|
<li>Innovationsberatung</li>
|
||||||
|
<li>Workshops</li>
|
||||||
|
<li>Digitale Strategien</li>
|
||||||
|
<li>Voice UX</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="services-teaser__content-block">
|
||||||
|
<h3 class="services-teaser__content-headline font-headline-2 headline-border">Design</h3>
|
||||||
|
|
||||||
|
<ul class="services-teaser__content-list">
|
||||||
|
<li>UI/UX Design</li>
|
||||||
|
<li>Visualisierungen</li>
|
||||||
|
<li>Interaktionsdesign</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="services-teaser__content-block">
|
||||||
|
<h3 class="services-teaser__content-headline font-headline-2 headline-border">Lösungen</h3>
|
||||||
|
|
||||||
|
<ul class="services-teaser__content-list">
|
||||||
|
<li>Websites</li>
|
||||||
|
<li>Sprachanwendungen</li>
|
||||||
|
<li>Prototypen</li>
|
||||||
|
<li>Datenanalysen</li>
|
||||||
|
<li>Web-Anwendungen</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="jump-to-anchor" name="_team-teaser"></a>
|
||||||
|
<section class="text-image animation">
|
||||||
|
<h2 class="text-image__headline font-headline-1">Der Mensch<br>dahinter ist toll</h2>
|
||||||
|
|
||||||
|
<div class="html-content text-image__copy animation"><p>Unaufgeregt. Innovativ. Unkompliziert. Offen. Partnerschaftlich. Zuhörend.<br>
|
||||||
|
Auf das Wesentliche konzentriert. Die Details im Blick. </p>
|
||||||
|
<p>Wir bauen Brücken zwischen Nutzern und Inhalten, Menschen und Maschinen, Unternehmen und Technologie.</p></div>
|
||||||
|
|
||||||
|
<img loading="lazy" class="text-image___icon" src="web4beginners.com_files/ic_team_2_brown.svg" alt="Icon">
|
||||||
|
<picture>
|
||||||
|
<source srcset="" media="(max-width: 992px)">
|
||||||
|
<source srcset="" media="(min-width: 993px)">
|
||||||
|
<img class="text-image__image animation" loading="lazy" src="" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
<div class="text-image__button-container">
|
||||||
|
<a href="https://web4beginners.com/team" title="" class="btn btn-standard text-image__button" target="">Das Team kennenlernen
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="large-teaser-base bg-blue brush-top-white brush-bottom-white animation">
|
||||||
|
<div class="large-teaser-base__head">
|
||||||
|
<h2 class="large-teaser-base__headline font-haedline font-headline-1">Darauf<br>
|
||||||
|
sind wir<br>
|
||||||
|
besonders<br>
|
||||||
|
stolz</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<img loading="lazy" class="large-teaser-base__icon" src="web4beginners.com_files/ic_pokal.svg" alt="Icon">
|
||||||
|
</div>
|
||||||
|
<div class="large-teaser-base__content awards-teaser__content">
|
||||||
|
<p class="font-copy">Wir durften in den letzten
|
||||||
|
Jahren für unsere Arbeit viele Preise entgegennehmen. Jeder ehrt uns und
|
||||||
|
bedeutet uns sehr viel. Einige auf die wir besonders stolz sind:</p>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="awards-teaser__content-list">
|
||||||
|
<div class="awards-teaser__content-entry">
|
||||||
|
<img class="awards-teaser__content-image" src="web4beginners.com_files/dpok@2.png">
|
||||||
|
</div>
|
||||||
|
<div class="awards-teaser__content-entry">
|
||||||
|
<img class="awards-teaser__content-image" src="web4beginners.com_files/grimmeonline@2.png">
|
||||||
|
</div>
|
||||||
|
<div class="awards-teaser__content-entry">
|
||||||
|
<img class="awards-teaser__content-image" src="web4beginners.com_files/leadawards.png">
|
||||||
|
</div>
|
||||||
|
<div class="awards-teaser__content-entry">
|
||||||
|
<img class="awards-teaser__content-image" src="web4beginners.com_files/dt_land@2.png">
|
||||||
|
</div>
|
||||||
|
<div class="awards-teaser__content-entry">
|
||||||
|
<img class="awards-teaser__content-image" src="web4beginners.com_files/prixeuropa@2.png">
|
||||||
|
</div>
|
||||||
|
<p class="awards-teaser__content-entry awards-teaser__content-text font-copy-bold">und viele mehr</p>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a class="jump-to-anchor" name="_contact-teaser"></a> <section class="contact-teaser animation">
|
||||||
|
<h2 class="contact-teaser__headline animation font-headline-1">Kunde<br>
|
||||||
|
werden</h2>
|
||||||
|
|
||||||
|
<div class="contact-teaser__content animation">
|
||||||
|
<a href="mailto:info@web4beginners.com" title="" class="font-link-text contact-teaser__link contact-teaser__email">info@web4beginners.com</a>
|
||||||
|
|
||||||
|
<a href="tel:040%20/%2035%2073%2069%2011" title="" class="font-link-text contact-teaser__link contact-teaser__phone">040 / 35 73 69 11</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="large-teaser-base bg-yellow brush-top-white brush-bottom-white animation">
|
||||||
|
<div class="large-teaser-base__head">
|
||||||
|
<h2 class="large-teaser-base__headline font-haedline font-headline-1">Mitein<wbr>ander<br>
|
||||||
|
erfolg<wbr>reich</wbr></wbr></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<img loading="lazy" class="large-teaser-base__icon" src="web4beginners.com_files/ic_smiley.svg" alt="Icon">
|
||||||
|
</div>
|
||||||
|
<div class="large-teaser-base__content clients-teaser__content">
|
||||||
|
<div class="clients-teaser__content-list">
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/tagesschau@2.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/zdf@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/ndr@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/google@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/stifterverband@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/gdv@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/telefonica@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/brandeins@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/shz@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/tide@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/detektorfm@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="clients-teaser__content-entry">
|
||||||
|
<img class="clients-teaser__content-image" src="web4beginners.com_files/spon@2x.png">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="clients-teaser__content-entry clients-teaser__content-text font-copy-bold">und viele andere</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<section class="text-image animation">
|
||||||
|
<h2 class="text-image__headline font-headline-1">Kooperationen & Partner</h2>
|
||||||
|
|
||||||
|
<div class="html-content text-image__copy animation"><p>Unsere
|
||||||
|
Arbeit lebt von Kooperationen und dem Austausch mit anderen
|
||||||
|
Unternehmen, die in verwandten Themenbereichen ihrer Schwerpunkte haben.</p></div>
|
||||||
|
|
||||||
|
<picture>
|
||||||
|
<source srcset="" media="(max-width: 992px)">
|
||||||
|
<source srcset="" media="(min-width: 993px)">
|
||||||
|
<img class="text-image__image animation" loading="lazy" src="" alt="">
|
||||||
|
</source></source></picture>
|
||||||
|
|
||||||
|
<div class="text-image__button-container">
|
||||||
|
<a href="https://web4beginners.com/kooperationspartner" title="" class="btn btn-standard text-image__button" target="">Zu den Partnern
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="#top" title="Zum Anfang der Seite springen" class="btn btn-scroll-up"><!--?xml version="1.0" encoding="UTF-8"?-->
|
||||||
|
<svg class="icon btn-scroll-up__icon" height="13" viewbox="0 0 20 13" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m2.3583594 13 7.6416406-8.0384421 7.641641 8.0384421 2.358359-2.480738-10-10.519262-10 10.519262z"></path></svg>
|
||||||
|
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="cookie-layer" class="">
|
||||||
|
<div class="cookie-layer__content font-copy">
|
||||||
|
Wir nutzen Cookies auf unserer Website. Einige von ihnen
|
||||||
|
sind essenziell, während andere uns helfen, diese Website und Ihre
|
||||||
|
Erfahrung zu verbessern.
|
||||||
|
<a class="cookie-layer__link cookie-layer__privacy font-link-text-cookie-layer" href="https://web4beginners.com/datenschutz" title="Mehr erfahren">Mehr erfahren</a>
|
||||||
|
</div>
|
||||||
|
<div class="cookie-layer__buttons">
|
||||||
|
<a class="font-link-text-cookie-layer cookie-layer__link cookie-layer__decline" href="#" title="Ablehnen">Ablehnen</a>
|
||||||
|
<a href="#" title="" class="btn btn-standard cookie-layer__accept" target="">Stimme zu
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="site-footer bg-brown brush-top-white">
|
||||||
|
|
||||||
|
<div class="site-footer__block-company ">
|
||||||
|
<h3 class="site-footer__headline font-headline-footer">web4beginners GmbH</h3>
|
||||||
|
|
||||||
|
<p class="site-footer__address font-copy">Schillerstraße 21<br>
|
||||||
|
22767 Hamburg</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="site-footer__block-contact">
|
||||||
|
<h3 class="site-footer__headline headline-border font-headline-footer">Robbi</h3>
|
||||||
|
|
||||||
|
<a href="mailto:info@web4beginners.com" title="" class="site-footer__link font-link-text-footer">info@web4beginners.com</a>
|
||||||
|
|
||||||
|
<a href="tel:040%20/%2035%2073%2069%2011" title="" class="site-footer__link font-link-text-footer">040 / 35 73 69 11</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="site-footer__block-products">
|
||||||
|
<div class="site-footer__meta-links">
|
||||||
|
<a href="https://web4beginners.com/impressum" title="" class="site-footer__link site-footer__meta-link font-link-text-footer">Impressum</a>
|
||||||
|
|
||||||
|
<a href="https://web4beginners.com/datenschutz" title="" class="site-footer__link site-footer__meta-link font-link-text-footer">Datenschutz</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
|
||||||
|
|
||||||
|
<script src="web4beginners.com_files/1698d822c6d3fe9b0c50b3ab44ef524a.js"></script>
|
||||||
|
<script src="editor/wysiwyg-editor.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 340 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 251 KiB |
BIN
web4beginners.com_files/brandeins@2x.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 65 KiB |
BIN
web4beginners.com_files/detektorfm@2x.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
web4beginners.com_files/dpok@2.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
web4beginners.com_files/dt_land@2.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 157 KiB |
@@ -0,0 +1 @@
|
|||||||
|
(function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"===typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=1)})([function(n,e,t){"use strict";t.d(e,"a",(function(){return r}));function r(n,e,t,r){function o(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,u){function i(n){try{f(r.next(n))}catch(e){u(e)}}function c(n){try{f(r["throw"](n))}catch(e){u(e)}}function f(n){n.done?t(n.value):o(n.value).then(i,c)}f((r=r.apply(n,e||[])).next())}))}},function(n,e,t){"use strict";t.r(e);var r=t(0);let o=null;function u(){return Object(r["a"])(this,void 0,void 0,(function*(){return o||(o=new Promise((n,e)=>{document.addEventListener("initialized",()=>{n()})})),o}))}window.jsReady=u}]);
|
||||||
BIN
web4beginners.com_files/gdv@2x.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
110
web4beginners.com_files/google-analytics_analytics.js
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/*******************************************************************************
|
||||||
|
|
||||||
|
uBlock Origin - a browser extension to block requests.
|
||||||
|
Copyright (C) 2019-present Raymond Hill
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see {http://www.gnu.org/licenses/}.
|
||||||
|
|
||||||
|
Home: https://github.com/gorhill/uBlock
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
'use strict';
|
||||||
|
// https://developers.google.com/analytics/devguides/collection/analyticsjs/
|
||||||
|
const noopfn = function() {
|
||||||
|
};
|
||||||
|
//
|
||||||
|
const Tracker = function() {
|
||||||
|
};
|
||||||
|
const p = Tracker.prototype;
|
||||||
|
p.get = noopfn;
|
||||||
|
p.set = noopfn;
|
||||||
|
p.send = noopfn;
|
||||||
|
//
|
||||||
|
const w = window;
|
||||||
|
const gaName = w.GoogleAnalyticsObject || 'ga';
|
||||||
|
const gaQueue = w[gaName];
|
||||||
|
// https://github.com/uBlockOrigin/uAssets/pull/4115
|
||||||
|
const ga = function() {
|
||||||
|
const len = arguments.length;
|
||||||
|
if ( len === 0 ) { return; }
|
||||||
|
const args = Array.from(arguments);
|
||||||
|
let fn;
|
||||||
|
let a = args[len-1];
|
||||||
|
if ( a instanceof Object && a.hitCallback instanceof Function ) {
|
||||||
|
fn = a.hitCallback;
|
||||||
|
} else if ( a instanceof Function ) {
|
||||||
|
fn = ( ) => { a(ga.create()); };
|
||||||
|
} else {
|
||||||
|
const pos = args.indexOf('hitCallback');
|
||||||
|
if ( pos !== -1 && args[pos+1] instanceof Function ) {
|
||||||
|
fn = args[pos+1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ( fn instanceof Function === false ) { return; }
|
||||||
|
try {
|
||||||
|
fn();
|
||||||
|
} catch (ex) {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
ga.create = function() {
|
||||||
|
return new Tracker();
|
||||||
|
};
|
||||||
|
ga.getByName = function() {
|
||||||
|
return new Tracker();
|
||||||
|
};
|
||||||
|
ga.getAll = function() {
|
||||||
|
return [new Tracker()];
|
||||||
|
};
|
||||||
|
ga.remove = noopfn;
|
||||||
|
// https://github.com/uBlockOrigin/uAssets/issues/2107
|
||||||
|
ga.loaded = true;
|
||||||
|
w[gaName] = ga;
|
||||||
|
// https://github.com/gorhill/uBlock/issues/3075
|
||||||
|
const dl = w.dataLayer;
|
||||||
|
if ( dl instanceof Object ) {
|
||||||
|
if ( dl.hide instanceof Object && typeof dl.hide.end === 'function' ) {
|
||||||
|
dl.hide.end();
|
||||||
|
dl.hide.end = ()=>{};
|
||||||
|
}
|
||||||
|
if ( typeof dl.push === 'function' ) {
|
||||||
|
const doCallback = function(item) {
|
||||||
|
if ( item instanceof Object === false ) { return; }
|
||||||
|
if ( typeof item.eventCallback !== 'function' ) { return; }
|
||||||
|
setTimeout(item.eventCallback, 1);
|
||||||
|
item.eventCallback = ()=>{};
|
||||||
|
};
|
||||||
|
dl.push = new Proxy(dl.push, {
|
||||||
|
apply: function(target, thisArg, args) {
|
||||||
|
doCallback(args[0]);
|
||||||
|
return Reflect.apply(target, thisArg, args);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if ( Array.isArray(dl) ) {
|
||||||
|
const q = dl.slice();
|
||||||
|
for ( const item of q ) {
|
||||||
|
doCallback(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// empty ga queue
|
||||||
|
if ( gaQueue instanceof Function && Array.isArray(gaQueue.q) ) {
|
||||||
|
const q = gaQueue.q.slice();
|
||||||
|
gaQueue.q.length = 0;
|
||||||
|
for ( const entry of q ) {
|
||||||
|
ga(...entry);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
||||||
BIN
web4beginners.com_files/google@2x.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
web4beginners.com_files/grimmeonline@2.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
15
web4beginners.com_files/ic_bildung_1_brown.svg
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 89.12 67.31">
|
||||||
|
<defs>
|
||||||
|
<style>
|
||||||
|
.cls-1 {
|
||||||
|
fill: #a79485;
|
||||||
|
fill-opacity: 0.4;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<g id="Ebene_2" data-name="Ebene 2">
|
||||||
|
<g id="Ebene_1-2" data-name="Ebene 1">
|
||||||
|
<path class="cls-1" d="M80,35.19c-3,1.49-5.36,2.34-7.32,3.7a5.3,5.3,0,0,0-1.87,3.48c-.52,5.26-.79,10.56-1.11,15.84-.08,1.33-.18-1.3.06,0,1.63,8.56.88,6.09-7.24,6.86-11,1-22.1,1.64-33.17,2.22-3.09.17-6.22-.4-9.37-.19-3.23-1.15-3.31-3.49-3.31-7,0-7.54-1.91-7.07-2.16-14.63-.18-5.68-3.33-8-7.78-9.75-3.7-1.47-7.56-3.6-6.62-8,.8-3.74,1.28-7.69,6.5-10C16.5,13.25,25.57,7.06,34.9,1.48c2.89-1.73,5.2-2.17,8.37-.07C53,7.89,63.16,13.73,72.89,20.23,80,25,84.81,31.29,83.82,40.74c-.36,3.39,1.12,6.9.87,10.35-.55,7.54,1,4.76,2.26,5.57,2.53,1.69,2.54,3.94,1.59,5-2,2.17-4.81,5-8.64,2.86-3.16-1.76-1.49-4.14-.87-6.5a26.85,26.85,0,0,0,1-6.22C80.12,46.48,80,41.16,80,35.19ZM8.54,26.58,42,45.94,72.61,29.75c-9.86-6.31-19.2-12.44-28.74-18.25-1.6-1-4.49-1.37-6.06-.58C28,15.86,18.46,21.21,8.54,26.58ZM67.08,42.15c-7,3.46-13,6.5-19.06,9.41-3.33,1.61-6.5,2.35-10.23.18C31.48,48.06,24.79,45,18,41.61c1.56,9.13,3,9.8,4.6,18.94C36.51,59,50.73,59.64,65,58,65.66,51.32,66.29,50.08,67.08,42.15Z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
1
web4beginners.com_files/ic_coins_brown.svg
Normal file
|
After Width: | Height: | Size: 16 KiB |
1
web4beginners.com_files/ic_fire.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg height="224" viewBox="0 0 230 224" width="230" xmlns="http://www.w3.org/2000/svg"><path d="m40.236695 85.446558c5.5402803-51.4192744 65.69633-81.97635593 120.045495-83.51533023 3.177352-.103897 5.543932-2.5779443 8.710328-1.47728546 5.671757.48539379 14.352869 5.19647336 7.265912 9.99521599-29.976679 21.1219353-44.053811 64.0606171-27.794531 95.5576417 3.111614 6.409146 8.637286 10.164049 14.813037 3.801981 9.616057-7.987082 15.483203-21.6121993 10.350135-32.466189 2.731792-2.6526202 19.356286.4172114 18.271603 4.741924 5.574976 14.6186325 16.925794 28.316803 15.141729 44.612398 5.947493.834422 12.41724-4.05036 17.325702.269482 5.218893 33.135026-1.91189 66.40317-40.310379 80.229588-19.443937 7.115321-55.169067 22.873574-71.539737 6.495186.97877-.102274 1.917368-.201301 3.067788-.321432-3.63752-16.155983-.975118-32.523007 5.934711-47.597812-17.889956-5.771154-30.3930214-20.565113-24.4473547-37.7763-25.6416008 18.858929-21.783126 58.177449-9.5667531 83.148444.8491201 1.61365 2.0214537 3.051974 1.9356287 5.032511.5624279 1.625014 3.9607343 5.228941-.8746851 4.248413-43.2722556-16.326439-34.1547145-99.366116 14.1428712-105.184348 12.541413-3.543862 6.710788 5.443229 9.847967 11.138083 3.087876 4.15588-1.309288 9.315015-.44556 13.98551-1.30381 15.245261 14.369304 21.404405 29.227992 19.584584 16.173455.337666-22.838591 18.29886-6.570181 53.625463 35.575393-5.948104 79.068603-28.695053 73.860666-65.63693-10.45422 7.241946-27.445753 18.175482-36.879203 3.680227 18.567426-9.066637 25.542993-32.113913 15.742504-48.601068-6.908003 11.514709-18.229604 19.880041-33.517418 17.00664-14.984687.198053-22.645028-16.774496-26.947237-27.6430957-9.513797-28.2892049 4.017342-56.8819838 20.095842-80.7588129-30.347369.7678637-59.5735351 19.3995178-76.4025476 41.6789306-17.3622233 25.7826898-16.8198821 59.825191-8.3889413 88.119266-2.8413567 8.227344-13.9237435 4.422116-21.1184385 4.446467-3.2650037-4.607183-8.9349347-7.569871-13.1367096-11.52932-1.3585921-1.128257-1.3348533-1.150984-3.7653454-1.647742-8.4857228 32.446709 9.2526699 73.765246 48.8435791 81.799407 23.729711 8.074745-14.2104357 18.613796-36.086691 1.462675.8984238.702928-1.044509-.443186-1.6197194-1.293843.706687 1.045464-2.5637949-1.32144-2.1985819-2.970805-4.4464676-4.051983-8.0529455-9.27443-12.4939349-13.613753-17.38778822-23.384942-15.68406983-53.854361-9.7018818-80.344849 15.5781581-12.521211 14.5701704-13.043943 26.4706342 2.079564 2.4049272-7.35883-.78886-15.76637 1.6471103-23.1592908-.6135577-3.8474357 1.323897-7.2760367 1.1138995-11.2809414z" fill="#fff" fill-rule="evenodd" opacity=".4" transform="matrix(.99939083 .0348995 -.0348995 .99939083 4.003101 -3.992785)"/></svg>
|
||||||
|
After Width: | Height: | Size: 2.6 KiB |
1
web4beginners.com_files/ic_mic_brown.svg
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
11
web4beginners.com_files/ic_mobility_brown.svg
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="230px" height="224px" viewBox="0 0 230 224" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
|
||||||
|
<title>desktop/icons/ic_mobility</title>
|
||||||
|
<desc>Created with Sketch.</desc>
|
||||||
|
<g id="desktop/icons/ic_mobility" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.4">
|
||||||
|
<path d="M47.1358864,178.077004 C46.3256591,175.361076 45.5102045,173.085004 44.98225,170.742604 C44.4142197,168.230895 44.1162652,165.656349 43.5656591,162.294604 C36.5210379,166.440058 30.4155833,171.17024 24.0104318,175.448349 C24.0888409,175.769513 24.16725,176.090676 24.2474015,176.41184 C31.8896742,176.966895 39.531947,177.523695 47.1358864,178.077004 M61.3627803,180.049367 C68.3777803,181.805295 75.4485379,183.369222 82.3886136,185.37824 C87.1785379,186.765876 91.7942197,188.759185 96.4761136,190.509876 C97.122553,190.752495 97.7341439,191.117295 98.3213409,191.487331 C101.529144,193.49984 109.556492,205.375913 110.396341,209.126895 C110.856341,211.184785 110.917326,212.897076 108.868235,214.253295 C106.871417,215.572858 105.386871,214.96544 103.555583,213.81344 C96.7183106,209.510895 88.9505833,207.679913 81.1863409,206.072349 C73.2983864,204.438604 65.3529318,202.956713 57.3656591,201.94784 C48.5298258,200.829004 39.6120985,200.401367 30.7449015,199.521658 C24.2491439,198.87584 17.8004318,198.118313 11.6043712,195.641513 C6.03906818,193.416058 3.46376515,188.829004 1.91126515,183.810822 C0.574825758,179.492567 0.48944697,174.769367 0.0294469697,170.206749 C-0.184871212,168.077295 0.763007576,166.347549 2.0942197,164.52704 C6.59490152,158.372567 12.9512652,154.584931 19.0584621,150.470895 C27.4499773,144.815622 36.0052803,139.402967 44.3654318,133.704058 C51.1173258,129.099549 57.6862652,124.22624 64.6664167,119.237731 C68.3307348,123.864931 72.7878561,127.903913 75.3091439,133.386385 C76.940053,136.931404 75.9503561,140.582895 72.6083864,142.970676 C67.304447,146.763549 61.7792197,150.247476 56.3585379,153.878022 C55.2468712,154.623331 54.1874773,155.447185 53.2849015,156.908131 C54.7224015,156.826095 56.1703561,156.840058 57.5904318,156.649804 C71.6517955,154.766458 85.7061894,152.844713 99.7640682,150.947404 C101.691189,150.687331 103.623538,150.462167 105.559371,150.28064 C106.092553,150.230022 106.684977,150.291113 107.178083,150.484858 C107.624144,150.661149 106.10475,151.743331 107.615432,151.671767 C108.033614,151.650822 108.451795,151.678749 108.868235,151.647331 C125.665205,150.425513 142.45172,149.015185 159.262629,148.046458 C167.716871,147.559476 176.218159,147.931258 184.695053,147.800349 C190.648917,147.709585 196.599295,147.428567 202.551417,147.229585 C202.828462,147.220858 203.138614,147.09344 203.377326,147.180713 C208.301417,148.95584 213.556568,147.402385 218.552098,148.721949 C220.453083,149.22464 221.831341,150.029295 222.817553,151.706676 C224.715053,154.930531 226.748462,158.07584 228.590205,161.331113 C229.194826,162.397585 229.545053,163.675258 229.73672,164.900567 C230.693311,171.013149 227.921114,173.369513 222.810583,172.727185 C207.728159,170.831622 192.53422,170.78624 177.373386,170.637876 C165.27922,170.520931 153.164144,170.922385 141.082174,171.559476 C129.287705,172.182604 117.521114,173.318895 105.754523,174.373149 C94.2580076,175.401222 82.7736894,176.56544 71.2963409,177.769804 C67.8811894,178.127622 64.5008864,178.818822 61.1049015,179.358167 C61.1902803,179.588567 61.2774015,179.820713 61.3627803,180.049367" id="Fill-1" fill="#A69485"></path>
|
||||||
|
<path d="M202.17563,56.2797956 C200.180097,55.2314758 198.542468,54.2177541 196.789611,53.4738968 C182.332035,47.3413992 167.862237,41.2400398 153.371489,35.1853878 C151.196131,34.2754601 148.923004,33.5644709 146.646386,32.9313273 C140.949601,31.3467384 138.105574,27.1707583 137.428175,21.8461243 C136.843307,17.2515084 136.626819,12.4700631 138.315078,8 C145.464429,10.7211336 152.678378,13.3713413 159.820745,16.2031886 C176.020703,22.6245796 191.803397,29.9074611 206.700934,38.9634907 C208.476487,40.0429486 210.246802,41.2262006 211.739524,42.6499088 C213.108289,43.9559838 214.258819,45.5596016 215.215558,47.1978175 C216.601781,49.572971 217.602166,52.1678219 218.984898,54.5429754 C222.181592,60.0371396 221.582757,65.3531242 217.132527,70.0290455 C213.740295,73.5943706 209.730024,76.3224238 205.340899,78.4899892 C195.996985,83.1036341 186.586728,87.5858065 177.246306,92.2081009 C167.534013,97.0120349 157.860129,101.897274 148.191483,106.789433 C144.402938,108.706163 142.987035,108.562581 141.195769,104.786208 C140.134278,102.549447 140.010321,99.8508017 139.615754,97.3389861 C139.44815,96.2716374 139.682097,95.1454721 139.711777,94.0452553 C139.849701,89.1288779 141.967445,85.8524462 146.590518,83.4167461 C155.347818,78.8013713 164.733632,75.7602061 173.752814,71.8264122 C179.737667,69.2142623 185.736488,66.6349805 191.728325,64.0401296 C191.983222,63.929416 192.34811,63.8671396 192.463337,63.6699309 C194.570606,60.0215705 198.732768,58.9490322 202.17563,56.2797956" id="Fill-4" fill="#A69485"></path>
|
||||||
|
<path d="M119.245173,45.845782 C119.243437,45.9397207 119.239965,46.0318869 119.236492,46.1258256 L121.122048,46.1258256 C121.12552,46.0708803 121.127257,46.0159351 121.130729,45.9609898 C120.503947,45.9219964 119.873692,45.883003 119.245173,45.845782 L119.245173,45.845782 Z M140.995042,45.9592174 C141.024558,46.0460664 141.052337,46.1311429 141.080117,46.2162194 C141.600989,46.1878606 142.120125,46.1577293 143.526478,46.0797425 C142.092345,46.0123902 141.543693,45.9858038 140.995042,45.9592174 L140.995042,45.9592174 Z M107.556811,46.226854 C107.601953,46.1382326 107.648832,46.0496112 107.693974,45.9609898 L102.615474,45.9609898 L102.615474,46.226854 L107.556811,46.226854 Z M135.791533,46.1789984 C135.793269,46.1081013 135.795005,46.0354318 135.796741,45.9627622 L126.884626,45.9627622 C126.884626,46.0354318 126.882889,46.1081013 126.882889,46.1789984 L135.791533,46.1789984 Z M44.2465857,48.6568526 C55.8585534,47.80077 66.904507,46.9127836 77.9626144,46.1967227 C84.3294034,45.783747 90.7118187,45.477117 97.0924977,45.4203993 C118.594084,45.2272047 140.099142,45.2023907 161.602464,45.0003339 C163.70505,44.9808372 164.953406,45.8156507 166.116686,47.3682976 C168.547421,50.6118406 171.353184,53.6090161 173.424517,57.0705677 C174.811772,59.387131 175.608706,62.2761884 175.933383,65.0021825 C176.317091,68.2173666 175.051373,69.3109546 171.924406,69.6423986 C171.235119,69.7150682 170.537151,69.7540616 169.844392,69.7451995 C160.267296,69.6299916 150.68152,69.6991163 141.114842,69.3357686 C124.927884,68.7189637 108.760025,69.3446308 92.5956382,69.8391381 C79.4297365,70.2432517 66.2846697,71.2641701 53.1274491,71.9713689 C46.8005936,72.311675 42.4148534,69.6104949 41.3574838,64.287894 C40.8470294,61.7231909 40.8973804,58.8784442 41.4182521,56.313741 C41.9877386,53.5062153 43.3923561,50.8777047 44.2465857,48.6568526 L44.2465857,48.6568526 Z" id="Fill-6" fill="#A69485"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6.9 KiB |
15
web4beginners.com_files/ic_monitoring_1_brown.svg
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 84.19 74.64">
|
||||||
|
<defs>
|
||||||
|
<style>
|
||||||
|
.cls-1 {
|
||||||
|
fill: #a79485;
|
||||||
|
fill-opacity: 0.4;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<g id="Ebene_2" data-name="Ebene 2">
|
||||||
|
<g id="Ebene_1-2" data-name="Ebene 1">
|
||||||
|
<path class="cls-1" d="M55.19,39.58c3.63,2.79,7.36,5.59,11,8.48A64.35,64.35,0,0,1,78.32,61c1.74,2.39,3.3,4.93,4.91,7.41,1.35,2.09,1.31,4.1-.37,5.83-2.88,1-4.92-.17-7-2C69.55,66.92,63.11,61.66,56.7,56.38c-2.48-2.05-5-4-7.57-6-.59-.46-1.25-.84-1.92-1.29-.73.44-1.41.78-2,1.23C39,54.9,31.87,56.31,24.27,56A26.69,26.69,0,0,1,12,52.22C7.17,49.45,4.57,44.85,2.4,40c-2.94-6.51-3-13.32-1.16-20.17,1.14-4.23,2.69-8.22,6-11.28C13.15,3.2,20,.61,28,1.39a9.4,9.4,0,0,0,2.7-.4,27.35,27.35,0,0,1,4.7-1,6.33,6.33,0,0,1,3.55,1.07c2.51,1.72,4.84,3.7,7.23,5.58a2.77,2.77,0,0,1,.47.6c2,2.87,4,5.67,5.83,8.62,3.09,5,5.15,10.37,4.48,16.38A60.3,60.3,0,0,1,55.19,39.58ZM22.26,43c1.52-.09,3-.15,4.55-.29,4.79-.45,8.69-3.12,12.93-5,2.62-1.15,4-3.07,5.32-5.2a47.88,47.88,0,0,0,3.36-6c1-2.28,1.8-4.84-.25-6.91-4.31-4.35-9.17-7.56-15.78-6.33a9.05,9.05,0,0,1-2-.06,59.92,59.92,0,0,0-6.82-.22,19.7,19.7,0,0,0-8.91,3.49C9.16,20.05,5.89,25,6,31.7c.07,4.34,1.89,7.62,6.09,9.38A24.16,24.16,0,0,0,22.26,43Z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
1
web4beginners.com_files/ic_pokal.svg
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
1
web4beginners.com_files/ic_smiley.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg height="224" viewBox="0 0 230 224" width="230" xmlns="http://www.w3.org/2000/svg"><g fill="#fff" fill-rule="evenodd" opacity=".4"><path d="m10 117.941005c.6619407 61.295678 74.0673405 85.960996 125.755995 77.417867 23.068208-3.402844 41.903814-17.421033 60.22387-30.411589 14.785463-14.528828 20.344067-34.467033 22.020135-54.566269-.719224-32.0070689-23.242179-61.4778967-52.728241-73.1886786-12.844194-4.9199268-21.731596-14.5415408-36.561613-11.6662864-60.5951509-.088991-117.8381665 23.6842989-118.710146 92.414956m115.233765-113.37827028c28.926156-3.63534054 56.521496 10.77232258 76.602394 30.81656738 11.475101 19.7046917 19.455753 42.2743628 25.304558 64.3686596 18.010506 68.4050973-52.448524 123.5909673-116.431485 117.8397863-75.1317159-2.19224-128.0379726-59.895047-105.44378413-135.5899254 12.81863123-57.1043451 66.23983703-78.90365511 119.96619813-77.53695382 0 .03183311.002119.06578842.002119.10186594"/><path d="m62.326929 128.074877c.4881694 0 1.0852865-.186815 1.4540325.029721 3.3291897 1.936088 6.482387 4.105696 9.3967374 6.682901 2.8745427 2.538993 3.5470851 6.01631 4.5276142 9.400219.2807498.965921.3917927 1.999775.4399811 3.010277.1047573 2.175977 1.1586166 3.829719 2.5916977 5.334858 1.2696595 1.337429 2.4701791 2.742792 4.0478253 4.502679 7.4252035 2.483798 15.5166638 2.918993 23.7359288 1.953072 12.076431-1.4181 20.593206-8.15832 26.763416-18.394963.609688-1.010502 1.064335-2.137764 1.787161-3.054858 2.491131-3.15039 6.362964-3.228937 9.103417-.271732 1.483365 1.60067 3.025394 3.146144 4.445904 4.799886 2.717406 3.165249 3.019108 5.854969 1.353465 8.803682-1.724306 3.059105-3.928402 5.795528-5.128922 9.221895-.559404 1.604915-2.277425 2.899887-3.681174 4.075975-3.878118 3.248043-8.030701 6.071506-12.774116 7.916309-2.023912.787597-3.989161 1.721675-5.985837 2.585697-2.514177 1.08905-5.198061 1.371396-7.867279 1.324692-6.176496-.108268-12.378133.227151-18.4980594-1.116647-1.7766852-.390615-3.7146968-.076425-5.4704306-.522235-9.6963436-2.451954-17.4127726-7.79318-22.1310453-16.849488-4.638657-8.901336-7.5173899-18.42256-8.4350646-28.495739-.027237-.295084.2074196-.617765.3247479-.936201"/><path d="m66.6622231 53.0037035c3.4531444-.0964035 5.4767383 1.7095559 7.5046059 3.0442091 2.8420063 1.8702283 5.0557795 4.6059461 6.7973097 7.528044.8162754 1.3625032 1.170992 3.3119966.98936 4.9122951-.7756754 6.7825235-1.5214349 13.5928969-4.0001772 20.0455061-.5470327 1.4182029-.5235274 1.4267721-3.2693755 3.4662422-1.9509411-.9490391-4.0365036-2.0201894-6.1690767-2.9885092-1.8227303-.8290703-3.0471435-2.3201115-3.8612821-3.9696829-1.5940877-3.2198777-2.8655116-6.6432739-2.6240479-10.315177.4829274-7.3695138 2.3120682-14.4519594 4.6326838-21.7229274"/><path d="m158.994673 69c1.712411.8868152 3.269954 1.3839691 4.438111 2.3603616 3.524382 2.9358957 6.920444 6.0330305 8.836398 10.3976839.993375 2.2595871 1.026562 4.3668929-.225667 6.6242406-1.378336 2.4880092-2.522157 5.1193421-3.588542 7.7618722-1.132758 2.8127269-3.31199 4.0287387-6.044327 4.5818787-.515493.103014-1.044261.176915-1.573029.212746-6.241231.414295-7.889483-1.1868994-7.836385-7.4909012.068585-8.3709977 2.261091-16.2045317 5.993441-24.4478818"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 3.1 KiB |
1
web4beginners.com_files/ic_team_2_brown.svg
Normal file
|
After Width: | Height: | Size: 20 KiB |
19
web4beginners.com_files/ic_wasser_1_brown.svg
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 59.57 105.78">
|
||||||
|
<defs>
|
||||||
|
<style>
|
||||||
|
.cls-1 {
|
||||||
|
fill: #a79485;
|
||||||
|
fill-opacity: 0.4;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</defs>
|
||||||
|
<g id="Ebene_2" data-name="Ebene 2">
|
||||||
|
<g id="Ebene_1-2" data-name="Ebene 1">
|
||||||
|
<g>
|
||||||
|
<path class="cls-1" d="M18,20.53,16.55,20c.29-3.21.59-6.47.9-9.73a17.87,17.87,0,0,0,.37-3.53c-.27-2.42,1-4.34,1.65-6.74,1,.77,1.75,1.39,2.53,2.05,4.12,3.46,6.9,7.54,6.71,13.28-.13,3.89.19,7.79.31,11.69a23.53,23.53,0,0,0,4.55,13.49A89.64,89.64,0,0,0,47.1,55.25c5.83,5.16,10.29,11.35,11.7,19.2.94,5.27,1.47,10.6-1.15,15.69-3.62,7-9.1,11.79-16.75,13.75a58.72,58.72,0,0,1-11,1.82,27.85,27.85,0,0,1-17.27-4.23C5.6,96.9,1.29,90.45.27,82a40.71,40.71,0,0,1,3-20.41c2-4.86,4-9.7,6.2-14.47,1.22-2.69,2.83-5.21,4.17-7.84a41.48,41.48,0,0,0,3.6-12.13C17.57,25,17.7,22.9,18,20.53Zm5.78,15.19c-.9,2.78-1.61,5.4-2.61,7.91s-2.28,4.9-3.48,7.32c-1.13,2.27-2.43,4.46-3.45,6.78-1.41,3.17-2.7,6.4-3.89,9.66-1.6,4.38-3.21,8.78-3.49,13.5-.46,7.55,2.88,13,10.46,14.88,6.27,1.55,12.33.79,18.29-1C43.85,92.16,49.26,86.65,50.76,78c.86-5,.63-10.07-2.87-14.28a43.37,43.37,0,0,0-5.25-5.5C35.22,52,28.83,44.94,24.38,36.26,24.28,36.07,24,36,23.74,35.72Z"/>
|
||||||
|
<path class="cls-1" d="M34.39,85.56c1.65-2.41,3.47-4.72,4.91-7.25s2.43-5.17,3.67-7.87c1.65,1.17,1.31,2.8.85,4.13-1.18,3.36-2.51,6.67-5.63,8.83C37,84.2,36,85.16,34.89,86Z"/>
|
||||||
|
<path class="cls-1" d="M41.58,61.94c.14.48.52,1,.39,1.42a15,15,0,0,1-1.91,4.35,64.93,64.93,0,0,1-5.43,5.58c-.21.2-.61.21-1.45.49l7.73-11.84Z"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
BIN
web4beginners.com_files/leadawards.png
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
1
web4beginners.com_files/logo-df.svg
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
web4beginners.com_files/ndr@2x.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
web4beginners.com_files/prixeuropa@2.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
web4beginners.com_files/shz@2x.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
web4beginners.com_files/spon@2x.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
web4beginners.com_files/stifterverband@2x.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
web4beginners.com_files/tagesschau@2.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
web4beginners.com_files/telefonica@2x.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
web4beginners.com_files/tide@2x.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
web4beginners.com_files/zdf@2x.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |