Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyuris1995 committed Oct 28, 2023
0 parents commit 14fd1ba
Show file tree
Hide file tree
Showing 24 changed files with 685 additions and 0 deletions.
125 changes: 125 additions & 0 deletions .github/workflows/deploy-to-ionos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Please do not edit this file.
# More information under https://docs.ionos.space/docs/github-actions-customization/
# version: 2022-07-21

name: "Deploy Now: Deploy to IONOS"

on:
workflow_dispatch:
inputs:
version:
required: true
type: string
project-id:
required: true
type: string
branch-id:
required: true
type: string
deployment-ids:
require: true
type: string
push:
path:
- ./.github/workflows/deploy-to-ionos.yaml

concurrency: ${{ github.ref }}

jobs:
deploy-to-ionos:
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
permissions:
actions: read
strategy:
matrix:
deployment-id: ${{ fromJson(inputs.deployment-ids) }}
steps:
- name: Update deployment status
uses: ionos-deploy-now/project-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
action: update-status
status: in_progress

- name: Retrieve stored deployment
uses: ionos-deploy-now/artifact-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
version: ${{ inputs.version }}
action: download

- name: Fetch deployment info
uses: ionos-deploy-now/project-action@v1
id: deployment
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
action: retrieve-info

- name: Render templates
uses: ionos-deploy-now/template-renderer-action@v2
id: template
with:
deployment-id: ${{ matrix.deployment-id }}
data: "[${{ steps.deployment.outputs.template-variables }}, ${{ toJson(secrets) }}]"
input-directory: deployment
output-directory: deployment
intermediate-data-file: deployment/.template-renderer-data

- name: Render real site-url to all files
run: |
for file in `grep -rl 'https://IONOS_DEPLOY_NOW_SITE_URL' .`; do
sed -i $file -e 's|https://IONOS_DEPLOY_NOW_SITE_URL|${{ fromJson(steps.deployment.outputs.info).site-url }}|g'
done
- name: Render SSH user secret name
run: echo SSH_USERNAME_SECRET=IONOS_DEPLOYMENT_`echo ${{ matrix.deployment-id }} | tr '[:lower:]' '[:upper:]' | tr '-' '_'`_SSH_USERNAME >> $GITHUB_ENV

- name: Deploy to IONOS
uses: ionos-deploy-now/deploy-to-ionos-action@v2
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
deployment-info: ${{ steps.deployment.outputs.info }}
ssh-user: ${{ secrets[env.SSH_USERNAME_SECRET] }}
ssh-key: ${{ secrets.IONOS_SSH_KEY }}

- name: Update deployment status
if: ${{ always() }}
uses: ionos-deploy-now/project-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
deployment-id: ${{ matrix.deployment-id }}
action: update-status
status: ${{ job.status }}

notify-deployment-finished:
needs: deploy-to-ionos
if: ${{ github.event_name == 'workflow_dispatch' && always() }}
runs-on: ubuntu-latest
steps:
- name: Notify all deployments finished
uses: ionos-deploy-now/project-action@v1
with:
api-key: ${{ secrets.IONOS_API_KEY }}
service-host: api-eu.ionos.space
project-id: ${{ inputs.project-id }}
branch-id: ${{ inputs.branch-id }}
action: set-deployments-finished
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# gamescouter.de

Dies ist mein erstes Full-Stack Projekt, welches ich im rahmen meiner Weiterbildung erstelle.

Ziel ist es, eine Webseite zu erstellen, welche auf einem Zeitstrahl die zukünftigen Release-Daten von Videospielen anzeigt.
Zusätzlich soll man sich auf der Webseite anmelden können, um E-Mail Benachrichtigungen für die Spiele einzustellen, über deren Release man gerne informiert bleiben möchte.
182 changes: 182 additions & 0 deletions gamescouter_test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gamescouter</title>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link href="src/assets/Nunito-Italic-VariableFont_wght.ttf" rel="stylesheet">
<link rel="stylesheet/less" type="text/css" href="src/style.less" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid "><!--fixed-top-->
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="#"><img src="src/assets/gamescouter-logo.png" alt="Gamescouter Logo" id="gamescouterLogo"/></a>
<button class="navbar-toggler position-absolute top-0 end-50" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse position-absolute end-0" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Games</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Über uns</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"><button class="custom-btn btn-13">Anmelden</button></a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div class="container-fluid" id="game-timeline">
<div class="filter-container">
<i class="fa-solid fa-filter" id="filter-button" onclick="toggleFilterMethods()"></i>
<div class="filter-param">
<ul id="filter-list">
<li><a href="#" id="filter-method" onclick="toggleGenreFilter()">Genre</a>
<ul class="filter-option" id="genre-filter">
<li><a href="#" id="rpg">RPG</a></li>
<li><a href="#" id="fps">FPS</a></li>
<li><a href="#" id="adventure">Adventure</a></li>
<li><a href="#" id="action">Action</a></li>
<li><a href="#" id="roguelike">Rogue-Like</a></li>
</ul>
</li>
<li><a href="#" id="filter-method" onclick="toggleDateFilter()">Release Datum</a>
<ul class="filter-option" id="date-filter">
<li><input type="date" id="date-input"></li>
</ul>
</li>
<li><a href="#" id="filter-method" onclick="togglePublisherFilter()">Publisher</a>
<ul class="filter-option" id="publisher-filter" >
<li><input type="text" id="publisher-input"></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="row flex-row flex-nowrap">
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
<div class="card col-12 col-sm-6 col-md-4 col-lg-3" style="width: 18rem;" id="card">
<img src="src/assets/gamescouter-logo.png" class="card-img-top" alt="...">
<a href="#"><button class="custom-btn btn-13 card-button geklickt" id="card-button" onclick="toggleCardContent(this)">Mehr Infos</button></a>
<div class="card-body card-content" id="card-content">
<h5 class="game-title" >Titel des Spiels</h5>
<p class="game-tags">Game Tags hier</p>
<iframe width="150" height="80" src="https://www.youtube.com/embed/vjTKruczGX4?si=LHDMzJbr5DN5a7C7" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div class="release-date">
<p>19.10.2023</p>
</div>
</div>
</div>
</div>
<script src="src/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/less" ></script>
<script src="https://kit.fontawesome.com/f94a4c3473.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>
</html>
Binary file not shown.
Binary file not shown.
Binary file added gamescouter_test/src/assets/gamescouter-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 14fd1ba

Please sign in to comment.