Skip to content

Commit

Permalink
feature(navigation): navbar and footer
Browse files Browse the repository at this point in the history
- write tests
- add header component
- add footer component

[Starts #162381835]
  • Loading branch information
tersoo-atsen committed Dec 12, 2018
1 parent ceb8385 commit ec4fb79
Show file tree
Hide file tree
Showing 55 changed files with 1,089 additions and 68 deletions.
1 change: 0 additions & 1 deletion .scss-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ linters:

NestingDepth:
enabled: false
max_depth: 4

SelectorDepth:
enabled: false
Expand Down
33 changes: 33 additions & 0 deletions mockdata/categories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export default {
status: 'success',
categories: [
{
id: 1,
categoryName: 'food'
},
{
id: 2,
categoryName: 'programming'
},
{
id: 3,
categoryName: 'physics'
},
{
id: 5,
categoryName: 'gaming'
},
{
id: 6,
categoryName: 'business'
},
{
id: 7,
categoryName: 'travel'
},
{
id: 8,
categoryName: 'fitness'
},
]
};
24 changes: 21 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
},
"homepage": "https://github.com/andela/valinor-ah-frontend#readme",
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.2.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"babel-jest": "^23.6.0",
"coveralls": "^3.0.2",
"enzyme": "^3.7.0",
Expand All @@ -44,6 +46,8 @@
"react-test-renderer": "^16.6.3",
"regenerator-runtime": "^0.13.1",
"sass-lint": "^1.12.1",
"webpack": "^4.26.1",
"url-loader": "^1.1.2",
"webpack-dev-server": "^3.1.10"
},
"dependencies": {
Expand All @@ -65,6 +69,7 @@
"css-loader": "^1.0.1",
"cssnano": "^4.1.7",
"express": "^4.16.4",
"file-loader": "^2.0.0",
"font-awesome": "^4.7.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
Expand Down
Binary file added public/images/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions public/images/bell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/business.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions public/images/facebook-logo-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/favorites.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/fitness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/food.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/gaming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/images/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/logout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/more.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions public/images/new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/physics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/preferences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/programming.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/signup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/site-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/travel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions public/images/twitter-logo-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/js/NavBar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import $ from 'jquery';

$(() => {
$('[data-toggle="offcanvas"]').on('click', () => {
$('.offcanvas-collapse').toggleClass('open');
});
});
Loading

0 comments on commit ec4fb79

Please sign in to comment.