Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds 'brick 1.0 beta 6' with a brick.html tinker page #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Binary file added www/assets/vendor/brick/OpenSans-SemiBold.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions www/assets/vendor/brick/brick-1.0beta6.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions www/assets/vendor/brick/brick-1.0beta6.js

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions www/assets/vendor/brick/readme-1.0beta6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Mozilla Brick

To include Brick in your project, include the bundled stylesheet and script
files in your project's page like any other CSS/JS file.

To use the provided default font for your components, include the font file in
the same directory as your Brick stylesheet.
(If you move the font file elsewhere, look for the "OpenSans-SemiBold.ttf" in
the @font-face declaration at the start of the included stylesheet and
replace it with the correct path to the file).

Further documentation can be found at http://mozilla.github.io/brick/

If you run into issues with this release of Brick, please file an issue
at https://github.com/mozilla/brick/. We're still in prerelease, so all feedback
is welcome!
121 changes: 121 additions & 0 deletions www/brick.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>brick components in a hood.ie app</title>
<link rel="stylesheet" href="assets/vendor/brick/brick-1.0beta6.css"/>
<script src="assets/vendor/brick/brick-1.0beta6.js"></script>

<style>
x-deck,
x-flipbox,
x-calendar,
x-iconbutton
{
background-color: lightsteelblue;
}
</style>
</head>
<body>
<h1>brick x-components (<a href="http://mozilla.github.io/brick/docs.html">link</a>)</h1>
<h2>in a <a href="http://hood.ie/">hood.ie</a> application</h2>
<hr/>
<div style="width:33%; left:0;right:0;margin:auto;">

<!-- x-appbar -->
<code>x-appbar:</code>
<x-appbar heading="Ohai Otto" subheading=":)">
<div>=</div>
<header>Title</header>
<div>+</div>
<div>?</div>
</x-appbar>

<hr/>

<!-- x-calendar -->
<code>x-calendar:</code>
<x-calendar controls view="1978-05-21" chosen="1978-05-21" multiple></x-calendar>

<hr/>

<!-- x-datepicker -->
<code>x-datepicker:</code>
<x-datepicker></x-datepicker>

<hr/>

<!-- x-deck -->
<code>x-deck (& x-card):</code>
<x-deck>
<x-card>1st <span>card</span></x-card>
<x-card>2nd <span>card</span></x-card>
</x-deck>

<hr/>

<!-- x-flipbox -->
<code>x-flipbox:</code>
<x-flipbox>
<div>I'm the front</div>
<div>I'm the back</div>
</x-flipbox>

<hr/>

<!-- x-iconbutton -->
<code>x-iconbutton:</code>
<x-iconbutton>
<strong>this</strong> <em>is</em> an <u>icon button</u>
</x-iconbutton>

<hr/>

<!-- x-layout -->
<code>x-layout:</code>
<x-layout>
<header>layout header</header>
<section>layout section <p>filler filler filler filler</p></section>
<footer>layout footer</section>
</x-layout>

<hr/>

<!-- x-slidebox -->
<code>x-slidebox:</code>
<x-slidebox>
<x-slides>
<x-slide>Slide 0</x-slide>
<x-slide>Slide 1</x-slide>
<x-slide selected>Slide 2</x-slide>
<x-slide>Slide 3</x-slide>
<x-slide>Slide 4</x-slide>
<x-slide>Slide 5</x-slide>
<x-slide>Slide 6</x-slide>
</x-slides>
</x-slidebox>

<hr/>

<!-- x-slider -->
<code>x-slider:</code>
<x-slider></x-slider
</div>

<script>
var calendar = document.querySelector('x-calendar');
//console.log(calendar);
calendar.labels = {
prev: '<<',//"&laquo;",
next: '>>',//"&raquo;",
months: ['J','F','M','A','M','J','J','A','S','O','N','D'],
weekdays: ['Su','M','T','W','Th','F','Sa']
};

var flipbox = document.querySelector('x-flipbox');
flipbox.addEventListener('click', function() {
flipbox.toggle();
})
</script>
</body>
</html>