Commit 92d61558 authored by hxgf's avatar hxgf 🎧

v1.3.0

parent 5a976da4
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond $0 !=images/favicons/favicon.ico
RewriteRule ^([^/]+/)*favicon\.ico$ /images/favicons/favicon.ico [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
......
......@@ -3,91 +3,14 @@
$app->get('/', function(){
$GLOBALS['app']->render_template(array(
'template' => 'index',
'title' => $GLOBALS['site_title'],
));
});
$app->get('/demo', function(){
$planet_group[] = array(
'title' => 'Gas Giants',
'planets' => [array(
'name' => 'Jupiter'
), array(
'name' => 'Neptune'
), array(
'name' => 'Uranus'
)]
);
$planet_group[] = array(
'title' => 'Moons',
'planets' => [array(
'name' => 'Luna',
'note' => 'Earth\'s moon, also known as "moon"'
), array(
'name' => 'IO'
), array(
'name' => 'Ganymede'
), array(
'name' => 'Europa'
), array(
'name' => 'Phobos'
), array(
'name' => 'Deimos'
), array(
'name' => 'Callisto'
), array(
'name' => 'Kale'
)]
);
$planet_group[] = array(
'title' => 'Exoplanets',
'planets' => [array(
'name' => 'Pluto'
), array(
'name' => 'Nibiru',
'note' => 'commonly referred to as "Planet X"'
), array(
'name' => 'Dave'
)]
);
$planet_group[] = array(
'title' => 'Potentially Habitable Planets',
'planets' => [array(
'name' => 'Earth'
), array(
'name' => 'Mars'
), array(
'name' => 'Europa'
)]
);
$data = array(
'snacks' => array(
'Carrots',
'Hay',
'Sugar Cubes',
'Oats',
'Apples',
'Weaker Horses'
),
'planet_group' => $planet_group
);
$welcome_icons = array('⊭','♥','☼','⁜','⁙','⁕');
$GLOBALS['app']->render_template(array(
'template' => 'demo',
'title' => $GLOBALS['site_title'] . ' - Template Demonstration',
'data' => $data
'template' => 'index',
'title' => $GLOBALS['site_title'],
'data' => array(
'welcome_icon' => $welcome_icons[array_rand($welcome_icons)]
)
));
});
......
/* ------------------------------------------------------- */
/* SMART PHONES (portrait/landscape) */
/* MEDIUM */
/* ------------------------------------------------------- */
@media only screen and (min-device-width: 320px) and (max-device-width : 480px) {
}
/* ------------------------------------------------------- */
/* TABLETS (portrait/landscape) */
/* ------------------------------------------------------- */
@media only screen and (min-device-width: 768px) and (max-device-width : 1024px) {
@media screen and (min-width: 48em) and (max-width: 64em){
}
/* ------------------------------------------------------- */
/* DESKTOPS / LAPTOPS */
/* NOT SMALL */
/* ------------------------------------------------------- */
@media only screen and (min-width: 1224px) {
@media screen and (min-width: 48em){
}
/* ------------------------------------------------------- */
/* LARGE SCREENS */
/* LARGE */
/* ------------------------------------------------------- */
@media only screen and (min-width: 1824px) {
@media screen and (min-width: 64em){
}
/* breakpoints match Tachyons media queries: https://github.com/tachyons-css/tachyons-queries */
/* need to be more specific? check this out: https://responsivedesign.is/develop/browser-feature-support/media-queries-for-common-device-breakpoints */
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
\ No newline at end of file
{
"name": "App",
"icons": [
{
"src": "\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}
\ No newline at end of file
......@@ -8,7 +8,7 @@
\/_____/ \/_/ \/_____/ \/_/ /_/ \/_____/ \/_____/
Version: 1.2.0
Version: 1.3.0
Docs: http://stereotk.com
*/
......
<div style="display: table; height: 100%;margin: 0 auto;">
<div style="display: table; height: 100%; margin: 0 auto;">
<div style="display: table-cell; vertical-align: middle;">
<center>
<pre>
......
......@@ -6,9 +6,24 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png">
<link rel="stylesheet" href="/css/lib/tachyons.min.css" />
<link rel="stylesheet" href="/css/app.css" />
<link rel="stylesheet" href="/css/styles.css" />
<link rel="stylesheet" href="/css/breakpoints.css" />
</head>
......
<pre class="dib tl"> ,
_,,)\.~,,._
(()` ``)\))),,_
| \ ''((\)))),,_ ____
|6` | ''((\())) "-.____.-" `-.-,
| .'\ ''))))' \)))
| | `. '' ((((
\, _) \/ |))))
`' | (((((
\ | ))))))
`| | ,\ /((((((
| / `-.______.< \ | )))))
| | / `. \ \ ((((
| / \ | `.\ | (((
\ | | | )| | ))
| | | | / | | '
| | /_( /_(/ /
/_(/__] \_/_(
/__] /__]</pre>
\ No newline at end of file
<section class="mw6 center">
<div class="pv3 tc gray">
{{> partial-horse}}
</div>
<div class="lh-copy">
<div class="pv3">
<h3 class="bg-red white pa2 pl3 b">THINGS HORSES LIKE TO EAT</h3>
<ul class="mt0 pl4 light-silver">
{{#each snacks}}
<li><span class="near-black">{{this}}</span></li>
{{/each}}
</ul>
</div>
<!-- <div class="bt bw5 light-gray"></div> -->
<div class="mb5">
<h3 class="bg-red white pa2 pl3 b">CELESTIAL BODIES <i><small>(complex array example)</small></i></h3>
{{#each planet_group}}
<h4 class="mb0 pl3 f4">{{title}}</h4>
<ul class="mt0 pl4 light-silver">
{{#each planets}}
<li><span class="near-black">{{name}}{{#if note}} <i><small>({{note}})</small></i>{{/if}}</span></li>
{{/each}}
</ul>
{{/each}}
</div>
<div class="mb5 bg-black white pa4 mt3 f4">
Refer to <a href="http://stereotk.com" class="link white underline">http://stereotk.com</a> for complete documentation <span class="light-silver">(and more exciting examples like these)</span>
</div>
</div>
</section>
<div class="dt h-100 center">
<div class="dtc v-mid">
<a class="link black f-6" href="/demo"></a>
<span class="f-headline">{{welcome_icon}}</span>
</div>
</div>
\ No newline at end of file
......@@ -5,7 +5,7 @@
\/\_____\ \ \_\ \ \_____\ \ \_\ \_\ \ \_____\ \ \_____\
\/_____/ \/_/ \/_____/ \/_/ /_/ \/_____/ \/_____/
Internet Tool Kit v1.2.0
Internet Tool Kit v1.3.0
```
......
......@@ -4,7 +4,7 @@ $GLOBALS['site_title'] = 'STEREO'; // ex: 'Party Physics'
$GLOBALS['site_code'] = ''; // ex: 'partyphysics'
$GLOBALS['site_url'] = ''; // ex: 'partyphysics.com'
// $GLOBALS['settings']['api_root'] = ''; // ex: 'https://api.partyphysics.com/api'
// $GLOBALS['settings']['api_root'] = ''; // ex: 'https://partyphysics.com/api'
// $GLOBALS['settings']['database']['host'] = 'localhost'; // host name
// $GLOBALS['settings']['database']['name'] = ''; // db name
......@@ -13,8 +13,3 @@ $GLOBALS['site_url'] = ''; // ex: 'partyphysics.com'
// $GLOBALS['settings']['mailgun_api_key'] = '';
// $GLOBALS['settings']['mailgun_api_domain'] = '';
// in case you need it:
// date_default_timezone_set('America/Chicago');
// error_reporting(E_ALL ^ E_NOTICE);
<?php
require 'stereo/AltoRouter.php';
require 'stereo/Handlebars/Autoloader.php';
require 'stereo/lib/AltoRouter.php';
require 'stereo/lib/Handlebars/Autoloader.php';
Handlebars\Autoloader::register();
use Handlebars\Handlebars;
......@@ -18,7 +18,7 @@ $engine = new Handlebars(array(
))
));
require 'stereo/handlebars-helpers.php';
require 'stereo/lib/handlebars-helpers.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment