Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
flenny committed Apr 10, 2023
0 parents commit 4753876
Show file tree
Hide file tree
Showing 22 changed files with 1,407 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Node",
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
"features": {
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
"ghcr.io/devcontainers-contrib/features/neovim-apt-get:1": {}
},
"remoteUser": "node",
"postCreateCommand": "cd /workspaces/ferienpass-anmeldung && npm install && npm install @google/clasp --global",
"customizations": {
"vscode": {
"extensions": [
"editorconfig.editorconfig",
"xabikos.javascriptsnippets",
"ecmel.vscode-html-css",
"github.copilot",
"GitHub.vscode-github-actions"
]
}
}
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Build GitHub Pages site

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Patch and copy artifacts
run: |
mkdir _site
cp ferienpass.webp ferienpass-transparent.webp ./_site/
GOOGLE_APP_SCRIPS_ID=${{ secrets.GOOGLE_APP_SCRIPS_ID }} envsubst < index.html > ./_site/index.html
- name: Upload artifacts
uses: actions/upload-pages-artifact@v1

deploy:
name: Deploy GitHub Pages site
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.clasp.json
.clasprc.json
node_modules
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
booking.ferienpass-seeberg.ch
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Ferienpass Seeberg, Oliver Gut

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[![Languages](https://skillicons.dev/icons?i=js,html,css,gcp,bash,githubactions,linux,vscode)](https://skillicons.dev)

[![Deploy](https://github.com/flenny/ferienpass-seeberg/actions/workflows/deploy.yml/badge.svg)](https://github.com/flenny/ferienpass-seeberg/actions/workflows/deploy.yml)
![GitHub](https://img.shields.io/github/license/flenny/ferienpass-seeberg)

# Ferienpass Seeberg Registration Form

Welcome to the ferienpass-seeberg repository! This repository contains the source code and documentation for the registration form of the Ferienpass Seeberg, a holiday program for kids in the Seeberg region of Switzerland.

## About the Ferienpass Seeberg

The Ferienpass Seeberg is a popular program for children between the ages of 6 and 16, organized by the association Ferienpass Seeberg. The program offers a variety of activities and events during one week in the summer holidays, such as sports, crafts, excursions, and much more. Children can choose from a wide range of activities and have fun with other kids while learning new things.

## About the Registration Form

The registration form is primarily designed to allow parents to book courses for their children. The website is built using HTML, CSS, and JavaScript and uses Google Apps Script as a backend for processing the course bookings. The registration form includes the following features:

- Information about the program, including dates, activities, and prices
- Detailed information about each course, including availability and age requirements
- A registration form for parents to book courses for their children
- An administration interface (Google Spreadsheet) to manage the courses, registrations and volunteers

## Contributing

We welcome contributions to the ferienpass-seeberg repository! If you find a bug or have a feature request, please open an issue on the repository.

## License

The ferienpass-seeberg repository is released under the MIT License. See the LICENSE file for details.

## Contact

If you have any questions or comments about the Ferienpass Seeberg or the website, please contact us at [email protected].
Binary file added ferienpass-transparent.webp
Binary file not shown.
Binary file added ferienpass.webp
Binary file not shown.
19 changes: 19 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>

<head>
<title>Ferienpass Seeberg - Anmeldung Ferienpass</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="https://booking.ferienpass-seeberg.ch/ferienpass.webp">
</head>

<body>
<iframe id="iframe"
style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"></iframe>

<script>
const params = new Proxy(new URLSearchParams(window.location.search), {
get: (searchParams, prop) => searchParams.get(prop),
});
iframe.src = `https://script.google.com/macros/s/${GOOGLE_APP_SCRIPS_ID}/exec?action=${params.action ?? 'index'}&reference=${params.reference}&origin=${window.location.origin}`
</script>
</body>
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"@types/google-apps-script": "^1.0.59"
}
}
Loading

0 comments on commit 4753876

Please sign in to comment.