Updated the page style

This commit is contained in:
Patryk Hegenberg 2023-01-12 16:20:32 +01:00
parent 26ed07ba42
commit 762458c88d
9 changed files with 738 additions and 200 deletions

View file

@ -1,123 +1,94 @@
<?php require ('partials/head.php') ?>
<?php require ('partials/nav.php') ?>
<div class="isolate bg-white my-10">
<main style="background-color: #3f3035;">
<div class="relative px-6 lg:px-8 min-h-500" style="background-image: url(../images/HeroBanner.png); background-repeat: no-repeat; background-position: center;">
<div class="mx-auto max-w-3xl pt-20 pb-32 sm:pt-48 sm:pb-40">
<div>
<div class="hidden sm:mb-8 sm:flex sm:justify-center">
<?php require('partials/head.php') ?>
<?php require('partials/nav.php') ?>
<main>
<section class="hero">
<div class="container">
<div class="hero-inner">
<div class="hero-copy">
<h1 class="hero-title mt-0">Automatisiere spielerisch das 1x1</h1>
<p class="hero-paragraph">Zeige was du kannst und kämpfe dich durch den Dungeon.</p>
<div class="hero-cta">
<a class="<?= urlIs("/login") ?> nes-btn is-primary" href="/login">Starte Jetzt!</a>
</div>
<div>
<h1 class="text-4xl font-bold tracking-tight sm:text-center sm:text-6xl" style="color: #e6e6e7;">Automatisiere spielerisch das 1x1</h1>
<p class="mt-6 text-lg leading-8 text-gray-600 sm:text-center" style="color: whitesmoke;">Zeige was du kannst und kämpfe dich durch denn Dungeon.</p>
<div class="mt-8 flex gap-x-4 sm:justify-center">
<a href="/login" class="<?= urlIs("/login") ?> nes-btn is-primary">
Los geht's
<span class="text-indigo-200" aria-hidden="true">&rarr;</span>
</a>
</div>
</div>
</div>
</section>
<section class="features section">
<div class="container">
<div class="features-inner section-inner has-bottom-divider">
<div class="features-header text-center">
<div class="container-sm">
<h2 class="section-title mt-0">The Math Wizard</h2>
<p class="section-paragraph">Ohne es zu bemerken lernst du das 1x1.</p>
</div>
</div>
<div class="features-wrap">
<div class="feature is-revealing">
<div class="feature-inner">
<div class="feature-icon">
<img class="asset-dark" src="./images/weapon_sword_ruby.png" alt="Feature 01">
</div>
<div class="feature-content">
<h3 class="feature-title mt-0">Immer neue Level</h3>
<p class="text-sm mb-0">Spannende, zufallsgeneriete Level im Dungeon-Crawler-Stil.</p>
</div>
</div>
</div>
<div class="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]">
<svg class="relative left-[calc(50%+3rem)] h-[21.1875rem] max-w-none -translate-x-1/2 sm:left-[calc(50%+36rem)] sm:h-[42.375rem]" viewBox="0 0 1155 678" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill="url(#ecb5b0c9-546c-4772-8c71-4d3f06d544bc)" fill-opacity=".3" d="M317.219 518.975L203.852 678 0 438.341l317.219 80.634 204.172-286.402c1.307 132.337 45.083 346.658 209.733 145.248C936.936 126.058 882.053-94.234 1031.02 41.331c119.18 108.451 130.68 295.337 121.53 375.223L855 299l21.173 362.054-558.954-142.079z" />
<defs>
<linearGradient id="ecb5b0c9-546c-4772-8c71-4d3f06d544bc" x1="1155.49" x2="-78.208" y1=".177" y2="474.645" gradientUnits="userSpaceOnUse">
<stop stop-color="#9089FC"></stop>
<stop offset="1" stop-color="#FF80B5"></stop>
</linearGradient>
</defs>
</svg>
<div class="feature is-revealing">
<div class="feature-inner">
<div class="feature-icon">
<img class="asset-dark" src="./images/monster_imp.png" alt="Feature 02">
</div>
<div class="feature-content">
<h3 class="feature-title mt-0">Angepasste Schwierigkeit</h3>
<p class="text-sm mb-0">Die Aufgaben passen sich deinen aktuellen Fähigkeiten an.</p>
</div>
</div>
</div>
<div class="feature is-revealing">
<div class="feature-inner">
<div class="feature-icon">
<img class="asset-dark" src="./images/npc_knight_green.png" alt="Feature 03">
</div>
<div class="feature-content">
<h3 class="feature-title mt-0">Fokus auf das was zählt</h3>
<p class="text-sm mb-0">Fokus auf das Automatisieren der Multiplikation im Zahlenraum von 1 bis 10.</p>
</div>
</div>
</div>
<div class="feature is-revealing">
<div class="feature-inner">
<div class="feature-icon">
<img class="asset-dark" src="./images/monster_necromancer.png" alt="Feature 04">
</div>
<div class="feature-content">
<h3 class="feature-title mt-0">Lernfortschritt immer im Blick</h3>
<p class="text-sm mb-0">Lernziel und Fortschrittskontrolle, um deinen Fortschritt zu verfolgen.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="h-24" style="background-color: #3f3035;">
</div>
<div class="py-24 sm:py-32 lg:py-40" style="background-color: #3f3035;">
<div class="nes-container with-title mx-auto max-w-7xl px-6 lg:px-8 bg-gray-50">
<p class="title">Features</p>
<div class="sm:text-center">
<p class="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">Der bessere Weg das 1x1 zu automatisieren.</p>
</div>
</section>
<div class="mt-20 max-w-lg sm:mx-auto md:max-w-none">
<div class="grid grid-cols-1 gap-y-16 md:grid-cols-2 md:gap-x-12 md:gap-y-16">
<div class="relative flex flex-col gap-6 sm:flex-row md:flex-col lg:flex-row">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-indigo-500 text-white sm:shrink-0">
<!-- Heroicon name: outline/globe-alt -->
<svg class="h-8 w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" />
</svg>
</div>
<div class="sm:min-w-0 sm:flex-1">
<p class="text-lg font-semibold leading-8 text-gray-900">Immer neue Level</p>
<p class="mt-2 text-base leading-7 text-gray-600">Spannende, zufallsgenerierte Level im Dungeon-Crawler-Stil.</p>
<section class="cta section">
<div class="container-sm">
<div class="cta-inner section-inner">
<div class="cta-header text-center">
<h2 class="section-title mt-0">Bereit los zu legen?</h2>
<p class="section-paragraph">Fange noch heute an zu lernen.</p>
<div class="cta-cta">
<a class="<?= urlIs("/login") ?> nes-btn is-primary" href="/login">Los geht's</a>
</div>
</div>
<div class="relative flex flex-col gap-6 sm:flex-row md:flex-col lg:flex-row">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-indigo-500 text-white sm:shrink-0">
<!-- Heroicon name: outline/scale -->
<svg class="h-8 w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v17.25m0 0c-1.472 0-2.882.265-4.185.75M12 20.25c1.472 0 2.882.265 4.185.75M18.75 4.97A48.416 48.416 0 0012 4.5c-2.291 0-4.545.16-6.75.47m13.5 0c1.01.143 2.01.317 3 .52m-3-.52l2.62 10.726c.122.499-.106 1.028-.589 1.202a5.988 5.988 0 01-2.031.352 5.988 5.988 0 01-2.031-.352c-.483-.174-.711-.703-.59-1.202L18.75 4.971zm-16.5.52c.99-.203 1.99-.377 3-.52m0 0l2.62 10.726c.122.499-.106 1.028-.589 1.202a5.989 5.989 0 01-2.031.352 5.989 5.989 0 01-2.031-.352c-.483-.174-.711-.703-.59-1.202L5.25 4.971z" />
</svg>
</div>
<div class="sm:min-w-0 sm:flex-1">
<p class="text-lg font-semibold leading-8 text-gray-900">Angepasste Schwierigkeit</p>
<p class="mt-2 text-base leading-7 text-gray-600">Die Aufgabe passen sich deinen aktuellen Fähigkeiten an.</p>
</div>
</div>
<div class="relative flex flex-col gap-6 sm:flex-row md:flex-col lg:flex-row">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-indigo-500 text-white sm:shrink-0">
<!-- Heroicon name: outline/scale -->
<svg class="h-8 w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v17.25m0 0c-1.472 0-2.882.265-4.185.75M12 20.25c1.472 0 2.882.265 4.185.75M18.75 4.97A48.416 48.416 0 0012 4.5c-2.291 0-4.545.16-6.75.47m13.5 0c1.01.143 2.01.317 3 .52m-3-.52l2.62 10.726c.122.499-.106 1.028-.589 1.202a5.988 5.988 0 01-2.031.352 5.988 5.988 0 01-2.031-.352c-.483-.174-.711-.703-.59-1.202L18.75 4.971zm-16.5.52c.99-.203 1.99-.377 3-.52m0 0l2.62 10.726c.122.499-.106 1.028-.589 1.202a5.989 5.989 0 01-2.031.352 5.989 5.989 0 01-2.031-.352c-.483-.174-.711-.703-.59-1.202L5.25 4.971z" />
</svg>
</div>
<div class="sm:min-w-0 sm:flex-1">
<p class="text-lg font-semibold leading-8 text-gray-900">Fokus auf das was zählt</p>
<p class="mt-2 text-base leading-7 text-gray-600">Fokus auf das Automatisieren der Multiplikation im Zahlenraum von 1 bis 10.</p>
</div>
</div>
<div class="relative flex flex-col gap-6 sm:flex-row md:flex-col lg:flex-row">
<div class="flex h-12 w-12 items-center justify-center rounded-xl bg-indigo-500 text-white sm:shrink-0">
<!-- Heroicon name: outline/scale -->
<svg class="h-8 w-8" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v17.25m0 0c-1.472 0-2.882.265-4.185.75M12 20.25c1.472 0 2.882.265 4.185.75M18.75 4.97A48.416 48.416 0 0012 4.5c-2.291 0-4.545.16-6.75.47m13.5 0c1.01.143 2.01.317 3 .52m-3-.52l2.62 10.726c.122.499-.106 1.028-.589 1.202a5.988 5.988 0 01-2.031.352 5.988 5.988 0 01-2.031-.352c-.483-.174-.711-.703-.59-1.202L18.75 4.971zm-16.5.52c.99-.203 1.99-.377 3-.52m0 0l2.62 10.726c.122.499-.106 1.028-.589 1.202a5.989 5.989 0 01-2.031.352 5.989 5.989 0 01-2.031-.352c-.483-.174-.711-.703-.59-1.202L5.25 4.971z" />
</svg>
</div>
<div class="sm:min-w-0 sm:flex-1">
<p class="text-lg font-semibold leading-8 text-gray-900">Lernfortschritt immer im Blick.</p>
<p class="mt-2 text-base leading-7 text-gray-600">Lernziele und Fortschrittskontrollen, um den Fortschritt der Schüler zu verfolgen.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="h-48" style="background-color: #3f3035;">
</div>
<div class="bg-gray-50">
<div class="mx-auto max-w-7xl py-12 px-6 lg:flex lg:items-center lg:justify-between lg:py-16 lg:px-8">
<h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
<span class="block">Bereit los zu legen?</span>
<span class="block text-indigo-600">Fange noch heute an zu lernen.</span>
</h2>
<div class="mt-8 flex lg:mt-0 lg:flex-shrink-0">
<div class="inline-flex rounded-md shadow">
<a href="/login" class="<?= urlIs("/login") ?> nes-btn is-primary">Los geht's</a>
</div>
</div>
</div>
</div>
</section>
</main>
</main>
</div>
<?php require ('partials/footer.php') ?>
<?php require('partials/footer.php') ?>

