Initial import
This commit is contained in:
commit
783891ce50
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/composer.phar
|
||||
vendor/
|
24
composer.json
Normal file
24
composer.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
77
composer.lock
generated
Normal file
77
composer.lock
generated
Normal file
@ -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": []
|
||||
}
|
57
css/frs.css
Normal file
57
css/frs.css
Normal file
@ -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;
|
||||
}
|
12
index.php
Normal file
12
index.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/vendor' . '/autoload.php';
|
||||
|
||||
$m = new Mustache_Engine(array(
|
||||
'loader' => 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();
|
2
templates/html_foot.mustache
Normal file
2
templates/html_foot.mustache
Normal file
@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
13
templates/html_head.mustache
Normal file
13
templates/html_head.mustache
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Fake Reservation System</title>
|
||||
<link rel="stylesheet" href="vendor/google/material-design-lite/material.min.css"/>
|
||||
<script src="vendor/google/material-design-lite/material.min.js"></script>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en"/>
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons"/>
|
||||
<link rel="stylesheet" href="css/frs.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
</head>
|
||||
<body>
|
227
templates/index_html.mustache
Normal file
227
templates/index_html.mustache
Normal file
@ -0,0 +1,227 @@
|
||||
{{> html_head}}
|
||||
|
||||
<div class="frs-layout mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100">
|
||||
<header class="frs-header mdl-layout__header mdl-layout__header--scroll mdl-color--grey-100 mdl-color-text--grey-800">
|
||||
<div class="mdl-layout__header-row">
|
||||
<span class="mdl-layout-title">Fake Reservation System</span>
|
||||
</div>
|
||||
</header>
|
||||
<div class="frs-ribbon"></div>
|
||||
<main class="frs-main mdl-layout__content">
|
||||
<div class="frs-container mdl-grid">
|
||||
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
|
||||
<div class="frs-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">
|
||||
<div class="frs-crumbs mdl-color-text--grey-500">
|
||||
Not Google > Not Google Now > Fake Reservation System
|
||||
</div>
|
||||
<h3>What is this?</h3>
|
||||
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
<p>
|
||||
Hello, world!
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer class="frs-footer mdl-mini-footer">
|
||||
<div class="mdl-mini-footer--left-section">
|
||||
<ul class="mdl-mini-footer--link-list">
|
||||
<li><a href="#">Help</a></li>
|
||||
<li><a href="#">Privacy and Terms</a></li>
|
||||
<li><a href="#">User Agreement</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
</main>
|
||||
</div>
|
||||
<a href="https://github.com/google/material-design-lite/blob/master/templates/article/" target="_blank" id="view-source" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-color--accent mdl-color-text--accent-contrast">View Source</a>
|
||||
|
||||
{{> html_foot}}
|
Reference in New Issue
Block a user