From bf410c4f9922c6733e355f896ea4faa026bb6580 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 10 Aug 2017 01:00:08 -0500 Subject: [PATCH] card style new pilots on homepage --- app/Http/Controllers/HomeController.php | 6 +- public/assets/frontend/css/styles.css | 15 +++++ .../views/layouts/default/home.blade.php | 58 ++++++++++--------- 3 files changed, 52 insertions(+), 27 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 83769aae..1cde5718 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use App\Models\User; class HomeController extends AppBaseController { @@ -11,6 +12,9 @@ class HomeController extends AppBaseController */ public function index() { - return $this->view('home'); + $users = User::orderBy('created_at', 'desc')->take(4)->get(); + return $this->view('home', [ + 'users' => $users, + ]); } } diff --git a/public/assets/frontend/css/styles.css b/public/assets/frontend/css/styles.css index 1909c2e2..8cc782cb 100644 --- a/public/assets/frontend/css/styles.css +++ b/public/assets/frontend/css/styles.css @@ -2,6 +2,21 @@ * */ +.card-bg { + float: left; + position: absolute; + display:block; + bottom: 10px; + width:100%; + height:100%; + font-size: 275px; + text-align: center; +} + +.blue-bg { + background: #067ec1; +} + .border-blue-bottom { border-bottom: 3px solid #067ec1; } diff --git a/resources/views/layouts/default/home.blade.php b/resources/views/layouts/default/home.blade.php index 4694f140..fb2f5de1 100644 --- a/resources/views/layouts/default/home.blade.php +++ b/resources/views/layouts/default/home.blade.php @@ -2,32 +2,38 @@ @section('content')
-
-
-

phpVMS7

-
-
-

- Oh! I have slipped the surly bonds of earth,
- And danced the skies on laughter-silvered wings;
- Sunward I've climbed, and joined the tumbling mirth
- Of sun-split clouds, --and done a hundred things
- You have not dreamed of --Wheeled and soared and swung
- High in the sunlit silence. Hov'ring there
- I've chased the shouting wind along, and flung
- My eager craft through footless halls of air...
- Up, up the long, delirious, burning blue
- I've topped the wind-swept heights with easy grace
- Where never lark or even eagle flew --
- And, while with silent lifting mind I've trod
- The high untrespassed sanctity of space,
- Put out my hand, and touched the face of God.
-
- - - John Gillespie Magee, Jr - -

-
+
+
+
+

newest pilots

+
+ @foreach($users as $user) +
+ +
+ @endforeach +
@endsection