Skip to content

Commit 393a521

Browse files
committed
header & footer 追加
1 parent f813c16 commit 393a521

File tree

7 files changed

+51
-228
lines changed

7 files changed

+51
-228
lines changed

Diff for: client/app.tag

+12-32
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,13 @@
1-
require('./components/layouts/basic-layout.tag')
2-
3-
// require('./components/layouts/home-layout.tag');
4-
// <app>
5-
// <basic-layout if="{{isHome}}" />
6-
// <home-layout if="{{!isHome}}" />
7-
// <script type="es6">
8-
// this.isHome = !!window.location.hash.replace('#', '');
9-
// riot.route((collection, id, action)=> {
10-
// this.update({isHome:!!collection})
11-
// });
12-
// </script>
13-
// </app>
14-
151
app
16-
div.mdl-layout.mdl-js-layout
17-
header.mdl-layout__header.mdl-layout__header--scroll
18-
div.mdl-layout__header-row
19-
span.mdl-layout-title OthloCalendar
20-
div.mdl-layout-spacer
21-
nav.mdl-navigation
22-
a.mdl-navigation__link(href='#about') about
23-
a.mdl-navigation__link(href='#feature') 特徴
24-
a.mdl-navigation__link(href='#function') 機能
25-
div.mdl-layout__drawer
26-
span.mdl-layout-title OthloCalendar
27-
nav.mdl-navigation
28-
a.mdl-navigation__link(href='#about') about
29-
a.mdl-navigation__link(href='#feature') 特徴
30-
a.mdl-navigation__link(href='#function') 機能
31-
main.mdl-layout__content
32-
div.page-content
33-
h1 ここにいろいろ書いていく
2+
othlo-header
3+
main.othlo-layout.mdl-layout__content
4+
div.page-content
5+
h1 ここにいろいろ書いていく
6+
othlo-footer
7+
8+
script.
9+
const riot = require('riot')
10+
require('./components/layouts/othlo-footer.tag')
11+
require('./components/layouts/othlo-header.tag')
12+
riot.mount('othlo-header')
13+
riot.mount('othlo-footer')

Diff for: client/components/layouts/basic-layout.scss

-188
This file was deleted.

Diff for: client/components/layouts/basic-layout.tag

-4
This file was deleted.

Diff for: client/components/layouts/othlo-footer.tag

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
othlo-footer
2+
footer.mdl-mega-footer
3+
div.mdl-mega-footer__middle-section
4+
input.mdl-mega-footer__heading-checkbox(type='checkbod' checked)
5+
h1.mdl-mega-footer__heading 特徴
6+
ul.mdl-mega-footer__link-list
7+
li
8+
a(href='#') About
9+
li
10+
a(href='#') Terms
11+
li
12+
a(href='#') Updates
13+
div.mdl-mega-footer__bottom-section
14+
div.mdl-logo OthloCalendar
15+
ul.mdl-mega-footer__link-list
16+
li
17+
a(href='#') Help
18+
li
19+
a(href='#') Privacy & Terms

Diff for: client/components/layouts/othlo-header.tag

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
othlo-header
2+
div.mdl-layout.mdl-js-layout.mdl-layout--fixed-header
3+
header.mdl-layout__header.mdl-layout__header--waterfall
4+
div.mdl-layout__header-row
5+
span.othlo-title.mdl-layout-title OthloCalendar
6+
div.mdl-layout-spacer
7+
nav.mdl-navigation
8+
a.mdl-navigation__link(href='#about') about
9+
a.mdl-navigation__link(href='#feature') 特徴
10+
a.mdl-navigation__link(href='#function') 機能
11+
a.mdl-navigation__link(href='#example') 例
12+
div.mdl-layout__drawer
13+
span.mdl-layout-title OthloCalendar
14+
nav.mdl-navigation
15+
a.mdl-navigation__link(href='#about') about
16+
a.mdl-navigation__link(href='#feature') 特徴
17+
a.mdl-navigation__link(href='#function') 機能
18+
a.mdl-navigation__link(href='#example') 例

Diff for: client/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use strict'
2-
//require('riot-mui')
32
const riot = require('riot')
43
require('./app.tag')
54

6-
riot.settings.brackets = '{{ }}'
75
riot.mount('*')
86

97
// Router

Diff for: client/stylesheets/style.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
h1 {
2-
color: red;
1+
.othlo-layout {
2+
margin-top: 64px;
33
}

0 commit comments

Comments
 (0)