mirror of
https://github.com/konpa/devicon.git
synced 2025-07-31 11:50:13 +02:00
Start angular app for demo
This commit is contained in:
@@ -81,6 +81,13 @@ module.exports = function(grunt) {
|
|||||||
flatten:true,
|
flatten:true,
|
||||||
filter:'isFile',
|
filter:'isFile',
|
||||||
expand:true
|
expand:true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src:'../devicon.json',
|
||||||
|
dest:'assets/',
|
||||||
|
flatten:true,
|
||||||
|
filter:'isFile',
|
||||||
|
expand:true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -154,7 +161,8 @@ module.exports = function(grunt) {
|
|||||||
copy: {
|
copy: {
|
||||||
files: [
|
files: [
|
||||||
'../font/*',
|
'../font/*',
|
||||||
'../scss/devicon.scss'
|
'../scss/devicon.scss',
|
||||||
|
'../devicon.json'
|
||||||
],
|
],
|
||||||
tasks: ['copy:dev']
|
tasks: ['copy:dev']
|
||||||
},
|
},
|
||||||
@@ -165,6 +173,7 @@ module.exports = function(grunt) {
|
|||||||
files: [
|
files: [
|
||||||
'assets/**/*.css',
|
'assets/**/*.css',
|
||||||
'assets/**/*.js',
|
'assets/**/*.js',
|
||||||
|
'assets/**/*.json',
|
||||||
'**/*.html'
|
'**/*.html'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
149
demo/assets/devicon.json
Normal file
149
demo/assets/devicon.json
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
[{
|
||||||
|
|
||||||
|
"ProgrammingLanguages": {
|
||||||
|
"name": "Programming Languages",
|
||||||
|
"icons": [
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "html5",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "css3",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "js",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": false,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "javascript",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "mysql",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"DevelopmentTools": {
|
||||||
|
"name": "Development tools",
|
||||||
|
"icons": [
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "sass",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": false,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "less",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": false,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "laravel",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "bootstrap",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "foundation",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "angularjs",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "jquery",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "grunt",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "bower",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "git",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": true,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"DesigningTools": {
|
||||||
|
"name": "Designing tools",
|
||||||
|
"icons": [
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "photoshop",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": false,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"name": "illustrator",
|
||||||
|
"options": {
|
||||||
|
"simple": true,
|
||||||
|
"text": false,
|
||||||
|
"color": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
}]
|
8
demo/assets/script.js
Normal file
8
demo/assets/script.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
var phonecatApp = angular.module('devicon', []);
|
||||||
|
|
||||||
|
phonecatApp.controller('IconListCtrl', function ($scope, $http) {
|
||||||
|
$http.get('assets/devicon.json').success(function(data) {
|
||||||
|
$scope.icons = data[0];
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
@@ -1,6 +1,14 @@
|
|||||||
@import
|
@import
|
||||||
"../scss/devicon.scss";
|
"../scss/devicon.scss";
|
||||||
|
|
||||||
|
.devicons {
|
||||||
|
list-style: none;
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
}
|
}
|
@@ -316,6 +316,14 @@
|
|||||||
color: #faa625;
|
color: #faa625;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.devicons {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.devicons li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 5rem;
|
font-size: 5rem;
|
||||||
}
|
}
|
||||||
|
@@ -16,29 +16,36 @@
|
|||||||
|
|
||||||
<script src="assets/components/modernizr.js"></script>
|
<script src="assets/components/modernizr.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body ng-app="devicon">
|
||||||
<!--[if lt IE 7]>
|
<!--[if lt IE 7]>
|
||||||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<header class="header">
|
<!-- <header class="header">
|
||||||
<h1>devicon</h1>
|
<h1>devicon</h1>
|
||||||
</header>
|
</header> -->
|
||||||
|
|
||||||
<main class="main">
|
<main class="main" ng-controller="IconListCtrl">
|
||||||
<ul>
|
<ul class="devicons" ng-repeat="type in icons">
|
||||||
<li><i class="devicon-sass"></i></li>
|
<h2>{{ type.name }}</h2>
|
||||||
|
<li ng-repeat="icon in type.icons">
|
||||||
|
<i class="devicon-{{ icon.name }}"></i>
|
||||||
|
<i class="devicon-{{ icon.name }}-color"></i>
|
||||||
|
<i ng-if="icon.options.text == true" class="devicon-{{ icon.name }}-text"></i>
|
||||||
|
<i ng-if="icon.options.text == true" class="devicon-{{ icon.name }}-text-color"></i>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="footer">
|
<!-- <footer class="footer">
|
||||||
<a href="http://konpa.fr">konpa</a>
|
<a href="http://konpa.fr">konpa</a>
|
||||||
</footer>
|
</footer> -->
|
||||||
|
|
||||||
<script src="assets/components/jquery.js"></script>
|
<script src="assets/components/jquery.js"></script>
|
||||||
<script src="assets/components/fastclick.js"></script>
|
<script src="assets/components/fastclick.js"></script>
|
||||||
<script src="assets/components/foundation.js"></script>
|
<script src="assets/components/foundation.js"></script>
|
||||||
<script src="assets/js/script.js"></script>
|
<script src="assets/components/angular.js"></script>
|
||||||
|
<script src="assets/script.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
Reference in New Issue
Block a user