View file

@ -1,41 +1,39 @@
<?php require('partials/head.php') ?>
<?php require('partials/nav.php') ?>
<div class="flex min-h-full items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="w-full max-w-md space-y-8 nes-container">
<form action="/login" method="POST">
<div>
<h2 class="mt-6 text-center text-3xl font-bold tracking-tight text-gray-900">Melde dich mit deinem Konto an.</h2>
<p class="mt-2 text-center text-sm text-gray-600">
Oder
<a href="/register" class="<?= urlIs("/register") ?> font-medium text-indigo-600 hover:text-indigo-500">registriere dich noch Heute</a>
</p>
</div>
<div class="nes-field">
<!--<label for="name_field">Username</label>-->
<input name="username" type="text" class="nes-input" placeholder="Username">
<div class="container login">
<div class="nes-container">
<form action="/login" method="POST">
<div>
<h2>Melde dich mit deinem Konto an.</h2>
<p>
Oder
<a href="/register" class="<?= urlIs("/register") ?>">registriere dich noch Heute</a>
</p>
</div>
<div class="nes-field">
<input name="username" type="text" class="nes-input" placeholder="Username">
</div>
<div class="nes-field">
<input name="password" type="password" class="nes-input" placeholder="Passwort">
</div>
<div class="container">
<label>
<input type="checkbox" class="nes-checkbox is-dark" />
<span>Angemeldet bleiben</span>
</label>
<div>
<a href="#">Passwort vergessen?</a>
</div>
</div>
<div >
<button type="submit" name="submit" class="nes-btn is-primary">
<span>
</span>
Anmelden
</button>
</div>
</form>
</div>
<div class="nes-field">
<!--<label for="name_field">Passwort</label>-->
<input name="password" type="password" class="nes-input" placeholder="Passwort">
</div>
<div class="flex items-center justify-between">
<label class="flex items-center justify-between">
<input type="checkbox" class="nes-checkbox" />
<span>Angemeldet bleiben</span>
</label>
<div class="text-sm">
<a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">Passwort vergessen?</a>
</div>
</div>
<div>
<button type="submit" name="submit" class="nes-btn is-primary">
<span class="absolute inset-y-0 left-0 flex items-center pl-3">
</span>
Anmelden
</button>
</div>
</form>
</div>
</div>
<?php require('partials/footer.php') ?>
<?php require('partials/footer.php') ?>

