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
102 changes: 14 additions & 88 deletions resources/css/style.css
Original file line number Diff line number Diff line change
@@ -1,92 +1,5 @@
@import "tailwindcss";

/* cyrillic-ext */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url('../font/raleway-400-cyrillic-ext.woff2') format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url('../font/raleway-400-cyrillic.woff2') format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url('../font/raleway-400-vietnamese.woff2') format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url('../font/raleway-400-latin-ext.woff2') format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url('../font/raleway-400-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: url('../font/raleway-700-cyrillic-ext.woff2') format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: url('../font/raleway-700-cyrillic.woff2') format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: url('../font/raleway-700-vietnamese.woff2') format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: url('../font/raleway-700-latin-ext.woff2') format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
src: url('../font/raleway-700-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@theme {
--font-raleway: "Raleway", sans-serif;
}

/* Styling for default app homepage */

@font-face {
font-family: 'cakefont';
src: url('../font/cakedingbats-webfont.eot');
Expand All @@ -99,6 +12,19 @@
font-style: normal;
}

@theme {
--color-cake: #D33C43;
--color-base-100: #353742;
--color-base-200: #1a1a1a;
--color-base-300: #0f0f0f;
--color-link: #2d7ea4;
}

/* Styling for default app homepage */
a {
@apply text-link hover:text-sky-600 transition-all underline;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually add default styling for all the headings as well so one doesn't have to add all the text-xl etc. stuff to each h1 -h6 every time

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i saw @markstory already added arbitrary variants for this. Should we adjust?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added utility classes as I was under the impression that was how one used tailwind 🫠 I'm fine with element selectors too.


.bullet:before {
font-family: 'cakefont', sans-serif;
font-size: 18px;
Expand All @@ -116,6 +42,6 @@
}

.problem:before {
color: #d33d44;
@apply text-cake;
content: "\0057";
}
58 changes: 27 additions & 31 deletions templates/Pages/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,40 +67,44 @@
<?= $this->fetch('title') ?>
</title>
<?= $this->Html->meta('icon') ?>

<?= $this->Html->css(['cake']) ?>

<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
<?= $this->fetch('script') ?>
</head>
<body class="bg-gray-200">
<body class="bg-gray-200 dark:bg-base-300">
<header class="max-w-5xl mx-auto py-8">
<div class="text-center">
<a href="https://cakephp.org/" target="_blank" rel="noopener">
<img alt="CakePHP" src="https://cakephp.org/v2/img/logos/CakePHP_Logo.svg" width="350" class="block mx-auto mb-4" />
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" class="max-w-[300px] mx-auto mt-6 mb-10" x="0" y="0" viewBox="0 0 984.7 241.9">
<path d="M299.1 205.1c8.4 0 13.7-3.7 13.7-9.3 0-4.4-3.5-6.8-9.5-6.8H290l-4.3 16.1zm-3.4 21.2c8.4 0 13.7-3.5 13.7-9.4 0-4.7-4.5-7.1-10.8-7.1h-14.2l-4.4 16.5zm-9.5-42h17.5c9.1 0 14.5 4.3 14.5 10.9 0 6.7-5.1 10.9-11.7 12.3 4.6 1.4 8.3 4.4 8.3 9.7 0 8.1-7.3 13.9-19.6 13.9h-21.5zm37.8 36.8c0-1.6.4-3.5.9-5.3l5.1-19.2h5.1l-5.3 19.6c-.3 1.1-.5 2.7-.5 3.9 0 4.5 2.9 7.2 7.7 7.2 5.3 0 10.7-4.6 12.5-11.2l5.2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.4 20.6-9.5 0-15.7-6.5-15.7-15.4m44.8-19.9h5.2l1.8 27.5 16.7-27.6h4.3L776 224l16.6-27.5h5.4l-21.5 34.8h-4.6l-2-27.2-16.6 27.2h-4.5zm71.1 29.3 3.3-3.3c3.7 3.6 7.9 5.1 12 5.1 3.9 0 7.6-2.3 7.6-5.7 0-2.3-1.5-3.9-6.5-5.9-6.2-2.4-9.7-4.7-9.7-9.5 0-5.9 5.1-10.6 13.1-10.6 5.1 0 9.9 2.3 12.7 4.7l-3 3.5c-2.9-2.3-6.5-4-10.2-4-4.9 0-7.5 2.6-7.5 5.5 0 2.3 1.4 3.7 6.9 5.9 6.2 2.5 9.4 5 9.4 9.5 0 6.4-5.9 10.9-13.2 10.9-5.3-.1-10.9-2.1-14.9-6.1m68.3-14.4c0-7-4.4-11.1-10.8-11.1-7.9 0-14.8 7.9-14.8 15.9 0 7 4.4 11 10.8 11 7.8 0 14.8-7.6 14.8-15.8m-30.8 5c0-10.8 9.3-20.6 20.3-20.6 9.5 0 15.8 6.5 15.8 15.4 0 11-9.5 20.6-20.4 20.6-9.5 0-15.7-6.5-15.7-15.4m54.7-34.1h5.1L901.4 231h-5.1zm17.7 1h5.9l-1.5 5.7h-5.9zm-3.2 13.2h5.1l-9.3 34.5h-5.1zm41.2 14.5c0-6-4.3-10.7-10.7-10.7-8.2 0-14.4 7.6-14.4 16.4 0 6.4 4 10.5 9.8 10.5 7.6.1 15.3-7.7 15.3-16.2m-30.5 6.2c0-12.2 9.3-21.4 19.4-21.4 7.1 0 11.1 4 13 8.5l5.9-22h5.1L965 231h-5.1l1.5-5.9c-3.3 3.7-7.5 6.7-13 6.7-7.9 0-13.8-5.8-13.8-14.6m44.1 6.8h6l-1.8 7h-6.2z" class="fill-[#414042] dark:fill-white"/>
<path d="m112.5 70.2 88 21.8c15.3-6 24.5-13.6 24.5-21.8V35.1C225 15.7 174.6 0 112.5 0 50.3 0 0 15.7 0 35.1v35.1c0 19.4 50.3 35.1 112.5 35.1zm87.9 57-88-21.9v35.1l88 21.9c15.3-6 24.5-13.6 24.5-21.9v-35.1c.1 8.3-9.1 15.9-24.5 21.9" class="fill-cake"/>
<path d="M0 105.3v35.1c0 19.4 50.3 35.1 112.5 35.1v-35.1C50.3 140.5 0 124.7 0 105.3" class="fill-cake"/>
<path d="M321.5 137.2c-27.5 0-47.9-21.2-47.9-48V89c0-26.5 20-48.3 48.7-48.3 17.6 0 28.1 5.9 36.8 14.4L346 70.2c-7.2-6.5-14.5-10.5-23.9-10.5-15.7 0-27.1 13.1-27.1 29.1v.2c0 16 11 29.3 27.1 29.3 10.7 0 17.2-4.3 24.5-10.9l13.1 13.2c-9.6 10.2-20.2 16.6-38.2 16.6m94.8-30.4c-3.5-1.6-8-2.7-12.9-2.7-8.7 0-14 3.5-14 9.9v.3c0 5.5 4.5 8.7 11.1 8.7 9.5 0 15.9-5.2 15.9-12.5v-3.7zm-.4 28.8v-7.7c-4.9 5.5-11.7 9.1-21.6 9.1-13.5 0-24.5-7.7-24.5-21.9v-.3c0-15.6 11.9-22.8 28.8-22.8 7.2 0 12.4 1.2 17.5 2.9v-1.2c0-8.4-5.2-13.1-15.3-13.1-7.7 0-13.2 1.5-19.7 3.9L376 69c7.9-3.5 15.6-5.7 27.7-5.7 22.1 0 31.9 11.5 31.9 30.8v41.5zm83 0-18.6-29.2-7.1 7.5v21.7h-20.3V38.3h20.3v51.9l23.7-26h24.3L494 92.3l28.1 43.3zm61.5-56.5c-8.4 0-13.9 6-15.5 15.2h30.5c-1.2-9.1-6.5-15.2-15-15.2m34.5 27.9h-49.7c2 9.2 8.4 14 17.5 14 6.8 0 11.7-2.1 17.3-7.3l11.6 10.3c-6.7 8.3-16.3 13.3-29.2 13.3-21.5 0-37.3-15.1-37.3-36.9v-.4c0-20.4 14.5-37.2 35.3-37.2 23.9 0 34.8 18.5 34.8 38.8v.3c0 2-.2 3.2-.3 5.1" class="fill-[#414042] dark:fill-white"/>
<path d="M665.4 75c0-9.2-6.4-14.1-16.7-14.1h-15.9v28.5h16.3c10.3 0 16.3-6.2 16.3-14.1zm-16.9 32.6h-15.6v28h-20.5V42.3h38.1c22.3 0 35.7 13.2 35.7 32.3v.3c0 21.5-16.8 32.7-37.7 32.7m111.3 28V98.2h-37.9v37.4h-20.5V42.3h20.5v36.9h37.9V42.3h20.5v93.3zm96-60.6c0-9.2-6.4-14.1-16.7-14.1h-15.9v28.5h16.3c10.3 0 16.3-6.2 16.3-14.1zm-16.9 32.6h-15.6v28h-20.5V42.3h38.1c22.3 0 35.7 13.2 35.7 32.3v.3c0 21.5-16.8 32.7-37.7 32.7" class="fill-cake"/>
</svg>
</a>
<h1 class="text-4xl font-raleway font-bold">
<h1 class="text-3xl font-bold dark:text-white">
Welcome to CakePHP <?= h(Configure::version()) ?> Chiffon (🍰)
</h1>
</div>
</header>
<main class="main max-w-5xl mx-auto bg-white p-4 mb-10 rounded-md shadow-md">
<main class="max-w-5xl mx-auto bg-white p-6 mb-10 rounded-lg shadow-md/10 dark:bg-base-200 dark:text-gray-300">
<div class="container">
<div class="content">

<div class="p-2 mb-4 bg-blue-100 border border-blue-500 text-blue-500 text-center text-sm rounded-md">
<div class="p-3 mb-6 bg-blue-100 text-blue-500 text-sm rounded-md dark:bg-yellow-800/30 dark:text-gray-200">
Please be aware that this page will not be shown if you turn off debug mode unless you replace templates/Pages/home.php with your own version.
</div>

<div class="mb-4">
<div class="mb-6">
<?php Debugger::checkSecurityKeys(); ?>
</div>

<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-8 [&_h4]:text-xl [&_h4]:mb-2 [&_ul]:ml-7 [&_li]:mb-1">

<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-8 [&_h4]:text-xl [&_h4]:mb-5 [&_ul]:ml-7 [&_li]:mb-1">
<div>
<h4 class="font-raleway">Environment</h4>
<h4>Environment</h4>
<ul>
<?php if (version_compare(PHP_VERSION, '8.1.0', '>=')) : ?>
<li class="bullet success">Your version of PHP is 8.1.0 or higher (detected <?= PHP_VERSION ?>).</li>
Expand Down Expand Up @@ -133,7 +137,7 @@
</div>

<div>
<h4 class="font-raleway">Filesystem</h4>
<h4>Filesystem</h4>
<ul>
<?php if (is_writable(TMP)) : ?>
<li class="bullet success">Your tmp directory is writable.</li>
Expand All @@ -149,15 +153,15 @@

<?php $settings = Cache::getConfig('_cake_translations_'); ?>
<?php if (!empty($settings)) : ?>
<li class="bullet success">The <span class="bg-gray-500 text-white p-1"><?= h($settings['className']) ?></span> engine is being used for core caching. To change the config edit <strong>config/app.php</strong></li>
<li class="bullet success">The <span class="bg-gray-500 dark:bg-base-100 text-white p-1"><?= h($settings['className']) ?></span> engine is being used for core caching. To change the config edit <strong>config/app.php</strong></li>
<?php else : ?>
<li class="bullet problem">Your cache is NOT working. Please check the settings in config/app.php</li>
<?php endif; ?>
</ul>
</div>

<div>
<h4 class="font-raleway">Database</h4>
<h4>Database</h4>
<?php
$result = $checkConnection('default');
?>
Expand All @@ -171,7 +175,7 @@
</div>

<div>
<h4 class="font-raleway">DebugKit</h4>
<h4>DebugKit</h4>
<ul>
<?php if (Plugin::isLoaded('DebugKit')) : ?>
<li class="bullet success">DebugKit is loaded.</li>
Expand All @@ -190,29 +194,23 @@
</div>
</div>

<div class="space-y-4 [&_h3]:text-2xl [&_h3]:mb-2 [&_a]:inline-block [&_a]:mr-6 [&_a]:mb-4 [&_a]:text-blue-500 [&_a]:underline">

<hr/>
<div class="space-y-4 [&_h3]:text-2xl [&_h3]:mb-2 [&_a]:inline-block [&_a]:mr-6 [&_a]:mb-4">

<div>
<h3 class="font-raleway">Getting Started</h3>
<div class="border-t border-gray-200 dark:border-base-100 pt-6">
<h3>Getting Started</h3>
<a target="_blank" rel="noopener" href="https://book.cakephp.org/5/en/">CakePHP Documentation</a>
<a target="_blank" rel="noopener" href="https://book.cakephp.org/5/en/tutorials-and-examples/cms/installation.html">The 20 min CMS Tutorial</a>
</div>

<hr/>

<div>
<h3 class="font-raleway">Help and Bug Reports</h3>
<div class="border-t border-gray-200 dark:border-base-100 pt-6">
<h3>Help and Bug Reports</h3>
<a target="_blank" rel="noopener" href="https://slack-invite.cakephp.org/">Slack</a>
<a target="_blank" rel="noopener" href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
<a target="_blank" rel="noopener" href="https://discourse.cakephp.org/">CakePHP Forum</a>
</div>

<hr/>

<div>
<h3 class="font-raleway">Docs and Downloads</h3>
<div class="border-t border-gray-200 dark:border-base-100 pt-6">
<h3>Docs and Downloads</h3>
<a target="_blank" rel="noopener" href="https://api.cakephp.org/">CakePHP API</a>
<a target="_blank" rel="noopener" href="https://bakery.cakephp.org">The Bakery</a>
<a target="_blank" rel="noopener" href="https://book.cakephp.org/5/en/">CakePHP Documentation</a>
Expand All @@ -222,10 +220,8 @@
<a target="_blank" rel="noopener" href="https://www.cakephp.org">CakePHP</a>
</div>

<hr/>

<div>
<h3 class="font-raleway">Training and Certification</h3>
<div class="border-t border-gray-200 dark:border-base-100 pt-6">
<h3>Training and Certification</h3>
<a target="_blank" rel="noopener" href="https://cakefoundation.org/">Cake Software Foundation</a>
<a target="_blank" rel="noopener" href="https://training.cakephp.org/">CakePHP Training</a>
</div>
Expand Down
Loading