Skip to content

Commit 004cdf6

Browse files
author
Marko Iskander
committed
Initial commit
0 parents  commit 004cdf6

40 files changed

+2390
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.sass-cache/
2+
*.css.map
3+
node_modules/
4+
bundle.js
5+
.idea/

Gruntfile.js

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
var jsFiles = ['./js/modules/**/*.js'];
2+
var scssFile = 'scss/style.scss';
3+
var watchFiles = jsFiles.concat([scssFile, 'scss/font-variations.scss']);
4+
5+
module.exports = function(grunt) {
6+
grunt.initConfig({
7+
pkg: grunt.file.readJSON('package.json'),
8+
sass: {
9+
dist: {
10+
options: {
11+
style: 'compressed'
12+
},
13+
files: {
14+
'css/style.css': scssFile
15+
}
16+
}
17+
},
18+
autoprefixer: {
19+
options: {
20+
map: true
21+
},
22+
dist: {
23+
files: {
24+
'css/style.css': 'css/style.css'
25+
}
26+
}
27+
},
28+
watch: {
29+
css: {
30+
files: watchFiles,
31+
tasks: ['sass', 'autoprefixer', 'browserify']
32+
},
33+
options: {
34+
livereload: true
35+
}
36+
},
37+
connect: {
38+
server: {
39+
options: {
40+
port: 8443,
41+
hostname: '*',
42+
protocol: 'https'
43+
}
44+
}
45+
},
46+
browserify: {
47+
dist: {
48+
files: {
49+
'./bundle.js': jsFiles
50+
}
51+
},
52+
options: {
53+
browserifyOptions: {
54+
debug: true
55+
}
56+
}
57+
}
58+
});
59+
grunt.loadNpmTasks('grunt-contrib-sass');
60+
grunt.loadNpmTasks('grunt-contrib-watch');
61+
grunt.loadNpmTasks('grunt-autoprefixer');
62+
grunt.loadNpmTasks('grunt-contrib-connect');
63+
grunt.loadNpmTasks('grunt-browserify');
64+
grunt.registerTask('default', ['connect', 'sass', 'autoprefixer', 'browserify', 'watch']);
65+
grunt.registerTask('compile', ['autoprefixer', 'browserify']);
66+
}

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Typekit Platform API Font Browser Demo App
2+
This app is built to validate the Typekit Platform API and set an example to show integration partners how to use the Platform API properly. This demo app covers the following endpoints and features:
3+
* `/families`
4+
* `/filter`
5+
* Typekit Preview Kit
6+
* IMS Authentication API
7+
8+
### See the example
9+
10+
* [A running example of this demo app](https://demo.typekit.io)
11+
12+
### Documentation
13+
14+
* [Typekit Platform documentation at Adobe I/O](http://adobe.io/products/typekit)
15+
* [API endpoint documentation](https://docs.typekit.io)
16+
17+
### Installation
18+
* You need to have `grunt cli` tool first. If you already have it, skip this step
19+
```
20+
$ npm install -g grunt-cli
21+
```
22+
* You need `grunt` installed:
23+
```
24+
$ npm install
25+
```
26+
* Run grunt
27+
```
28+
$ grunt
29+
```
30+
* Go [`https://localhost:8443`](https://localhost:8443) in the browser
31+

config.rb

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Require any additional compass plugins here.
2+
3+
# Set this to the root of your project when deployed:
4+
http_path = "/"
5+
css_dir = "css"
6+
sass_dir = "scss"
7+
images_dir = "images"
8+
javascripts_dir = "js"
9+
fonts_dir = "fonts"
10+
11+
output_style = :expanded
12+
13+
# To enable relative paths to assets via compass helper functions. Uncomment:
14+
# relative_assets = true
15+
16+
# To disable debugging comments that display the original location of your selectors. Uncomment:
17+
# line_comments = false
18+
color_output = false
19+
20+
21+
# If you prefer the indented syntax, you might want to regenerate this
22+
# project again passing --syntax sass, or you can uncomment this:
23+
# preferred_syntax = :sass
24+
# and then run:
25+
# sass-convert -R --from scss --to sass css scss && rm -rf sass && mv scss sass

config/demo-app-config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
{
3+
"typekit_preview": {
4+
"auth_id": "pda2",
5+
"auth_token": "+dWpSpvT9ekd5/AnOgS4WnY1c0pqhwpehaQavQGfPH++6nj2gJimVtkGpB6rglRsbRFpsns6KLCHuSWmXcPLAcykN7h1qhcXRfZ6cQkJacopBI6xkhllv3GabDxNItuL",
6+
"default_subset": "default"
7+
}
8+
}

css/reset.css

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/* http://meyerweb.com/eric/tools/css/reset/
2+
v2.0 | 20110126
3+
License: none (public domain)
4+
*/
5+
6+
html, body, div, span, applet, object, iframe,
7+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8+
a, abbr, acronym, address, big, cite, code,
9+
del, dfn, em, img, ins, kbd, q, s, samp,
10+
small, strike, strong, sub, sup, tt, var,
11+
b, u, i, center,
12+
dl, dt, dd, ol, ul, li,
13+
fieldset, form, label, legend,
14+
table, caption, tbody, tfoot, thead, tr, th, td,
15+
article, aside, canvas, details, embed,
16+
figure, figcaption, footer, header, hgroup,
17+
menu, nav, output, ruby, section, summary,
18+
time, mark, audio, video {
19+
margin: 0;
20+
padding: 0;
21+
border: 0;
22+
font-size: 100%;
23+
font: inherit;
24+
vertical-align: baseline;
25+
}
26+
/* HTML5 display-role reset for older browsers */
27+
article, aside, details, figcaption, figure,
28+
footer, header, hgroup, menu, nav, section {
29+
display: block;
30+
}
31+
body {
32+
line-height: 1;
33+
}
34+
ol, ul {
35+
list-style: none;
36+
}
37+
blockquote, q {
38+
quotes: none;
39+
}
40+
blockquote:before, blockquote:after,
41+
q:before, q:after {
42+
content: '';
43+
content: none;
44+
}
45+
table {
46+
border-collapse: collapse;
47+
border-spacing: 0;
48+
}

css/style.css

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

favicon.png

1.39 KB
Loading

images/filter-icons.svg

+1
Loading

images/loader/01.svg

+1
Loading

images/loader/02.svg

+1
Loading

images/loader/03.svg

+1
Loading

images/loader/04.svg

+1
Loading

images/loader/05.svg

+1
Loading

0 commit comments

Comments
 (0)