From a3390bdba5b506188bfae45abe9a379824cce02e Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Wed, 4 Jun 2025 11:45:56 +0100 Subject: [PATCH] Test pages, and includes. New routes for those --- app/controllers/Page/Controller.php | 14 + app/routes/_app.php | 11 +- app/routes/_auth.php | 6 + app/views/about.blade.php | 36 ++ app/views/components/contact-form.blade.php | 235 +++++++ app/views/components/footer.blade.php | 13 +- app/views/components/header.blade.php | 78 ++- app/views/components/server-banner.blade.php | 4 +- app/views/index.blade.php | 28 +- app/views/layouts/basePage.blade.php | 2 +- app/views/sf-trying-swiper.blade.php | 574 +++++++++++++++++ app/views/sf.blade.php | 634 +++++++++++++++++++ public/assets/css/main.css | 40 +- 13 files changed, 1599 insertions(+), 76 deletions(-) create mode 100644 app/controllers/Page/Controller.php create mode 100644 app/views/about.blade.php create mode 100644 app/views/components/contact-form.blade.php create mode 100644 app/views/sf-trying-swiper.blade.php create mode 100644 app/views/sf.blade.php diff --git a/app/controllers/Page/Controller.php b/app/controllers/Page/Controller.php new file mode 100644 index 0000000..4a967be --- /dev/null +++ b/app/controllers/Page/Controller.php @@ -0,0 +1,14 @@ +render('about'); } + public function simple(){ + response()->render('sf'); + // response()->render('sf-trying-swiper'); + } + +} diff --git a/app/routes/_app.php b/app/routes/_app.php index 483ee11..45bda46 100644 --- a/app/routes/_app.php +++ b/app/routes/_app.php @@ -13,4 +13,13 @@ app()->get('/', 'Home\Controller@index'); // ); // }]); -// response()->redirect(['index']); \ No newline at end of file +// response()->redirect(['index']); + +// Generic controller for 'basic' pages +app()->get('/about', 'Page\Controller@about'); + +app()->get('/simple', 'Page\Controller@simple'); + +app()->get('/discord', ['name' => 'discord', function() { + response()->redirect('https://discord.gg/mpqKaktn9w'); // Temporary member discord invite +}]); diff --git a/app/routes/_auth.php b/app/routes/_auth.php index 3bdc052..d686157 100644 --- a/app/routes/_auth.php +++ b/app/routes/_auth.php @@ -1,5 +1,7 @@ middleware('auth.required', function () { response()->redirect('/auth/login'); }); @@ -8,6 +10,10 @@ auth()->middleware('auth.guest', function () { response()->redirect('/dashboard'); }); +app()->get('/auth', function(){ + response()->redirect('/auth/login'); +}); + app()->group('/auth', [ 'middleware' => 'auth.guest', function () { diff --git a/app/views/about.blade.php b/app/views/about.blade.php new file mode 100644 index 0000000..0d58726 --- /dev/null +++ b/app/views/about.blade.php @@ -0,0 +1,36 @@ +@extends('layouts.basePage', [ + 'title' => _env('APP_NAME', 'aNetwork Gaming Community'), + 'breadcrumbs' => [ + [ + 'title' => 'Home', + 'href' => '/', + ] + ] +]) + +@section('content') + + @include('components/header') + +
+ +
+
+
+
+ + + + +
+
+
+
+ + @includeIf('components/contact-form') + +
+ + @includeIf('components/footer') + +@endsection \ No newline at end of file diff --git a/app/views/components/contact-form.blade.php b/app/views/components/contact-form.blade.php new file mode 100644 index 0000000..073191d --- /dev/null +++ b/app/views/components/contact-form.blade.php @@ -0,0 +1,235 @@ +
+
+
+
+

Over the top Contact Form

+

Contains all the form elements I will be bothered to style

+
+
+
+
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+ @ +
+ +
+
+
+ +
+
+ +
+ +
+ append +
+
+
+
+ +
+ +
+ + + +
+
+
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+

Checkboxes

+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+
+
+ SELECT YOUR FAVOURITE +
+ + +
+
+ + +
+
+ + +
+
+
+
+ +
+
+ + + + + + + + +
+ +
+ + + + + + + + + + +
+
+ +
+ +
+
+ + +
+
+ +
+
+
+ +
+
+
+

HEADER

+
+

TITLE

+

text text tesx kajdfa fjladf jladkf ajdfl kadj fjask fjldsaj fljad fklasjd lfj lkdf

+
+

FOOTER

+
+
+
+
+
+

TITLE

+

text text tesx kajdfa fjladf jladkf ajdfl kadj fjask fjldsaj fljad fklasjd lfj lkdf

+
+
+
+
+

Footer content that is not a title

+
+
+ Button +
+
+
+
+
+
+
+

HEADER

+
+

TITLE

+

text text tesx kajdfa fjladf jladkf ajdfl kadj fjask fjldsaj fljad fklasjd lfj lkdf

+ Button +
+
+
+
+ +
+
+
+ +
+

SERVIE SERVICE SERVICE SERIVE SEIVES SEIGSVE SEIEVE ESIEFEVE

+
+
a
+
s
+
Something
+
+
+
+
+
+
diff --git a/app/views/components/footer.blade.php b/app/views/components/footer.blade.php index 35868b5..a643d49 100644 --- a/app/views/components/footer.blade.php +++ b/app/views/components/footer.blade.php @@ -2,9 +2,9 @@
-
+
-
+
Section title
-
+
Section title
-
+
Section title
  • Sub
  • @@ -33,8 +33,9 @@
-
-

C

+
+ aNetwork +

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

diff --git a/app/views/components/header.blade.php b/app/views/components/header.blade.php index a6ca331..3aac33f 100644 --- a/app/views/components/header.blade.php +++ b/app/views/components/header.blade.php @@ -1,34 +1,54 @@ -
- - +
diff --git a/app/views/components/server-banner.blade.php b/app/views/components/server-banner.blade.php index f781711..984cd0f 100644 --- a/app/views/components/server-banner.blade.php +++ b/app/views/components/server-banner.blade.php @@ -26,7 +26,7 @@
index == 0) data-tabs-default @endif > @if(empty($server['servers']))
-
+

