Compare commits

...
10 Commits
Author SHA1 Message Date
Justin Oros 64a3f0f10e Added Theme: University of Arizona 2019-03-28 08:56:25 -07:00
Ufuk Kayserilioglu aea00e4941 Make sure that the default theme is the first one listed in themes.yml (#229)
We want the default theme to be Aubergine since that is the default that comes
with Slack. However, we were actually relying on the first theme in alphabetical
sorted order as the default theme, which ended up changing the default as themes
got added.

This patch always makes it the first entry in the themes.yml file
2018-12-13 12:13:04 -05:00
Ufuk 65c2d2b2f6 Adding generated images [skip ci] 2018-12-13 17:11:53 +00:00
Ufuk Kayserilioglu daad40b0b8 Add Shopify theme (#228) 2018-12-13 12:07:49 -05:00
Ufuk fe8a044ae5 Adding generated images [skip ci] 2018-11-05 20:33:48 +00:00
Kazuki Yamada 74baac6c0e Add 360Channel theme (#212) 2018-11-05 22:31:53 +02:00
Jesse Kramer f919dec481 Fix: How to contribute? (#214)
* Add README with project description + contribution guidelines.
* Updated webserver text in README
[skip ci]
2018-11-05 22:25:08 +02:00
Ufuk 914d5855d4 Adding generated images [skip ci] 2018-10-25 21:25:43 +00:00
Michael M 3d878f62f0 Add Visual Composer theme (#211) 2018-10-25 17:23:56 -04:00
Ufuk f213a9ead3 Adding generated images [skip ci] 2018-10-25 11:48:53 +00:00
8 changed files with 47 additions and 2 deletions

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
<p align="center">
<a href="https://http://slackthemes.net" target="_blank"><img src="https://raw.githubusercontent.com/paracycle/slackthemes/master/source/favicon-32.png"></a>
<br /><strong>Slack Themes</strong>
</p>
<p align="center">
<a href="https://travis-ci.org/paracycle/slackthemes" target="_blank"><img src="https://travis-ci.org/paracycle/slackthemes.svg?branch=master"></a>
</p>
### About the project
slackthemes.net is a platform for browsing and sharing themes for [Slack](https://slack.com/).
It is not affiliated with [Slack](https://slack.com/) in any way or form; but it is a great tool, use it.
### How to contribute (themes)
1. Fork this project.
2. Add your theme to the `data/themes.yml` file.
3. Create a pull request.
### How to contribute (core)
1. Fork this project.
2. Install dependencies using `bundle install`
3. Make changes.
4. Build the project using `bundle exec middleman build`
5. You can [run a local webserver](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server) to test the project. (make sure to use the `./build` folder as your DocumentRoot).
6. Create a pull request.
### Contributors
* [Contributors](https://github.com/paracycle/slackthemes/graphs/contributors)
+8
View File
@@ -105,4 +105,12 @@ helpers do
)) ))
end end
end end
def default_theme
theme = data.themes.first
OpenStruct.new(theme.merge(
slug: theme['name'].parameterize.underscore,
digest: Digest::MD5.new.hexdigest(theme['colors'])
))
end
end end
+4
View File
@@ -251,3 +251,7 @@
- { colors: '#E3E6EA,#EDEFF1,#D1571C,#FFFFFF,#1DB3C5,#333232,#48B8AD,#D3561A', name: 'beNext' } - { colors: '#E3E6EA,#EDEFF1,#D1571C,#FFFFFF,#1DB3C5,#333232,#48B8AD,#D3561A', name: 'beNext' }
- { colors: '#000000,#a8a8a8,#000000,#a6a6a6,#000000,#7d7d7d,#078500,#bf0000', name: 'mishaor' } - { colors: '#000000,#a8a8a8,#000000,#a6a6a6,#000000,#7d7d7d,#078500,#bf0000', name: 'mishaor' }
- { colors: '#222222,#333333,#9FC65D,#FFFFFF,#4A5664,#F4F4F4,#9FC65D,#ffbc3b', name: 'Inpsyde' } - { colors: '#222222,#333333,#9FC65D,#FFFFFF,#4A5664,#F4F4F4,#9FC65D,#ffbc3b', name: 'Inpsyde' }
- { colors: '#2e4f7e,#2C3849,#203251,#FFFFFF,#456494,#FFFFFF,#a6c056,#e9ae4c', name: 'Visual Composer' }
- { colors: '#323232,#E60A00,#E60A00,#FFFFFF,#505050,#F5F5F5,#E64600,#E60A00', name: '360Channel' }
- { colors: '#000639,#3E313C,#108043,#FFFFFF,#173630,#FFFFFF,#50B83C,#9C6ADE', name: 'Shopify'}
- { colors: '#0c234b,#AB0520,#AB0520,#ffffff,#07142b,#FFFFFF,#AB0520,#0c234B', name: 'University of Arizona'}
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+2 -2
View File
@@ -9,10 +9,10 @@ app.config(['$stateProvider', '$urlRouterProvider',
url: "/:slug", url: "/:slug",
controller: 'ThemeController', controller: 'ThemeController',
params: { params: {
slug: { value: '<%= themes.first.slug %>' } slug: { value: '<%= default_theme.slug %>' }
} }
}); });
$urlRouterProvider.otherwise('/<%= themes.first.slug %>'); $urlRouterProvider.otherwise('/<%= default_theme.slug %>');
}]); }]);
app.controller('ThemeController', ['$scope', '$stateParams', '$state', '$location', app.controller('ThemeController', ['$scope', '$stateParams', '$state', '$location',