Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/assets/images/contact.jpg
Binary file not shown.
Binary file added public/assets/images/meeting.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ h4 {

a:not(.btn) {
color: #59a35e;
text-decoration: underline !important;
text-decoration: underline;

&:hover {
color: #2e7a33;
Expand Down
17 changes: 10 additions & 7 deletions resources/views/_snippets/layout/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<div id="footer">
<div class="container">
<div class="row pt-3">
<div class="col-6 col-md-2 mt-2">
Rector Team {{ now()->year }}
</div>

<div class="col-6 col-md-3 mt-2">
<div class="container pt-1">
<div class="row">
<div class="col-6 col-md-3 mt-1">
<a href="http://github.com/rectorphp/rector" class="p-2">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30" height="30" viewBox="0 0 30 30">
<path d="M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"></path>
Expand All @@ -27,6 +23,13 @@
<path d="M6.503 20.752c0 1.794-1.456 3.248-3.251 3.248-1.796 0-3.252-1.454-3.252-3.248 0-1.794 1.456-3.248 3.252-3.248 1.795.001 3.251 1.454 3.251 3.248zm-6.503-12.572v4.811c6.05.062 10.96 4.966 11.022 11.009h4.817c-.062-8.71-7.118-15.758-15.839-15.82zm0-3.368c10.58.046 19.152 8.594 19.183 19.188h4.817c-.03-13.231-10.755-23.954-24-24v4.812z"></path>
</svg>
</a>

<br>
<br>

<p class="ps-3">
&copy; {{ now()->year }} Rector Team
</p>
</div>

<div class="col-12 col-md-7 mt-5 mt-md-0">
Expand Down
5 changes: 0 additions & 5 deletions resources/views/_snippets/menu_items.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ class="nav-link">Play with AST</a>
class="nav-link">Find rule</a>
</li>

<li class="nav-item">
<a href="{{ action(\App\Controller\CodebaseRenovationController::class) }}"
class="nav-link">Codebase Renovation</a>
</li>

<li class="nav-item">
<a onclick="toggleTheme()" class="nav-link" id="theme_toggle" style="cursor: pointer">Dark/Light Theme</a>
</li>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/hire_team/references.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div id="references">
<div class="row mb-5">
<div class="card shadow border-danger ms-2 mt-4">
<div class="card shadow ms-2 mt-4">
<div class="card-body company-quote-card-body" style="display: flex">
<div>
<img src="https://www.adamgleiss.com/images/face.jpg"
class="rounded-circle img-face-smaller-left shadow-sm me-4" alt="">
class="rounded-circle img-face-smaller-left me-4" alt="">
</div>

<blockquote class="blockquote company-quote me-4">
Expand All @@ -21,11 +21,11 @@ class="rounded-circle img-face-smaller-left shadow-sm me-4" alt="">
</div>

<div class="row mb-5">
<div class="card shadow border-primary ms-2 mt-4">
<div class="card shadow ms-2 mt-4">
<div class="card-body company-quote-card-body" style="display: flex">
<div>
<img src="/assets/images/faces/nathan_page.jpg"
class="rounded-circle img-face-smaller-left shadow-sm me-4" alt="">
class="rounded-circle img-face-smaller-left me-4" alt="">
</div>

<blockquote class="blockquote company-quote me-4">
Expand Down
8 changes: 4 additions & 4 deletions resources/views/homepage/contact.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<h1 class="main-title">{{ $page_title }}</h1>

<div class="row">
<div class="col-12 text-bigger">
<img src="/assets/images/contact.jpg" class="float-end rounded-4 ms-5" style="max-width: 13em">
<div class="col-12 text-bigger mb-0 pb-0">
<img src="/assets/images/meeting.jpg" class="float-end rounded-3 border ms-5" style="max-width: 18em">

<p class="mb-5">Tell us your biggest problems that you struggle with.<br>
We won't judge you, we've seen a lot of legacy projects and are here to help.</p>
We won't judge you, we've seen a lot of legacy projects and&nbsp;are&nbsp;here to help.</p>

<p>Write Tomas at <a href="mailto:tomas@getrector.com">tomas@getrector.com</a>.</p>
<p>Write Tomas at <a href="mailto:tomas@getrector.com">tomas@getrector.com</a></p>
</div>
</div>

Expand Down
27 changes: 26 additions & 1 deletion resources/views/homepage/homepage.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@php
/** @var \App\Entity\Post $recentPosts */
@endphp

@extends('base')

@section('main')
Expand Down Expand Up @@ -106,7 +110,7 @@ class="img-fluid img-thumbnail">
</p>

<p>
How typical <a href="{{ action(\App\Controller\CodebaseRenovationController::class) }} ">codebase renovation</a> looks like?
How does typical <a href="{{ action(\App\Controller\CodebaseRenovationController::class) }} ">codebase renovation</a> look like?
</p>
</div>
</div>
Expand All @@ -119,6 +123,27 @@ class="img-fluid img-thumbnail">
-->

@include('_snippets/homepage_separator')

<h3>Featured</h3>
@foreach ($recentPosts as $recentPost)
@php /** @var \App\Entity\Post $recentPost */ @endphp

<a href="{{ action(\App\Controller\Blog\PostController::class, ['postSlug' => $recentPost->getSlug() ]) }}">
<li style="list-style: none; font-size: 1.25em; line-height: 1.9em">
<div class="d-flex" style="justify-content: space-between">
{{ $recentPost->getTitle() }}

<div style="width:5em; justify-content: space-between; white-space: nowrap; color:#BBB;">
{{ $recentPost->getDateTime()->format('M j, Y') }}
</div>
</div>
</li>

</a>
@endforeach

@include('_snippets/homepage_separator')

<h2>
What do CTOs <span class="text-rector-green">Love&nbsp;about&nbsp;Rector</span>?
</h2>
Expand Down
1 change: 1 addition & 0 deletions src/Controller/Blog/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function __invoke(PostRepository $postRepository): View
return \view('blog/blog', [
'page_title' => 'Learn about Rector, Upgrades and Planning',
'posts' => $postRepository->getPosts(),
// seo
'metaTitle' => 'Rector Blog: PHP Code Tips & Updates',
'metaDescription' => 'Read the latest PHP refactoring tips, Rector updates, and automation guides. Level up your coding skills with our expert blog posts.',
]);
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/HomepageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __invoke(): View
{
return \view('homepage/homepage', [
'page_title' => "We'll Speed Up Your Development Process by 300%",
'last_5_posts' => $this->postRepository->fetchLast(5),
'recentPosts' => $this->postRepository->fetchLast(5),
// seo
'metaTitle' => 'Rector: Fast PHP Code Upgrades & Refactoring',
'metaDescription' => 'Automate PHP code upgrades and refactoring with Rector. Save time, reduce errors, and modernize your codebase instantly. Try it now!',
Expand Down