diff --git a/.htaccess b/.htaccess index 54b08e82e1..4e2d24528d 100644 --- a/.htaccess +++ b/.htaccess @@ -7,6 +7,6 @@ RewriteEngine on RewriteRule ^(\.well-known/.*)$ $1 [L] - RewriteRule ^$ webroot/ [L] - RewriteRule (.*) webroot/$1 [L] + RewriteRule ^$ public/ [L] + RewriteRule (.*) public/$1 [L] diff --git a/config/app.php b/config/app.php index b83860045a..fb0b1c8c27 100644 --- a/config/app.php +++ b/config/app.php @@ -28,21 +28,21 @@ * - base - The base directory the app resides in. If false this * will be auto-detected. * - dir - Name of app directory. - * - webroot - The webroot directory. - * - wwwRoot - The file path to webroot. + * - webroot - The public directory. + * - wwwRoot - The file path to public. * - baseUrl - To configure CakePHP to *not* use mod_rewrite and to * use CakePHP pretty URLs, remove these .htaccess * files: * /.htaccess - * /webroot/.htaccess + * /public/.htaccess * And uncomment the baseUrl key below. * - fullBaseUrl - A base URL to use for absolute links. When set to false (default) * CakePHP generates required value based on `HTTP_HOST` environment variable. * However, you can define it manually to optimize performance or if you * are concerned about people manipulating the `Host` header. - * - imageBaseUrl - Web path to the public images/ directory under webroot. - * - cssBaseUrl - Web path to the public css/ directory under webroot. - * - jsBaseUrl - Web path to the public js/ directory under webroot. + * - imageBaseUrl - Web path to the public images/ directory under public. + * - cssBaseUrl - Web path to the public css/ directory under public. + * - jsBaseUrl - Web path to the public js/ directory under public. * - paths - Configure paths for non class-based resources. Supports the * `plugins`, `templates`, `locales` subkeys, which allow the definition of * paths for plugins, view templates and locale files respectively. @@ -54,7 +54,7 @@ 'defaultTimezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'), 'base' => false, 'dir' => 'src', - 'webroot' => 'webroot', + 'webroot' => 'public', 'wwwRoot' => WWW_ROOT, //'baseUrl' => env('SCRIPT_NAME'), 'fullBaseUrl' => false, diff --git a/config/paths.php b/config/paths.php index 37a24819d7..bfb8f7055f 100644 --- a/config/paths.php +++ b/config/paths.php @@ -47,13 +47,13 @@ define('CONFIG', ROOT . DS . 'config' . DS); /* - * File path to the webroot directory. + * File path to the public directory. * * To derive your webroot from your webserver change this to: * * `define('WWW_ROOT', rtrim($_SERVER['DOCUMENT_ROOT'], DS) . DS);` */ -define('WWW_ROOT', ROOT . DS . 'webroot' . DS); +define('WWW_ROOT', ROOT . DS . 'public' . DS); /* * Path to the tests directory. diff --git a/index.php b/index.php index 4591769163..71e4484aec 100644 --- a/index.php +++ b/index.php @@ -13,4 +13,4 @@ * @license https://opensource.org/licenses/mit-license.php MIT License */ -require 'webroot' . DIRECTORY_SEPARATOR . 'index.php'; +require 'public' . DIRECTORY_SEPARATOR . 'index.php'; diff --git a/public/css/cake.css b/public/css/cake.css new file mode 100644 index 0000000000..00cfdc5ed5 --- /dev/null +++ b/public/css/cake.css @@ -0,0 +1,301 @@ +/* Milligram overrides */ +:root { + /* The following are official CakePHP colors */ + --color-cakephp-red: #d33c43; + --color-cakephp-gray: #404041; + --color-cakephp-blue: #2f85ae; + --color-cakephp-lightblue: #34bdd7; + + /* These are additional colors */ + --color-lightgray: #606c76; + --color-white: #fff; + + --color-main-bg: #f5f7fa; + --color-links: var(--color-cakephp-blue); + --color-links-active: #2a6496; + --color-headings: #363637; + + --color-message-success-bg: #e3fcec; + --color-message-success-text: #1f9d55; + --color-message-success-border: #51d88a; + + --color-message-warning-bg: #fffabc; + --color-message-warning-text: #8d7b00; + --color-message-warning-border: #d3b800; + + --color-message-error-bg: #fcebea; + --color-message-error-text: #cc1f1a; + --color-message-error-border: #ef5753; + + --color-message-info-bg: #eff8ff; + --color-message-info-text: #2779bd; + --color-message-info-border: #6cb2eb; +} + +.button, button, input[type='button'], input[type='reset'], input[type='submit'] { + background-color: var(--color-cakephp-red); + border-color: var(--color-cakephp-red); +} + +body { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: 400; + background: var(--color-main-bg); +} + +.top-nav-links, +.side-nav, +h1, h2, h3, h4, h5, h6 { + font-family: "Raleway", sans-serif; +} + +h1, h2, h3, h4, h5, h6 { + font-weight: 400; + color: var(--color-headings); +} + +a { + color: var(--color-links); + transition: color 0.2s linear; +} + +a:hover, +a:focus, +a:active { + color: var(--color-links-active); + transition: color 0.2s ease-out; +} + +.side-nav a, +.top-nav-links a, +th a, +.actions a { + color: var(--color-lightgray); +} + +.side-nav a:hover, +.side-nav a:focus, +.actions a:hover, +.actions a:focus { + color: var(--color-links-active); +} + +/* Utility */ +.table-responsive { + display: block; + width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; +} + +/* Main */ +.content { + padding: 2rem; + background: var(--color-white); + border-radius: 0.4rem; + /* Thanks Stripe */ + box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1), + 0 3px 6px 0 rgba(0, 0, 0, 0.07); +} +.content form { + margin: 0; +} +.actions a { + font-weight: bold; + padding: 0 0.4rem; +} +.actions a:first-child { + padding-left: 0; +} +th { + white-space: nowrap; +} + +/* Nav bar */ +.top-nav { + display: flex; + align-items: center; + justify-content: space-between; + max-width: 112rem; + padding: 2rem; + margin: 0 auto; +} +.top-nav-title a { + font-size: 2.4rem; + color: var(--color-cakephp-red); +} +.top-nav-title span { + color: var(--color-cakephp-gray); +} +.top-nav-links a { + margin: 0 0.5rem; +} +.top-nav-title a, +.top-nav-links a { + font-weight: bold; +} +.side-nav-item { + display: block; + padding: 0.5rem 0; +} + +/* View action */ +.view.content .text { + margin-top: 1.2rem; +} +.related { + margin-top: 2rem; +} + +/* Flash messages */ +.message { + padding: .5rem 1rem; + background: var(--color-message-info-bg); + color: var(--color-message-info-text); + border-color: var(--color-message-info-border); + border-width: 1px; + border-style: solid; + border-radius: 4px; + margin-bottom: 1rem; + cursor: pointer; +} +.message.hidden { + display: none; +} +.message.success { + background: var(--color-message-success-bg); + color: var(--color-message-success-text); + border-color: var(--color-message-success-border); +} +.message.warning { + background: var(--color-message-warning-bg); + color: var(--color-message-warning-text); + border-color: var(--color-message-warning-border); +} +.message.error { + background: var(--color-message-error-bg); + color: var(--color-message-error-text); + border-color: var(--color-message-error-border); +} + +/* Forms */ +.input { + margin-bottom: 1.5rem; +} +.input input, +.input select, +.input textarea { + margin-bottom: 0; +} +.input label:has(input[type='checkbox']), +.input label:has(input[type='radio']) { + display: flex; + align-items: center; +} +.input label:has(~ label), +.input label:has(input[type='radio']) { + margin-bottom: 0; +} +.input label > input[type='checkbox'], +.input label > input[type='radio'] { + margin-right: 1.0rem; +} +input[type='color'] { + max-width: 4rem; + padding: 0.3rem .5rem 0.3rem; +} +.error-message { + color: var(--color-message-error-text); +} + +/* Paginator */ +.paginator { + text-align: right; +} +.paginator p { + margin-bottom: 0; +} +.pagination { + display: flex; + justify-content: center; + list-style: none; + margin: 0 0 1rem 0; + padding: 0; +} +.pagination li { + display: inline-block; + margin: 0.25em; + text-align: center; +} +.pagination a { + color: var(--color-cakephp-blue); + display: inline-block; + font-size: 1.25rem; + line-height: 3rem; + min-width: 3rem; + padding: 0; + position: relative; + text-decoration: none; + transition: background .3s,color .3s; +} +.pagination li.active a, +.pagination a:hover { + text-decoration: underline; +} +.pagination .disabled a { + cursor: not-allowed; + color: var(--color-lightgray); + text-decoration: none; +} +.first a, +.prev a, +.next a, +.last a { + padding: 0 .75rem; +} +.disabled a:hover { + background: initial; + color: initial; +} +.asc:after { + content: " \2193"; +} +.desc:after { + content: " \2191"; +} + +/* Error in non debug mode */ +.error-container { + align-items: center; + display: flex; + flex-direction: column; + height: 100vh; + justify-content: center; +} + +@media screen and (max-width: 640px) { + /* Fix milligram not having a responsive column system */ + .row .column[class*='column-'] { + flex: 0 0 100%; + max-width: 100% + } + .top-nav { + margin: 0 auto; + } + .side-nav { + margin-bottom: 1rem; + } + .heading { + margin-bottom: 1rem; + } + .side-nav-item { + display: inline; + margin: 0 1.5rem 0 0; + } + .asc:after { + content: " \2192"; + } + .desc:after { + content: " \2190"; + } +} diff --git a/public/css/fonts.css b/public/css/fonts.css new file mode 100644 index 0000000000..1ba4808f40 --- /dev/null +++ b/public/css/fonts.css @@ -0,0 +1,80 @@ +/* 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; +} diff --git a/public/css/home.css b/public/css/home.css new file mode 100644 index 0000000000..4648ed314d --- /dev/null +++ b/public/css/home.css @@ -0,0 +1,75 @@ +/* Home page styles */ +@font-face { + font-family: 'cakefont'; + src: url('../font/cakedingbats-webfont.eot'); + src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'), + url('../font/cakedingbats-webfont.woff2') format('woff2'), + url('../font/cakedingbats-webfont.woff') format('woff'), + url('../font/cakedingbats-webfont.ttf') format('truetype'), + url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg'); + font-weight: normal; + font-style: normal; +} +body { + padding: 60px 0; +} +header { + margin-bottom: 60px; +} +img { + margin-bottom: 30px; +} +h1 { + font-weight: bold; +} +ul { + list-style-type: none; + margin: 0 0 30px 0; + padding-left: 25px; +} +a { + color: #0071BC; + text-decoration: underline; +} +hr { + border-bottom: 1px solid #e7e7e7; + border-top: 0; + margin-bottom: 35px; +} + +.text-center { + text-align: center; +} +.links a { + margin-right: 10px; +} +.release-name { + color: #D33C43; + font-weight: 400; + font-style: italic; +} +.bullet:before { + font-family: 'cakefont', sans-serif; + font-size: 18px; + display: inline-block; + margin-left: -1.3em; + width: 1.2em; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + vertical-align: -1px; +} +.success:before { + color: #88c671; + content: "\0056"; +} +.problem:before { + color: #d33d44; + content: "\0057"; +} +.cake-error { + padding: 10px; + margin: 10px 0; +} +#url-rewriting-warning { + display: none; +} diff --git a/public/css/milligram.min.css b/public/css/milligram.min.css new file mode 100644 index 0000000000..958f687da4 --- /dev/null +++ b/public/css/milligram.min.css @@ -0,0 +1,9 @@ +/*! + * Milligram v1.4.1 + * https://milligram.io + * + * Copyright (c) 2020 CJ Patoilo + * Licensed under the MIT license + */ + +*,*:after,*:before{box-sizing:inherit}html{box-sizing:border-box;font-size:62.5%}body{color:#606c76;font-family:'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;font-size:1.6em;font-weight:300;letter-spacing:.01em;line-height:1.6}blockquote{border-left:0.3rem solid #d1d1d1;margin-left:0;margin-right:0;padding:1rem 1.5rem}blockquote *:last-child{margin-bottom:0}.button,button,input[type='button'],input[type='reset'],input[type='submit']{background-color:#9b4dca;border:0.1rem solid #9b4dca;border-radius:.4rem;color:#fff;cursor:pointer;display:inline-block;font-size:1.1rem;font-weight:700;height:3.8rem;letter-spacing:.1rem;line-height:3.8rem;padding:0 3.0rem;text-align:center;text-decoration:none;text-transform:uppercase;white-space:nowrap}.button:focus,.button:hover,button:focus,button:hover,input[type='button']:focus,input[type='button']:hover,input[type='reset']:focus,input[type='reset']:hover,input[type='submit']:focus,input[type='submit']:hover{background-color:#606c76;border-color:#606c76;color:#fff;outline:0}.button[disabled],button[disabled],input[type='button'][disabled],input[type='reset'][disabled],input[type='submit'][disabled]{cursor:default;opacity:.5}.button[disabled]:focus,.button[disabled]:hover,button[disabled]:focus,button[disabled]:hover,input[type='button'][disabled]:focus,input[type='button'][disabled]:hover,input[type='reset'][disabled]:focus,input[type='reset'][disabled]:hover,input[type='submit'][disabled]:focus,input[type='submit'][disabled]:hover{background-color:#9b4dca;border-color:#9b4dca}.button.button-outline,button.button-outline,input[type='button'].button-outline,input[type='reset'].button-outline,input[type='submit'].button-outline{background-color:transparent;color:#9b4dca}.button.button-outline:focus,.button.button-outline:hover,button.button-outline:focus,button.button-outline:hover,input[type='button'].button-outline:focus,input[type='button'].button-outline:hover,input[type='reset'].button-outline:focus,input[type='reset'].button-outline:hover,input[type='submit'].button-outline:focus,input[type='submit'].button-outline:hover{background-color:transparent;border-color:#606c76;color:#606c76}.button.button-outline[disabled]:focus,.button.button-outline[disabled]:hover,button.button-outline[disabled]:focus,button.button-outline[disabled]:hover,input[type='button'].button-outline[disabled]:focus,input[type='button'].button-outline[disabled]:hover,input[type='reset'].button-outline[disabled]:focus,input[type='reset'].button-outline[disabled]:hover,input[type='submit'].button-outline[disabled]:focus,input[type='submit'].button-outline[disabled]:hover{border-color:inherit;color:#9b4dca}.button.button-clear,button.button-clear,input[type='button'].button-clear,input[type='reset'].button-clear,input[type='submit'].button-clear{background-color:transparent;border-color:transparent;color:#9b4dca}.button.button-clear:focus,.button.button-clear:hover,button.button-clear:focus,button.button-clear:hover,input[type='button'].button-clear:focus,input[type='button'].button-clear:hover,input[type='reset'].button-clear:focus,input[type='reset'].button-clear:hover,input[type='submit'].button-clear:focus,input[type='submit'].button-clear:hover{background-color:transparent;border-color:transparent;color:#606c76}.button.button-clear[disabled]:focus,.button.button-clear[disabled]:hover,button.button-clear[disabled]:focus,button.button-clear[disabled]:hover,input[type='button'].button-clear[disabled]:focus,input[type='button'].button-clear[disabled]:hover,input[type='reset'].button-clear[disabled]:focus,input[type='reset'].button-clear[disabled]:hover,input[type='submit'].button-clear[disabled]:focus,input[type='submit'].button-clear[disabled]:hover{color:#9b4dca}code{background:#f4f5f6;border-radius:.4rem;font-size:86%;margin:0 .2rem;padding:.2rem .5rem;white-space:nowrap}pre{background:#f4f5f6;border-left:0.3rem solid #9b4dca;overflow-y:hidden}pre>code{border-radius:0;display:block;padding:1rem 1.5rem;white-space:pre}hr{border:0;border-top:0.1rem solid #f4f5f6;margin:3.0rem 0}input[type='color'],input[type='date'],input[type='datetime'],input[type='datetime-local'],input[type='email'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='url'],input[type='week'],input:not([type]),textarea,select{-webkit-appearance:none;background-color:transparent;border:0.1rem solid #d1d1d1;border-radius:.4rem;box-shadow:none;box-sizing:inherit;height:3.8rem;padding:.6rem 1.0rem .7rem;width:100%}input[type='color']:focus,input[type='date']:focus,input[type='datetime']:focus,input[type='datetime-local']:focus,input[type='email']:focus,input[type='month']:focus,input[type='number']:focus,input[type='password']:focus,input[type='search']:focus,input[type='tel']:focus,input[type='text']:focus,input[type='url']:focus,input[type='week']:focus,input:not([type]):focus,textarea:focus,select:focus{border-color:#9b4dca;outline:0}select{background:url('data:image/svg+xml;utf8,') center right no-repeat;padding-right:3.0rem}select:focus{background-image:url('data:image/svg+xml;utf8,')}select[multiple]{background:none;height:auto}textarea{min-height:6.5rem}label,legend{display:block;font-size:1.6rem;font-weight:700;margin-bottom:.5rem}fieldset{border-width:0;padding:0}input[type='checkbox'],input[type='radio']{display:inline}.label-inline{display:inline-block;font-weight:normal;margin-left:.5rem}.container{margin:0 auto;max-width:112.0rem;padding:0 2.0rem;position:relative;width:100%}.row{display:flex;flex-direction:column;padding:0;width:100%}.row.row-no-padding{padding:0}.row.row-no-padding>.column{padding:0}.row.row-wrap{flex-wrap:wrap}.row.row-top{align-items:flex-start}.row.row-bottom{align-items:flex-end}.row.row-center{align-items:center}.row.row-stretch{align-items:stretch}.row.row-baseline{align-items:baseline}.row .column{display:block;flex:1 1 auto;margin-left:0;max-width:100%;width:100%}.row .column.column-offset-10{margin-left:10%}.row .column.column-offset-20{margin-left:20%}.row .column.column-offset-25{margin-left:25%}.row .column.column-offset-33,.row .column.column-offset-34{margin-left:33.3333%}.row .column.column-offset-40{margin-left:40%}.row .column.column-offset-50{margin-left:50%}.row .column.column-offset-60{margin-left:60%}.row .column.column-offset-66,.row .column.column-offset-67{margin-left:66.6666%}.row .column.column-offset-75{margin-left:75%}.row .column.column-offset-80{margin-left:80%}.row .column.column-offset-90{margin-left:90%}.row .column.column-10{flex:0 0 10%;max-width:10%}.row .column.column-20{flex:0 0 20%;max-width:20%}.row .column.column-25{flex:0 0 25%;max-width:25%}.row .column.column-33,.row .column.column-34{flex:0 0 33.3333%;max-width:33.3333%}.row .column.column-40{flex:0 0 40%;max-width:40%}.row .column.column-50{flex:0 0 50%;max-width:50%}.row .column.column-60{flex:0 0 60%;max-width:60%}.row .column.column-66,.row .column.column-67{flex:0 0 66.6666%;max-width:66.6666%}.row .column.column-75{flex:0 0 75%;max-width:75%}.row .column.column-80{flex:0 0 80%;max-width:80%}.row .column.column-90{flex:0 0 90%;max-width:90%}.row .column .column-top{align-self:flex-start}.row .column .column-bottom{align-self:flex-end}.row .column .column-center{align-self:center}@media (min-width: 40rem){.row{flex-direction:row;margin-left:-1.0rem;width:calc(100% + 2.0rem)}.row .column{margin-bottom:inherit;padding:0 1.0rem}}a{color:#9b4dca;text-decoration:none}a:focus,a:hover{color:#606c76}dl,ol,ul{list-style:none;margin-top:0;padding-left:0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{font-size:90%;margin:1.5rem 0 1.5rem 3.0rem}ol{list-style:decimal inside}ul{list-style:circle inside}.button,button,dd,dt,li{margin-bottom:1.0rem}fieldset,input,select,textarea{margin-bottom:1.5rem}blockquote,dl,figure,form,ol,p,pre,table,ul{margin-bottom:2.5rem}table{border-spacing:0;overflow-x:auto;text-align:left;width:100%}td,th{border-bottom:0.1rem solid #e1e1e1;padding:1.2rem 1.5rem}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}@media (min-width: 40rem){table{display:table;overflow-x:initial}}b,strong{font-weight:bold}p{margin-top:0}h1,h2,h3,h4,h5,h6{font-weight:300;letter-spacing:-.1rem;margin-bottom:2.0rem;margin-top:0}h1{font-size:4.6rem;line-height:1.2}h2{font-size:3.6rem;line-height:1.25}h3{font-size:2.8rem;line-height:1.3}h4{font-size:2.2rem;letter-spacing:-.08rem;line-height:1.35}h5{font-size:1.8rem;letter-spacing:-.05rem;line-height:1.5}h6{font-size:1.6rem;letter-spacing:0;line-height:1.4}img{max-width:100%}.clearfix:after{clear:both;content:' ';display:table}.float-left{float:left}.float-right{float:right} diff --git a/public/css/normalize.min.css b/public/css/normalize.min.css new file mode 100644 index 0000000000..bde07fcb52 --- /dev/null +++ b/public/css/normalize.min.css @@ -0,0 +1,8 @@ +/** + * Minified by jsDelivr using clean-css v4.2.1. + * Original file: /npm/normalize.css@8.0.1/normalize.css + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ +html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none} diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000..49a060fc46 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/font/Raleway-License.txt b/public/font/Raleway-License.txt new file mode 100644 index 0000000000..94dce24495 --- /dev/null +++ b/public/font/Raleway-License.txt @@ -0,0 +1,51 @@ +License for 'Raleway' +SIL Open Font License +Copyright (c) 2010, Matt McInerney (matt@pixelspread.com), +Copyright (c) 2011, Pablo Impallari (www.impallari.com|impallari@gmail.com), +Copyright (c) 2011, Rodrigo Fuenzalida (www.rfuenzalida.com|hello@rfuenzalida.com), with Reserved Font Name Raleway + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +—————————————————————————————- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +—————————————————————————————- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +“Reserved Font Name” refers to any names specified as such after the copyright statement(s). + +“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/public/font/cakedingbats-webfont.eot b/public/font/cakedingbats-webfont.eot new file mode 100644 index 0000000000..e8605d9268 Binary files /dev/null and b/public/font/cakedingbats-webfont.eot differ diff --git a/public/font/cakedingbats-webfont.svg b/public/font/cakedingbats-webfont.svg new file mode 100644 index 0000000000..d1e0c98f7a --- /dev/null +++ b/public/font/cakedingbats-webfont.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/font/cakedingbats-webfont.ttf b/public/font/cakedingbats-webfont.ttf new file mode 100644 index 0000000000..13d54454e7 Binary files /dev/null and b/public/font/cakedingbats-webfont.ttf differ diff --git a/public/font/cakedingbats-webfont.woff b/public/font/cakedingbats-webfont.woff new file mode 100644 index 0000000000..073baab113 Binary files /dev/null and b/public/font/cakedingbats-webfont.woff differ diff --git a/public/font/cakedingbats-webfont.woff2 b/public/font/cakedingbats-webfont.woff2 new file mode 100644 index 0000000000..6e71eaf53e Binary files /dev/null and b/public/font/cakedingbats-webfont.woff2 differ diff --git a/public/font/raleway-400-cyrillic-ext.woff2 b/public/font/raleway-400-cyrillic-ext.woff2 new file mode 100644 index 0000000000..039269ecd6 Binary files /dev/null and b/public/font/raleway-400-cyrillic-ext.woff2 differ diff --git a/public/font/raleway-400-cyrillic.woff2 b/public/font/raleway-400-cyrillic.woff2 new file mode 100644 index 0000000000..48b9d896c2 Binary files /dev/null and b/public/font/raleway-400-cyrillic.woff2 differ diff --git a/public/font/raleway-400-latin-ext.woff2 b/public/font/raleway-400-latin-ext.woff2 new file mode 100644 index 0000000000..0eedc5bb67 Binary files /dev/null and b/public/font/raleway-400-latin-ext.woff2 differ diff --git a/public/font/raleway-400-latin.woff2 b/public/font/raleway-400-latin.woff2 new file mode 100644 index 0000000000..d0e6f01908 Binary files /dev/null and b/public/font/raleway-400-latin.woff2 differ diff --git a/public/font/raleway-400-vietnamese.woff2 b/public/font/raleway-400-vietnamese.woff2 new file mode 100644 index 0000000000..405fb25048 Binary files /dev/null and b/public/font/raleway-400-vietnamese.woff2 differ diff --git a/public/font/raleway-700-cyrillic-ext.woff2 b/public/font/raleway-700-cyrillic-ext.woff2 new file mode 100644 index 0000000000..039269ecd6 Binary files /dev/null and b/public/font/raleway-700-cyrillic-ext.woff2 differ diff --git a/public/font/raleway-700-cyrillic.woff2 b/public/font/raleway-700-cyrillic.woff2 new file mode 100644 index 0000000000..48b9d896c2 Binary files /dev/null and b/public/font/raleway-700-cyrillic.woff2 differ diff --git a/public/font/raleway-700-latin-ext.woff2 b/public/font/raleway-700-latin-ext.woff2 new file mode 100644 index 0000000000..0eedc5bb67 Binary files /dev/null and b/public/font/raleway-700-latin-ext.woff2 differ diff --git a/public/font/raleway-700-latin.woff2 b/public/font/raleway-700-latin.woff2 new file mode 100644 index 0000000000..d0e6f01908 Binary files /dev/null and b/public/font/raleway-700-latin.woff2 differ diff --git a/public/font/raleway-700-vietnamese.woff2 b/public/font/raleway-700-vietnamese.woff2 new file mode 100644 index 0000000000..405fb25048 Binary files /dev/null and b/public/font/raleway-700-vietnamese.woff2 differ diff --git a/public/img/cake-logo.png b/public/img/cake-logo.png new file mode 100644 index 0000000000..41939ef5a5 Binary files /dev/null and b/public/img/cake-logo.png differ diff --git a/public/img/cake.icon.png b/public/img/cake.icon.png new file mode 100644 index 0000000000..394fa42d51 Binary files /dev/null and b/public/img/cake.icon.png differ diff --git a/public/img/cake.logo.svg b/public/img/cake.logo.svg new file mode 100644 index 0000000000..e73abb54bc --- /dev/null +++ b/public/img/cake.logo.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/img/cake.power.gif b/public/img/cake.power.gif new file mode 100644 index 0000000000..8f8d570a2e Binary files /dev/null and b/public/img/cake.power.gif differ diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000000..cde1e5ed0f --- /dev/null +++ b/public/index.php @@ -0,0 +1,37 @@ +emit($server->run()); diff --git a/public/js/.gitkeep b/public/js/.gitkeep new file mode 100644 index 0000000000..e69de29bb2