diff --git a/public/images/history/v1.png b/public/images/history/v1.png new file mode 100644 index 0000000..6880d18 Binary files /dev/null and b/public/images/history/v1.png differ diff --git a/public/images/history/v2.png b/public/images/history/v2.png new file mode 100644 index 0000000..42ad069 Binary files /dev/null and b/public/images/history/v2.png differ diff --git a/public/images/history/v3.png b/public/images/history/v3.png new file mode 100644 index 0000000..5e55ff8 Binary files /dev/null and b/public/images/history/v3.png differ diff --git a/public/images/history/v4.png b/public/images/history/v4.png new file mode 100644 index 0000000..dea0c57 Binary files /dev/null and b/public/images/history/v4.png differ diff --git a/public/images/history/v5.png b/public/images/history/v5.png new file mode 100644 index 0000000..0b7ecc4 Binary files /dev/null and b/public/images/history/v5.png differ diff --git a/public/index.html b/public/index.html index 1ef9a1a..820f206 100644 --- a/public/index.html +++ b/public/index.html @@ -425,6 +425,7 @@

このサイトの歴史

+ diff --git a/src/scripts/app.js b/src/scripts/app.js index df34437..a82586a 100644 --- a/src/scripts/app.js +++ b/src/scripts/app.js @@ -2,9 +2,10 @@ import riot from 'riot' import route from 'riot-route' import * as util from './lib/util' import preload_json from './config/preload' +import history_json from './config/history' // components -import './components/app.tag' +import './components/history-box.tag' // init util.setRingSize() @@ -18,4 +19,4 @@ util.startLoading(() => { }, data => {}) }) -riot.mount('app') +riot.mount('history-box', { historys: history_json }) diff --git a/src/scripts/components/history-box.tag b/src/scripts/components/history-box.tag new file mode 100644 index 0000000..860cae9 --- /dev/null +++ b/src/scripts/components/history-box.tag @@ -0,0 +1,10 @@ + +
+
+

{ "version_" + history.version }

+

{ history.title }

+ { + { "v" + history.version + "を見る" } +
+
+
diff --git a/src/scripts/config/history.js b/src/scripts/config/history.js new file mode 100644 index 0000000..69de81b --- /dev/null +++ b/src/scripts/config/history.js @@ -0,0 +1,32 @@ +export default [ + { + "version": "1.0.0", + "title": "幻想", + "thumb": "./images/history/v1.png", + "link": "http://v1.yuki540.com" + }, + { + "version": "2.0.0", + "title": "サテラ", + "thumb": "./images/history/v2.png", + "link": "http://v2.yuki540.com" + }, + { + "version": "3.0.0", + "title": "結衣", + "thumb": "./images/history/v3.png", + "link": "http://v3.yuki540.com" + }, + { + "version": "4.0.0", + "title": "共依存", + "thumb": "./images/history/v4.png", + "link": "http://v4.yuki540.com" + }, + { + "version": "5.0.0", + "title": "ヒトリゴト", + "thumb": "./images/history/v5.png", + "link": "http://v5.yuki540.com" + } +]