Skip to content

Commit

Permalink
merge about to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 18, 2024
1 parent 3aee9bc commit d357a9a
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 82 deletions.
9 changes: 2 additions & 7 deletions resources/views/_snippets/menu_items.blade.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
<li class="nav-item">
<a href="{{ action(\App\Controller\AboutController::class) }}"
class="nav-link">About</a>
<a href="{{ action(\App\Controller\Demo\DemoController::class) }}"
class="nav-link">Try Rector</a>
</li>

<li class="nav-item">
<a href="{{ action(\App\Controller\HireTeamController::class) }}"
class="nav-link">Hire Team</a>
</li>

<li class="nav-item">
<a href="{{ action(\App\Controller\Demo\DemoController::class) }}"
class="nav-link">Try Rector</a>
</li>

<li class="nav-item">
<a href="{{ action(\App\Controller\InteractiveController::class) }}"
class="nav-link">Play & Learn</a>
Expand Down
54 changes: 0 additions & 54 deletions resources/views/homepage/about.blade.php

This file was deleted.

31 changes: 31 additions & 0 deletions resources/views/homepage/homepage.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,37 @@ class="btn btn-primary">Try It Online</a>

@include('_snippets/homepage_separator')

<h2>
What is Rector?
</h2>

<div class="text-medium">
<p>
Rector is a PHP tool that you can run on any PHP project to get an instant upgrade
or automated refactoring.
</p>

<p>
It helps you with:

<ul>
<li>PHP and framework upgrades,</li>
<li>in-house framework migrations,</li>
<li>improving your code quality to deliver features faster than competition</li>
</ul>
</p>

<p>
In the hands of an expert, Rector massively reduces your work-time. Where project upgrade PHP 8.0 to 8.3 <strong>would take 3 months, Rector is done in 3 days</strong>.
</p>

<p>
You can learn it yourself from <a href="{{ action(\App\Controller\DocumentationController::class) }}">documentation</a>. To <strong>save time and start upgrading today</strong>, <a href="{{ action(\App\Controller\HireTeamController::class) }}">hire our upgrade team</a>.
</p>
</div>

@include('_snippets/homepage_separator')

<div class="text-center mt-5 mb-5 text-rector-green text-bigger">
We've helped <strong>50+ companies</strong> to improve their PHP code and reduce
technical debt
Expand Down
5 changes: 2 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?php

declare(strict_types=1);
use App\Controller\Stats\FindRuleStatsController;

use App\Controller\Stats\FindRuleStatsController;
use App\Ast\Controller\AstController;
use App\Ast\Controller\AstDetailController;
use App\Ast\Controller\ProcessAstFormController;
use App\Controller\AboutController;
use App\Controller\Blog\BlogController;
use App\Controller\Blog\PostController;
use App\Controller\CodebaseRenovationController;
Expand All @@ -33,10 +32,10 @@

// redirect of old page
Route::redirect('/documentation/rules-overview', '/find-rule');
Route::redirect('/about', '/');

Route::get('documentation/{section?}', DocumentationController::class);

Route::get('about', AboutController::class);
Route::get('blog', BlogController::class);
Route::get('book', function () {
return redirect()->to('https://leanpub.com/rector-the-power-of-automated-refactoring');
Expand Down
18 changes: 0 additions & 18 deletions src/Controller/AboutController.php

This file was deleted.

0 comments on commit d357a9a

Please sign in to comment.