Uh oh!

Currently there are no '{{ $server['type'] }}' servers

@@ -34,7 +34,7 @@ @else @foreach($server['servers'] as $serverItem)
-
+

{{ $serverItem['name'] }}

{{ $serverItem['description'] }}

diff --git a/app/views/index.blade.php b/app/views/index.blade.php index e626d53..602cc64 100644 --- a/app/views/index.blade.php +++ b/app/views/index.blade.php @@ -14,24 +14,16 @@
-
-
-
-
- -
-
-
-
-

aNetwork Gaming Community

+

aNetwork Gaming Community

A community that runs several gaming servers. If there's something we don't host; Let us know over in the aNetwork Discord. If there's enough want, we'll set it up.


View Servers - Join Discord → + Join Discord → + Disabled
@@ -59,20 +51,22 @@
-

Formed in 2021

-

Card content*

-

*with small content

+
+

Formed in 2021

+

Card content*

+

*with small content

+
-
+

Public Servers

Card content

-

Swag Awesome

+

Swag Awesome

-
+

Community Events

Card content

diff --git a/app/views/layouts/basePage.blade.php b/app/views/layouts/basePage.blade.php index 7c6705c..d814012 100644 --- a/app/views/layouts/basePage.blade.php +++ b/app/views/layouts/basePage.blade.php @@ -18,7 +18,7 @@ - + diff --git a/app/views/sf-trying-swiper.blade.php b/app/views/sf-trying-swiper.blade.php new file mode 100644 index 0000000..9fc157a --- /dev/null +++ b/app/views/sf-trying-swiper.blade.php @@ -0,0 +1,574 @@ +@extends('layouts.basePage', [ + 'title' => 'SFs Dupe', + 'breadcrumbs' => [ + [ + 'title' => 'Home', + 'href' => '/', + ] + ] +]) + +@section('content') + +
+ +
+
+
+
+
+ Location 1 + Location 2 + Location 3 +
+
+
+
+
+
+
+ +
+
+ Burger +
+
+
+
+ + + +
+
+
+
+ +
+ +
+
+
+ + icoLocation 1Tel 01472222333 + icoLocation 1Tel 01472222333 + icoLocation 1Tel 01472222333 + + + + + + + +
+
+
+
+ + + +
+
+
+
+
+
+ +
+ + + + + + +
+ +
+
+