View file

@ -1,4 +1,17 @@
</div>
<footer class="site-footer has-top-divider">
<div class="container">
<div class="site-footer-inner">
<div class="brand footer-brand">
<a href="#">
<img class="asset-dark" src="./images/icon.png" alt="Logo">
</a>
</div>
<div class="footer-copyright">&copy; 2018 Patryk Hegenberg, all rights reserved</div>
</div>
</div>
</footer>
</div>
<script src="./../scripts/web.js"></script>
</body>
</html>

View file

@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="de" class="h-full bg-gray-100">
<html lang="de" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com?plugins=forms"></script>
<link href="https://cdn.jsdelivr.net/npm/nes.css@2.3.0/css/nes.min.css" rel="stylesheet">
<title>The Math Wizard</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P');
</style>
<link href="https://cdn.jsdelivr.net/npm/nes.css@2.3.0/css/nes.min.css" rel="stylesheet">
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
<link rel="stylesheet" href="./../styles/style.css">
<title>The Math Wizard</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P');
</style>
</head>

View file

@ -1,27 +1,27 @@
<body class="h-full">
<div class="min-h-full" style="background-color: #3f3035;">
<div class="px-6 pt-6 lg:px-8 mb-5" >
<div>
<nav class="flex h-9 items-center justify-between" aria-label="Global" style="background-color: #3f3035;">
<div class="flex lg:min-w-0 lg:flex-1" aria-label="Global">
<a href="/" class="<?= urlIs("/") ?> -m-1.5 p-1.5">
<span class="sr-only">Your Company</span>
<img class="h-8" src="./../../images/icon.png" alt="">
</a>
</div>
<div class="lg:flex lg:min-w-0 lg:flex-1 lg:justify-center lg:gap-x-12">
<?php if(isset($_SESSION['username'])) : ?>
<a href="/profile" class="<?= urlIs('/profile') ?> text-sm font-semibold text-gray-900 hover:text-gray-900">Dashboard</a>
<?php endif; ?>
</div>
<div class="lg:flex lg:min-w-0 lg:flex-1 lg:justify-end">
<?php if(isset($_SESSION['username'])) : ?>
<a href="/logout" class="<?= urlIs("/logout") ?> nes-btn text-sm">Abmelden</a>
<?php else : ?>
<a href="/login" class="<?= urlIs('/login') ?> nes-btn text-sm">Anmelden</a>
<!-- <a href="/register" class="<?= urlIs('/register') ?> nes-btn text-sm">Registrieren</a>-->
<?php endif; ?>
</div>
</nav>
</div>
</div>
<body class="is-boxed">
<div class="body-wrap boxed-container">
<header class="site-header">
<div class="container">
<nav>
<div class="site-header-inner">
<a href="/" class="<?= urlIs("/") ?> ">
<img src="./../../images/icon.png" alt="">
</a>
<div>
<?php if (isset($_SESSION['username'])) : ?>
<a href="/profile" class="<?= urlIs('/profile') ?> ">Profil</a>
<?php endif; ?>
</div>
<div>
<?php if (isset($_SESSION['username'])) : ?>
<a href="/logout" class="<?= urlIs("/logout") ?> nes-btn ">Abmelden</a>
<?php else : ?>
<a href="/login" class="<?= urlIs('/login') ?> nes-btn">Anmelden</a>
<?php endif; ?>
</div>
</div>
</nav>
</div>
</header>

