From d1fe4536cc039450b540104e382db0d01d5cf886 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Fri, 19 Jun 2020 02:16:51 +0100 Subject: Initial commit --- resources/js/bootstrap.js | 13 +++ resources/sass/_variables.scss | 19 ++++ resources/sass/app.scss | 9 +- resources/views/index.blade.php | 49 ++++++++++ resources/views/layout/default.blade.php | 20 +++++ .../views/layout/partial/footer-scripts.blade.php | 0 resources/views/layout/partial/footer.blade.php | 0 resources/views/layout/partial/head.blade.php | 13 +++ resources/views/layout/partial/header.blade.php | 0 resources/views/layout/partial/nav.blade.php | 0 resources/views/welcome.blade.php | 100 --------------------- 11 files changed, 122 insertions(+), 101 deletions(-) create mode 100644 resources/sass/_variables.scss create mode 100644 resources/views/index.blade.php create mode 100644 resources/views/layout/default.blade.php create mode 100644 resources/views/layout/partial/footer-scripts.blade.php create mode 100644 resources/views/layout/partial/footer.blade.php create mode 100644 resources/views/layout/partial/head.blade.php create mode 100644 resources/views/layout/partial/header.blade.php create mode 100644 resources/views/layout/partial/nav.blade.php delete mode 100644 resources/views/welcome.blade.php (limited to 'resources') diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 6922577..63605fa 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -1,5 +1,18 @@ window._ = require('lodash'); +/** + * We'll load jQuery and the Bootstrap jQuery plugin which provides support + * for JavaScript based Bootstrap features such as modals and tabs. This + * code may be modified to fit the specific needs of your application. + */ + +try { + window.Popper = require('popper.js').default; + window.$ = window.jQuery = require('jquery'); + + require('bootstrap'); +} catch (e) {} + /** * We'll load the axios HTTP library which allows us to easily issue requests * to our Laravel back-end. This library automatically handles sending the diff --git a/resources/sass/_variables.scss b/resources/sass/_variables.scss new file mode 100644 index 0000000..0407ab5 --- /dev/null +++ b/resources/sass/_variables.scss @@ -0,0 +1,19 @@ +// Body +$body-bg: #f8fafc; + +// Typography +$font-family-sans-serif: 'Nunito', sans-serif; +$font-size-base: 0.9rem; +$line-height-base: 1.6; + +// Colors +$blue: #3490dc; +$indigo: #6574cd; +$purple: #9561e2; +$pink: #f66d9b; +$red: #e3342f; +$orange: #f6993f; +$yellow: #ffed4a; +$green: #38c172; +$teal: #4dc0b5; +$cyan: #6cb2eb; diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 8337712..3193ffa 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -1 +1,8 @@ -// +// Fonts +@import url('https://fonts.googleapis.com/css?family=Nunito'); + +// Variables +@import 'variables'; + +// Bootstrap +@import '~bootstrap/scss/bootstrap'; diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php new file mode 100644 index 0000000..cde358d --- /dev/null +++ b/resources/views/index.blade.php @@ -0,0 +1,49 @@ +@extends('layout.default') + +@section('content') + + +@foreach ($tournaments as $tournament) + +
+
+

{{ $tournament->name }}

+
+ +
+ + + + + + + + + + + + + + + + + + @foreach ($tournament->matches as $match) + + + + + + + + + + @endforeach + + +
#HomeAwayVenueRefereeDate
{{ $match->id }}{{ $match->homeTeam()->first()->getName() }}{{ $match->score }}
{{$match->half_score}}
{{ $match->awayTeam()->first()->getName() }}{{ $match->getDisplayName() }}{{ $match->referee }}{{ $match->getDisplayDate() }}
+
+
+@endforeach + +@endsection \ No newline at end of file diff --git a/resources/views/layout/default.blade.php b/resources/views/layout/default.blade.php new file mode 100644 index 0000000..f39de87 --- /dev/null +++ b/resources/views/layout/default.blade.php @@ -0,0 +1,20 @@ + + + + + @include('layout.partial.head') + + + + @include('layout.partial.nav') + + @include('layout.partial.header') + + @yield('content') + + @include('layout.partial.footer') + + @include('layout.partial.footer-scripts') + + + \ No newline at end of file diff --git a/resources/views/layout/partial/footer-scripts.blade.php b/resources/views/layout/partial/footer-scripts.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/layout/partial/footer.blade.php b/resources/views/layout/partial/footer.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/layout/partial/head.blade.php b/resources/views/layout/partial/head.blade.php new file mode 100644 index 0000000..1b63459 --- /dev/null +++ b/resources/views/layout/partial/head.blade.php @@ -0,0 +1,13 @@ + + + + + + +Rugby + + + + + + \ No newline at end of file diff --git a/resources/views/layout/partial/header.blade.php b/resources/views/layout/partial/header.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/layout/partial/nav.blade.php b/resources/views/layout/partial/nav.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index 3fb48cc..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - Laravel - - - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- Laravel -
- - -
-
- - -- cgit v1.2.3