Our Showrooms

+
+ More Store information + -> +
+
+ + +
+
+
+

Showroom Name

+
icon

PHONE NUM

+
icon

reigate@simplefloors.co.uk

+
+
+
+
+

Showroom Name

+
icon

PHONE NUM

+
icon

reigate@simplefloors.co.uk

+
+
+
+
+

Showroom Name

+
icon

PHONE NUM

+
icon

reigate@simplefloors.co.uk

+
+
+
+
+
+ + +
+
+ + +
+
+
+

WHERE ELEGANCE MEETS PERFORMANCE

+

Amigo

+

As an Amtico One Premium Retailer, we offer expert guidance and installation. Amtico flooring is a luxurious, durable solution, replicating natural materials like wood and stone with a high-quality finish. Scratch-resistant and low-maintenance, it’s ideal for busy homes and commercial spaces. With unique patterns like herringbone and parquet, Amtico lets you create a stylish, long-lasting floor tailored to your vision.

+ Amtico Range +
+
+
+ +
+ +
+
+
+ + +
+

Meet the Team

+
+ @for ($i = 0; $i < 3; $i++) +
+ +

Team member name

+

Job role

+
+ @endfor +
+
+ + +
+

Our Showrooms

+
+ @for ($i = 0; $i < 3; $i++) +
+
+

Someplace Store

+
+ +

123 Somewhere Road Someplace, PO5 C0D

+
+
+ +

000 0000 0000

+
+
+ +

email@address.co.uk

+
+
+ +
+

Opening Hours

+
+
+
+

Mon-Fri

+
+
+

9am - 4pm

+
+
+
+
+

Sat

+
+
+

9am - 3pm

+
+
+
+
+
+ +
+ +
+
+
+ @endfor +
+
+ + +
+
+
+

Fancy Range Slider

+

Whether you desire the look of a natural wood, a calming stone, or even something more abstract, Amtico offers a range of designs and patterns across all their collections. With durable wear layers and timeless style your Amtico floor will stand the test of time.

+
+
+ +
+
+

Slider range title

+

With the same benefits of a standard Amtico floor, but the option for more style creativity, we can create an elegant-looking, well-designed floor, with a more modern and contemporary aesthetic choice of patterns and designs.

+ Button link +
+ +
+
+ + + + +
+
+ +
+ +
+
+
+
+
+
+ + + + +
+
+ + + +
+ +
+ + +
+
+ + + + + +
+ +
+ + + +
+
+
+

Fancy gallery

+
+
+ + + + +
+ + + +
+
+
+
+
+ + +
+ +
+
+ @for ($i = 0; $i < 3; $i++) +
+

Someplace Store

+
icon

123 Somewhere Road Someplace, PO5 C0D

+
icon

000 0000 0000

+
icon

email@address.co.uk

+
+ @endfor + +
+

Useful Links

+ + + +
+
+ +
+ +
+
+

Header

+

Paragraph/content of the block

+
+
+ + +
+ +
+
+
+ + + + + +
+
+
+
+
+ +
+
+

Copyright © SF | All Rights Reserved

+

Developed by Aney

+
+
+ +
+@endsection diff --git a/app/views/sf.blade.php b/app/views/sf.blade.php new file mode 100644 index 0000000..9632ac5 --- /dev/null +++ b/app/views/sf.blade.php @@ -0,0 +1,634 @@ +@extends('layouts.basePage', [ + 'title' => 'SFs Dupe', + 'breadcrumbs' => [ + [ + 'title' => 'Home', + 'href' => '/', + ] + ] +]) + +@section('content') + +
+ +
+
+
+
+
+ Location 1 + Location 2 + Location 3 +
+
+
+
+
+
+
+ +
+
+ Burger +
+
+
+
+ + + +
+
+
+
+ +
+ +
+
+
+ + icoLocation 1Tel 01472222333 + icoLocation 1Tel 01472222333 + icoLocation 1Tel 01472222333 + + + + + + + +
+
+
+
+ + + +
+
+
+
+
+
+ +
+ + + + + + +
+ +
+
+

