Skip to content

Commit 3830d02

Browse files
committedAug 15, 2023
REF #35450 update new homepage
1 parent 3381a7f commit 3830d02

25 files changed

+493
-90
lines changed
 

‎config/site.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
// use major.minor to indicate current version in home page
5-
'App.cakeVersion' => '4.4',
5+
'App.cakeVersion' => '5.0',
66
'Site' => [
77
'contact' => [
88
'email' => 'contact@cakedc.com',

‎src/Controller/AppController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function setLocale()
9494
public function beforeRender(Event $event)
9595
{
9696
$this->set([
97-
'_version' => Configure::read('App.cakeVersion', '4.3'),
97+
'_version' => Configure::read('App.cakeVersion', '5.0'),
9898
]);
9999
}
100100
}
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* @var \App\View\AppView
4+
*/
5+
?>
6+
<section class="business-solution">
7+
<div class="container">
8+
<div class="mb50 mt50 description">
9+
<div>
10+
<h2>Business Solutions</h2>
11+
<p>CakeDC, the commercial entity behind the CakePHP framework, was established by Larry Masters, the
12+
founder of CakePHP. CakeDC offers CakePHP development, consultancy, CakePHP training and code review Services.
13+
From startups and social networks, to e-commerce and enterprise level applications, CakeDC provides
14+
the highest quality CakePHP development available.
15+
</p>
16+
<div>
17+
<a href="https://www.cakedc.com" class="btn btn-home">Chat to the top CakePHP developers</a>
18+
</div>
19+
</div>
20+
</div>
21+
<div class="mt50 mb50 image visible-md-block visible-lg-block artwork">
22+
<?= $this->Html->image('business_solution_chiffon.svg', ['alt' => 'Business Solution']) ?>
23+
</div>
24+
</div>
25+
</section>

‎src/Template/Element/home/cake.ctp

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<section class="hero">
22
<div class="container">
3-
<div class="col-sm-12 col-md-6">
3+
<div class="col-sm-12 col-md-12 col-lg-12">
44
<div class="title-home">
5-
<h1><?= __('New CakePHP {0} Strawberry.', $_version)?></h1>
6-
<h3><?= __('Cleaner. Faster.')?></h3>
7-
<h3><?= __('Tasty as usual.') ?></h3>
8-
</div>
5+
<h1><span><?= __('New CakePHP {0} Strawberry.', $_version)?></span></h1>
6+
<h3><span class="subtitle-home"><?= __('Faster. Simple. Delicious.') ?></span></h3>
7+
</div>
8+
</div>
9+
<div class="col-sm-12 col-md-12 col-lg-12">
910
<div class="cta-home">
1011
<a href="https://book.cakephp.org/4/en/installation.html" class="btn btn-home">
1112
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
12-
Install <?= $_version ?>
13+
<?= __('DOWNLOAD') ?>
1314
</a>
1415
<a href="https://book.cakephp.org" class="btn btn-home btn-inverted">
1516
<span class="glyphicon glyphicon-book" aria-hidden="true"></span>
@@ -21,8 +22,5 @@
2122
</a>
2223
</div>
2324
</div>
24-
<div class="col-md-6 visible-md-block visible-lg-block artwork">
25-
<?= $this->Html->image('hero_artwork.svg', ['alt' => 'CakePHP']) ?>
26-
</div>
2725
</div>
2826
</section>

‎src/Template/Element/home/cakefest_sponsors.ctp

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use Cake\Utility\Hash;
44

55
$sponsors = Configure::read('Site.cakefest.sponsors');
66
?>
7-
<section id="sponsors" class="pt-90">
8-
<?= $this->Html->image('sponsor_words.svg', ['class' => 'sponsor-icon', 'alt' => 'Sponsor icon']) ?>
7+
<section id="sponsors">
8+
<?= $this->Html->image('sponsor_words_chiffon.svg', ['class' => 'sponsor-icon', 'alt' => 'Sponsor icon']) ?>
99
<div class="container">
1010
<div class="row">
11-
<div class="col-md-12 text-center">
11+
<div class="col-md-12 text-center mt50">
1212
<h2><?= __('A word from our sponsors:')?></h2>
1313
</div>
1414
<?php foreach($sponsors as $sponsor): ?>

‎src/Template/Element/home/newsletter.ctp

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<section class="newsletter-signup mb100">
2-
<div class="container back-red">
1+
<section class="newsletter-signup">
2+
<div class="container back-red">
33
<div class="row">
44
<div class="col-sm-12 text-center">
55
<h3 class="title-white mb50 mt50"><?= __('Sign up for our newsletter.') ?></h3>
@@ -43,11 +43,13 @@
4343
</label>
4444
</div>
4545
<div class="col-sm-12">
46-
<button
47-
type="submit"
48-
name="subscribe"
49-
id="mc-embedded-subscribe"
50-
class="btn btn-home btn-inverted"><?= __('Send!') ?></button>
46+
<div class="newsletter-submit">
47+
<button
48+
type="submit"
49+
name="subscribe"
50+
id="mc-embedded-subscribe"
51+
class="btn btn-home btn-inverted"><?= __('Submit') ?></button>
52+
</div>
5153
</div>
5254
</div>
5355
</div>
@@ -74,14 +76,15 @@
7476
<label for="mce-group[19433]-19433-3">Freelancers</label>
7577
</li>
7678
</ul>
79+
<br>
7780
<strong class="mt10"><?= __('Email Format') ?></strong>
7881
<ul>
7982
<li>
80-
<input type="radio" value="html" name="EMAILTYPE" id="mce-EMAILTYPE-0">
83+
<input type="checkbox" value="html" name="EMAILTYPE" id="mce-EMAILTYPE-0">
8184
<label for="mce-EMAILTYPE-0">html</label>
8285
</li>
8386
<li>
84-
<input type="radio" value="text" name="EMAILTYPE" id="mce-EMAILTYPE-1">
87+
<input type="checkbox" value="text" name="EMAILTYPE" id="mce-EMAILTYPE-1">
8588
<label for="mce-EMAILTYPE-1">text</label>
8689
</li>
8790
</ul>

‎src/Template/Element/home/quotes.ctp

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
<?php
2+
/**
3+
* @var \App\View\AppView $this
4+
*/
25
use Cake\Core\Configure;
36
use Cake\Utility\Hash;
47

58
$quotes = Configure::read('Site.quotes');
69
?>
7-
<div id="quotes-dots-container"></div>
10+
<!--<div id="quotes-dots-container"></div>-->
811
<div class="owl-carousel owl-quotes owl-p10" id="quote">
912
<?php foreach ($quotes as $quote): ?>
1013
<div class="quote-block">
11-
<?= $this->Html->tag('blockquote', __($quote['text'])) ?>
14+
<?php $quoteHighlight = $this->Html->tag(
15+
'spam',
16+
substr($quote['text'], 0, strpos($quote['text'], '.')),
17+
['class' => 'quote-highlight']
18+
); ?>
19+
<?= $this->Html->tag(
20+
'blockquote',
21+
__($quoteHighlight . substr($quote['text'], strpos($quote['text'], '.')))
22+
) ?>
1223
<div class="quote-client">
1324
<?= $this->Html->image($quote['image'], ['alt' => $quote['client']]) ?>
1425
<div class="quote-info">

‎src/Template/Element/home/share.ctp

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
<section id="sharing" class="sharing mt80">
1+
<section id="sharing" class="sharing">
22
<div class="container">
3-
<div class="visible-md-block visible-lg-block artwork">
4-
<?= $this->Html->image('share_cake_bg.svg', ['alt' => 'Sharing the cake']) ?>
3+
<div class="mb50 mt50 image visible-md-block visible-lg-block artwork">
4+
<?= $this->Html->image('share_cake_bg_chiffon.svg', ['alt' => 'Sharing the cake']) ?>
55
</div>
6-
<div>
6+
<div class="mb50 mt50 description">
77
<div>
88
<h2><?= __('Sharing the cake.')?></h2>
9-
<h4><?= __('Get involved and support the community.')?></h4>
9+
<h3><?= __('Get involved and support the community.')?></h3>
1010
</div>
1111
<div>
12-
<p><?= __('If you\'re interested in contributing to CakePHP and supporting the community then we\'d love for you to join us, there are a variety of ways to get involved and help out.')?> </p>
12+
<p class="mb50"><?= __('If you\'re interested in contributing to CakePHP and supporting the community then we\'d love for you to join us, there are a variety of ways to get involved and help out.')?> </p>
1313
<?= $this->Html->link(
14-
__('Learn more.'),
14+
__('Learn more'),
1515
['controller' => 'pages', 'action' => 'display', 'get-involved'],
16-
['class' => "btn btn-home mt40"]
16+
['class' => "btn btn-home"]
1717
) ?>
1818
</div>
1919
</div>

‎src/Template/Element/home/summary.ctp

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<section id="recipe" class="mb0 pt-90">
22
<div class="container">
33
<div class="text-center">
4-
<h2><?= __('A recipe to succeed.') ?></h2>
5-
<h3><?= __('Prototype faster, Validate faster, Grow consistently.') ?></h3>
4+
<h1><?= __('A recipe to succeed.') ?></h1>
5+
<h2><?= __('Prototype faster, Validate faster, Grow consistently.') ?></h2>
66
</div>
77

88
<div class="service-boxes recipe">
99
<div class="box-services-c">
10-
<?= $this->Html->image('build_quickly.svg', ['alt' => 'Build Quickly']) ?>
10+
<?= $this->Html->image('build_quickly_chiffon.svg', ['alt' => 'Build Quickly']) ?>
1111
<h4 class="title-small"><?= __('Build Quickly') ?></h4>
1212
<p>
1313
<?= __('Use code generation and scaffolding features to {0}.',
@@ -16,7 +16,7 @@
1616
</div>
1717

1818
<div class="box-services-c">
19-
<?= $this->Html->image('no_config.svg', ['alt' => 'No Configuration']) ?>
19+
<?= $this->Html->image('no_config_chiffon.svg', ['alt' => 'No Configuration']) ?>
2020

2121
<h4 class="title-small"><?= __('No Configuration') ?></h4>
2222

@@ -26,7 +26,7 @@
2626
</div>
2727

2828
<div class="box-services-c">
29-
<?= $this->Html->image('license.svg', ['alt' => 'Friendly License']) ?>
29+
<?= $this->Html->image('license_chiffon.svg', ['alt' => 'Friendly License']) ?>
3030

3131
<h4 class="title-small"><?= __('Friendly License') ?></h4>
3232
<p>
@@ -36,7 +36,7 @@
3636
</div>
3737

3838
<div class="box-services-c">
39-
<?= $this->Html->image('batteries_included.svg', ['alt' => 'Batteries Included']) ?>
39+
<?= $this->Html->image('batteries_included_chiffon.svg', ['alt' => 'Batteries Included']) ?>
4040

4141
<h4 class="title-small"><?= __('Batteries Included') ?></h4>
4242

@@ -46,7 +46,7 @@
4646
</div>
4747

4848
<div class="box-services-c">
49-
<?= $this->Html->image('mvc.svg', ['alt' => 'Clean MVC Conventions']) ?>
49+
<?= $this->Html->image('mvc_chiffon.svg', ['alt' => 'Clean MVC Conventions']) ?>
5050

5151
<h4 class="title-small"><?= __('Clean MVC Conventions') ?></h4>
5252

@@ -58,7 +58,7 @@
5858
</div>
5959

6060
<div class="box-services-c">
61-
<?= $this->Html->image('secure.svg', ['alt' => 'Secure']) ?>
61+
<?= $this->Html->image('secure_chiffon.svg', ['alt' => 'Secure']) ?>
6262
<h4 class="title-small"><?= __('Secure') ?></h4>
6363
<p><?= __('CakePHP comes with built-in tools for input validation, CSRF protection, Form tampering protection, SQL injection prevention. CakePHP codebase itself has been audited through the {0} program.', $this->Html->link('Mozilla Secure Open Source',
6464
'https://bakery.cakephp.org/2017/11/22/mozilla_sos_audit_published.html')) ?></p>

‎src/Template/Element/home/whats_new.ctp

+9-21
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22
/**
3-
* @var \App\View\AppView
3+
* @var \App\View\AppView $this
44
*/
55
?>
6-
<section class="whats-new pt-120">
6+
<section class="whats-new">
77
<div class="container">
8-
<div class="visible-md-block visible-lg-block artwork">
9-
<?= $this->Html->image('whats_new.svg', ['alt' => 'Whats new']) ?>
8+
<div class="mb50 mt50 image visible-md-block visible-lg-block artwork">
9+
<?= $this->Html->image('whats_new_chiffon.svg', ['alt' => 'Whats new']) ?>
1010
</div>
11-
<div>
12-
<div class="mb50">
13-
<h2>What's new in version 4.4</h2>
14-
<p>The migration guide has a complete list of what's new in 4.4.0. We recommend you give that page a read when upgrading. A few highlights from 4.4.0 are:
11+
<div class="description">
12+
<div class="mb50 mt50">
13+
<h2>What's new in version</h2>
14+
<p>The migration guide has a complete list of what's new in. We recommend you give that page a read when upgrading. A few highlights from 4.4.0 are:
1515
<ul>
1616
<li> A new Error and Exception handling framework that is easier to extend and requires less application code to operate. </li>
1717
<li> Controller::viewClasses() was added. This method enables controllers to take control of what content-types they can respond as. </li>
@@ -25,19 +25,7 @@
2525
covering all the deprecated and removed features as well as highlighting the shiny new features.
2626
</p>
2727
<div>
28-
<a href="https://book.cakephp.org/4/en/appendices/4-4-migration-guide.html" class="learn-more">Learn more</a>
29-
</div>
30-
</div>
31-
32-
<div>
33-
<h2>Business Solutions</h2>
34-
<p>CakeDC, the commercial entity behind the CakePHP framework, was established by Larry Masters, the
35-
founder of CakePHP. CakeDC offers CakePHP development, consultancy, CakePHP training and code review Services.
36-
From startups and social networks, to e-commerce and enterprise level applications, CakeDC provides
37-
the highest quality CakePHP development available.
38-
</p>
39-
<div>
40-
<a href="https://www.cakedc.com" class="learn-more">Chat to the top CakePHP developers</a>
28+
<a href="https://book.cakephp.org/4/en/appendices/4-4-migration-guide.html" class="btn btn-home">Learn more</a>
4129
</div>
4230
</div>
4331
</div>

‎src/Template/Pages/home.ctp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
/**
3+
* @var \App\View\AppView $this;
4+
*/
25
$title = __('CakePHP - Build fast, grow solid | PHP Framework | Home');
36
$description = __('CakePHP is an open-source web, rapid development framework that makes building web applications simpler,
47
faster and require less code. It follows the model–view–controller (MVC) . Manual for beginners now available and links
@@ -14,11 +17,13 @@ $this->assign('socialMeta', $this->Meta->socialTags(['title' => $title, 'descrip
1417

1518
<?= $this->element('home/whats_new')?>
1619

20+
<?= $this->element('home/business')?>
21+
1722
<?= $this->element('home/summary')?>
1823

1924
<?= $this->element('home/share') ?>
2025

21-
<?= $this->element('home/support') ?>
26+
<?php //= $this->element('home/support') ?>
2227

2328
<?= $this->element('home/showcase')?>
2429

0 commit comments

Comments
 (0)
Please sign in to comment.