Skip to content

Commit

Permalink
Merge pull request #2 from Raccoon254/changes
Browse files Browse the repository at this point in the history
Changes
  • Loading branch information
Raccoon254 authored May 17, 2024
2 parents 0f9ce1c + e067345 commit 451709a
Show file tree
Hide file tree
Showing 16 changed files with 123 additions and 28 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added app/.DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions app/Http/Controllers/PagesController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App\Http\Controllers;

use Illuminate\View\View;

class PagesController extends Controller
{
public function dashboard(): View
{
return view('dashboard');
}
}
34 changes: 34 additions & 0 deletions app/Http/Controllers/StaticPageController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace App\Http\Controllers;

use Illuminate\View\View;

class StaticPageController extends Controller
{
public function welcome(): View
{
$process_steps = [
[
'icon' => 'fa-solid avatar fa-pen-nib',
'color' => 'text-blue-500',
'title' => 'Place Your Order',
'text' => 'Submit your assignment details, including the topic, instructions, and due date.'
],
[
'icon' => 'fas fa-user-graduate',
'color' => 'text-green-500',
'title' => 'Hire a Writer',
'text' => 'Our expert writers will review your order and start working on it immediately.'
],
[
'icon' => 'fas fa-check-circle',
'color' => 'text-yellow-500',
'title' => 'Get Your Assignment',
'text' => 'Receive your high-quality assignment before the due date, reviewed and ready for submission.'
]
];
return view('welcome')->with('process_steps', $process_steps);
}
}

Binary file added database/.DS_Store
Binary file not shown.
45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"alpinejs": "^3.4.2",
"autoprefixer": "^10.4.2",
"axios": "^1.6.4",
"daisyui": "^4.11.1",
"laravel-vite-plugin": "^1.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.1.0",
Expand Down
Binary file added public/.DS_Store
Binary file not shown.
Binary file added public/images/.DS_Store
Binary file not shown.
Binary file added resources/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions resources/css/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

.center{
@apply flex items-center justify-center;
}
38 changes: 17 additions & 21 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,600&display=swap" rel="stylesheet"/>
@vite(['resources/css/app.css', 'resources/js/app.js'])
<script src="https://kit.fontawesome.com/af6aba113a.js" crossorigin="anonymous"></script>
</head>
<body class="font-sans antialiased">
<div class="bg-gray-50">
Expand All @@ -18,9 +19,15 @@
<div class="text-center md:text-left">
<h1 class="text-4xl font-bold text-black/90 mb-4">Welcome to Scholarspace</h1>
<p class="text-lg text-black/50 mb-8">Your trusted platform for assignment help.</p>
<div class="flex justify-center md:justify-start">
<a href="#" class="bg-blue-500 hover:bg-blue-600 font-semibold py-2 px-4 rounded-md mr-4">Login</a>
<a href="#" class="bg-green-500 hover:bg-green-600 font-semibold py-2 px-4 rounded-md">Register</a>
<div class="flex justify-center text-black/90 md:justify-start">
<a href="{{ route('login') }}"
class="bg-blue-500 hover:bg-blue-600 font-semibold py-2 px-4 rounded-md mr-4">
Login
</a>
<a href="{{ route('register') }}"
class="bg-green-500 hover:bg-green-600 font-semibold py-2 px-4 rounded-md">
Register
</a>
</div>
</div>
<div class="mt-8 md:mt-0">
Expand All @@ -35,24 +42,13 @@
<p class="text-lg text-black/50">Our simple and efficient process for getting your assignments done.</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white rounded-lg shadow-md p-6">
<i class="fas fa-edit fa-3x text-blue-500 mb-4"></i>
<h3 class="text-xl font-bold text-black/90 mb-2">Place Your Order</h3>
<p class="text-black/50">Submit your assignment details, including the topic, instructions, and due
date.</p>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<i class="fas fa-user-graduate fa-3x text-green-500 mb-4"></i>
<h3 class="text-xl font-bold text-black/90 mb-2">Hire a Writer</h3>
<p class="text-black/50">Our expert writers will review your order and start working on it
immediately.</p>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<i class="fas fa-check-circle fa-3x text-yellow-500 mb-4"></i>
<h3 class="text-xl font-bold text-black/90 mb-2">Get Your Assignment</h3>
<p class="text-black/50">Receive your high-quality assignment before the due date, reviewed and ready
for submission.</p>
</div>
@foreach($process_steps as $item)
<div class="bg-white rounded-lg shadow-md p-6">
<i class="{{ $item['icon'] }} fa-3x {{ $item['color'] }} mb-4"></i>
<h3 class="text-xl font-bold text-black/90 mb-2">{{ $item['title'] }}</h3>
<p class="text-black/50">{{ $item['text'] }}</p>
</div>
@endforeach
</div>
</div>

Expand Down
10 changes: 4 additions & 6 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\StaticPageController;
use App\Http\Controllers\PagesController;

Route::get('/', function () {
return view('welcome');
});
Route::get('/', [StaticPageController::class, 'welcome'])->name('home');

Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::get('/dashboard', [PagesController::class, 'dashboard'])->middleware(['auth', 'verified'])->name('dashboard');

Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Expand Down
Binary file added storage/.DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import daisyui from 'daisyui';

/** @type {import('tailwindcss').Config} */
export default {
Expand All @@ -17,5 +18,8 @@ export default {
},
},

plugins: [forms],
plugins: [
forms,
daisyui,
],
};
Binary file added tests/.DS_Store
Binary file not shown.

0 comments on commit 451709a

Please sign in to comment.