From 783891ce50e1e9321816a1ef3db1bbed55ce63b4 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Thu, 19 May 2016 23:51:08 +0200 Subject: [PATCH] Initial import --- .gitignore | 2 + composer.json | 24 ++++ composer.lock | 77 ++++++++++++ css/frs.css | 57 +++++++++ index.php | 12 ++ templates/html_foot.mustache | 2 + templates/html_head.mustache | 13 ++ templates/index_html.mustache | 227 ++++++++++++++++++++++++++++++++++ 8 files changed, 414 insertions(+) create mode 100644 .gitignore create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 css/frs.css create mode 100644 index.php create mode 100644 templates/html_foot.mustache create mode 100644 templates/html_head.mustache create mode 100644 templates/index_html.mustache diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c7e6682 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/composer.phar +vendor/ diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..8afaa59 --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "Fake Reservation System", + "description": "Send mails with markup to yourself to trigger Google Now features", + "require": { + "php": ">=5.3.0", + "mustache/mustache": "~2.10", + "google/material-design-lite": "~1.1.3", + "google/apiclient": "^2.0.0@RC" + }, + "repositories": [ + { + "type": "package", + "package": { + "name": "google/material-design-lite", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/google/material-design-lite", + "reference": "v1.1.3" + } + } + } + ] +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..b7d8071 --- /dev/null +++ b/composer.lock @@ -0,0 +1,77 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "8c680a772ea07ec574e7f76607242480", + "content-hash": "9ef9073435484e4ba12d269fd030e1e7", + "packages": [ + { + "name": "google/material-design-lite", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/google/material-design-lite", + "reference": "v1.1.3" + }, + "type": "library" + }, + { + "name": "mustache/mustache", + "version": "v2.10.0", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/mustache.php.git", + "reference": "0bb2f76e2f34a8864a32be34c4ec66274d76c05e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/0bb2f76e2f34a8864a32be34c4ec66274d76c05e", + "reference": "0bb2f76e2f34a8864a32be34c4ec66274d76c05e", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "require-dev": { + "fabpot/php-cs-fixer": "~1.6", + "phpunit/phpunit": "~3.7|~4.0|~5.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Mustache": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "A Mustache implementation in PHP.", + "homepage": "https://github.com/bobthecow/mustache.php", + "keywords": [ + "mustache", + "templating" + ], + "time": "2016-02-27 19:22:46" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.3.0" + }, + "platform-dev": [] +} diff --git a/css/frs.css b/css/frs.css new file mode 100644 index 0000000..f565bd3 --- /dev/null +++ b/css/frs.css @@ -0,0 +1,57 @@ +.frs-ribbon { + width: 100%; + height: 40vh; + background-color: #3F51B5; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; +} + +.frs-main { + margin-top: -35vh; + -webkit-flex-shrink: 0; + -ms-flex-negative: 0; + flex-shrink: 0; +} + +.frs-header .mdl-layout__header-row { + padding-left: 40px; +} + +.frs-container { + max-width: 1600px; + width: calc(100% - 16px); + margin: 0 auto; +} + +.frs-content { + border-radius: 2px; + padding: 80px 56px; + margin-bottom: 80px; +} + +.frs-layout.is-small-screen .frs-content { + padding: 40px 28px; +} + +.frs-content h3 { + margin-top: 48px; +} + +.frs-footer { + padding-left: 40px; +} + +.frs-footer .mdl-mini-footer--link-list a { + font-size: 13px; +} + +#view-source { + position: fixed; + display: block; + right: 0; + bottom: 0; + margin-right: 40px; + margin-bottom: 40px; + z-index: 900; +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..6d79036 --- /dev/null +++ b/index.php @@ -0,0 +1,12 @@ + new Mustache_Loader_FilesystemLoader(dirname(__FILE__) . '/templates'), + 'charset' => 'utf-8', + 'logger' => new Mustache_Logger_StreamLogger('php://stderr'), +)); + +$tpl = $m->loadTemplate('index_html'); +echo $tpl->render(); diff --git a/templates/html_foot.mustache b/templates/html_foot.mustache new file mode 100644 index 0000000..691287b --- /dev/null +++ b/templates/html_foot.mustache @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/templates/html_head.mustache b/templates/html_head.mustache new file mode 100644 index 0000000..add22e9 --- /dev/null +++ b/templates/html_head.mustache @@ -0,0 +1,13 @@ + + + + + Fake Reservation System + + + + + + + + diff --git a/templates/index_html.mustache b/templates/index_html.mustache new file mode 100644 index 0000000..b3818ee --- /dev/null +++ b/templates/index_html.mustache @@ -0,0 +1,227 @@ +{{> html_head}} + +
+
+
+ Fake Reservation System +
+
+
+
+
+
+
+
+ Not Google > Not Google Now > Fake Reservation System +
+

What is this?

+ +

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+

+ Hello, world! +

+ +
+
+ +
+
+ View Source + +{{> html_foot}}