Initial Commit
This commit is contained in:
commit
9b22323711
36 changed files with 7164 additions and 0 deletions
0
resources/views/.gitkeep
Normal file
0
resources/views/.gitkeep
Normal file
6
resources/views/errors/404.blade.php
Normal file
6
resources/views/errors/404.blade.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@extends('layouts.default')
|
||||
|
||||
@section('content')
|
||||
<h1>404</h2>
|
||||
<a href="/">Gå tillbaka</a>
|
||||
@endsection
|
||||
18
resources/views/layouts/default.blade.php
Normal file
18
resources/views/layouts/default.blade.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="{{ asset('/assets/bootstrap.min.css') }}">
|
||||
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container mt-5 p-5 text-center">
|
||||
@yield('content')
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
15
resources/views/main.blade.php
Normal file
15
resources/views/main.blade.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@extends('layouts.default')
|
||||
|
||||
@section('content')
|
||||
<p>Är ordet:</p>
|
||||
<h1 class="mb-5">{{ $word }}</h1>
|
||||
|
||||
<div class="row align-items-center">
|
||||
<div class="col-3 ml-auto">
|
||||
<a href="{{ route("word", ['uuid' => $uuid, 'guess' => 'sex'] ) }}" class="btn btn-block btn-lg btn-info">Sex-ställning</a>
|
||||
</div>
|
||||
<div class="col-3 mr-auto">
|
||||
<a href="{{ route("word", ['uuid' => $uuid, 'guess' => 'yoga'] ) }}" class="btn btn-block btn-lg btn-info">Yoga-övning</a>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
10
resources/views/result.blade.php
Normal file
10
resources/views/result.blade.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@extends('layouts.default')
|
||||
|
||||
@section('content')
|
||||
<p class="mb-5">
|
||||
Är ordet <strong>{{ $word }}</strong> en <strong>{{ $guess == 'sex' ? 'sex-ställning' : 'yoga-övning' }}</strong>?
|
||||
</p>
|
||||
|
||||
<h2 class="{{ $correct ? 'text-success' : 'text-danger' }}">{{ $correct ? 'Ja!' : 'Nej!' }}</h2>
|
||||
<a href="{{ route("word", ['uuid' => $next ]) }}" class="mt-5 btn btn-lg btn-info">Nästa ord</a>
|
||||
@endsection
|
||||
Reference in a new issue