Our Showrooms

+
+ More Store information + -> +
+
+ + +
+
+
+

Showroom Name

+
icon

PHONE NUM

+
icon

reigate@simplefloors.co.uk

+
+
+
+
+

Showroom Name

+
icon

PHONE NUM

+
icon

reigate@simplefloors.co.uk

+
+
+
+
+

Showroom Name

+
icon

PHONE NUM

+
icon

reigate@simplefloors.co.uk

+
+
+
+
+
+ + +
+
+ + +
+
+
+

WHERE ELEGANCE MEETS PERFORMANCE

+

Amigo

+

As an Amtico One Premium Retailer, we offer expert guidance and installation. Amtico flooring is a luxurious, durable solution, replicating natural materials like wood and stone with a high-quality finish. Scratch-resistant and low-maintenance, it’s ideal for busy homes and commercial spaces. With unique patterns like herringbone and parquet, Amtico lets you create a stylish, long-lasting floor tailored to your vision.

+ Amtico Range +
+
+
+ +
+ +
+
+
+ + +
+

Meet the Team

+
+ @for ($i = 0; $i < 3; $i++) +
+ +

Team member name

+

Job role

+
+ @endfor +
+
+ + +
+
+
+
+
+ aaa +
+ +
+ +
+
+
+
+
+ + +
+

Our Showrooms

+
+ @for ($i = 0; $i < 3; $i++) +
+
+

Someplace Store

+
+ +

123 Somewhere Road Someplace, PO5 C0D

+
+
+ +

000 0000 0000

+
+
+ +

email@address.co.uk

+
+
+ +
+

Opening Hours

+
+
+
+

Mon-Fri

+
+
+

9am - 4pm

+
+
+
+
+

Sat

+
+
+

9am - 3pm

+
+
+
+
+
+ +
+ +
+
+
+ @endfor +
+
+ + +
+
+
+
+

Fancy Range Slider

+

Whether you desire the look of a natural wood, a calming stone, or even something more abstract, Amtico offers a range of designs and patterns across all their collections. With durable wear layers and timeless style your Amtico floor will stand the test of time.

+
+
+ +
+
+

Slider range title

+

With the same benefits of a standard Amtico floor, but the option for more style creativity, we can create an elegant-looking, well-designed floor, with a more modern and contemporary aesthetic choice of patterns and designs.

+ Button link +
+ +
+
+
+
+
+ + +
+ +
+ +
+ +
+
+ +
+ @for ($i = 0; $i < 3; $i++) +
+ +
+ @endfor +
+ + +
+ +
+
+ +
+
+
+ + +
+
+
+

Fancy gallery

+
+
+ + + + +
+ + + + +@endsection diff --git a/public/assets/css/main.css b/public/assets/css/main.css index a3770ba..a53a5e6 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -29,8 +29,26 @@ vertical-align: middle; } +.servers-scroll{ + height: 178px; +} + +.servers-bg{ + background:#bac3cc; +} +.servers-bg .container{ + background-repeat: no-repeat; + background-position-x: right; + background-position-y: bottom; + background-size: contain; +} +.servers-bg--mc{ background:#96c564; } +.servers-bg--mc .container{ background-image: url(./images/mc.png); } +.servers-bg--factorio{ background:#d28c3c; } +.servers-bg--factorio .container{ background-image: url(./images/factorio.png); } -.footer{ +/* */ +/* .footer{ background-color: #3f3f3f ; color: #CCC; border-top: 1px solid #636363; @@ -51,22 +69,4 @@ display: inline-block; margin: 0 0.1rem; padding: 0 0.5rem; -} - -.servers-scroll{ - height: 178px; -} - -.servers-bg{ - background:#bac3cc; -} -.servers-bg .container{ - background-repeat: no-repeat; - background-position-x: right; - background-position-y: bottom; - background-size: contain; -} -.servers-bg--mc{ background:#96c564; } -.servers-bg--mc .container{ background-image: url(./images/mc.png); } -.servers-bg--factorio{ background:#d28c3c; } -.servers-bg--factorio .container{ background-image: url(./images/factorio.png); } +} */