View file

@ -1,28 +1,28 @@
<?php require('partials/head.php') ?>
<?php require('partials/nav.php') ?>
<div class="flex min-h-full items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="flex-col">
<div class="w-1000 space-y-8 nes-container">
<section class="message-list flex-auto">
<section class="message -left flex space-x-10">
<i class="nes-bcrikko mr-10"></i>
<div class="nes-balloon from-left mx-10">
<div class="container profile">
<div>
<div class="nes-container">
<section class="message-list">
<section class="message -left">
<i class="nes-bcrikko"></i>
<div class="nes-balloon from-left">
<p>Hallo <?= $stats['username'] ?> schön das du da bist.</p>
</div>
</section>
</section>
<div class="nes-container flex-col justife-center items-center space-y-4">
<div class="nes-container">
<div class="text-center">
<h1>Was möchtest du tun?</h1>
<h3>Was möchtest du tun?</h3>
</div>
<div class="flex justify-evenly items-center">
<a href="/learn" class="<?= urlIs("/learn") ?> nes-btn">Lernen</a>
<div>
<!--<a href="/learn" class="<?= urlIs("/learn") ?> nes-btn">Lernen</a>-->
<a href="/game" class="<?= urlIs("/game") ?> nes-btn">Üben</a>
</div>
</div>
</div>
<div class="nes-container with-title mt-10 space-y-4">
<div class="nes-container with-title">
<span class="title">Dein Fortschritt</span>
<span>Du bist aktuell Level: <?php echo $stats['level'] ?> </span>
<br>
@ -39,11 +39,11 @@
</div>
</div>
</div>
<div class="nes-container mt-10">
<div class="nes-container">
<div>
<a href="/delete" class="nes-btn is-error">Account löschen</a>
<a href="/delete" class="nes-btn is-error">Account löschen</a>
</div>
</div>
</div>
</div>
<?php require('partials/footer.php') ?>
<?php require('partials/footer.php') ?>

View file

@ -1,7 +1,7 @@
<?php require('partials/head.php') ?>
<?php require('partials/nav.php') ?>
<div class="flex min-h-full items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="w-full max-w-md space-y-8 nes-container">
<div class="container register">
<div class="nes-container">
<form action="/register" method="POST">
<div class="nes-field">