This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html | |
head | |
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" | |
meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" | |
title BasicApp | |
= favicon_link_tag | |
link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" | |
= stylesheet_link_tag 'admin/application', media: 'all', 'data-turbolinks-track' => true | |
= javascript_include_tag 'admin/application', 'data-turbolinks-track' => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::Admins::SessionsController < ::Devise::SessionsController | |
layout 'admin/layouts/application' | |
def after_sign_in_path_for(resource) | |
admin_root_path | |
end | |
def after_sign_out_path_for(resource) | |
new_admin_session_path | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::BaseController < ApplicationController | |
layout 'admin/layouts/application' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#welcome-index | |
.row | |
.col.s12.m9 | |
.section | |
#p-title.col.s12.scrollspy | |
h2.u-title Welcome | |
.col.s12 | |
p Fime me in app/views/member/welcome/index.html.slim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import 'materialize' | |
.toast | |
border-radius: 4px | |
html | |
font-family: 'Roboto', '游ゴシック', YuGothic, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif | |
#body | |
background-color: #fcfcfc | |
input:-webkit-autofill |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset 'UTF-8' | |
// Mixins | |
@import 'materialize/sass/components/prefixer' | |
@import 'materialize/sass/components/mixins' | |
@import 'materialize/sass/components/color' | |
// Customize | |
$roboto-font-path: '/assets/materialize/font/roboto/' | |
$toast-color: #e53935 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
*= require ./materialize | |
*= require wowjs/css/libs/animate | |
*= require ./base | |
*= require_tree . | |
*= require_self | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready -> | |
$('.button-collapse').sideNav() | |
rightNav = $('.u-right-nav') | |
if rightNav.length | |
rightNav.pushpin | |
top: rightNav.offset().top | |
$('.scrollspy').scrollSpy() |