Merge pull request #21 from yuki540net/feature/history-page
Feature/history page
This commit is contained in:
commit
ea0a1bab98
BIN
public/images/history/v1.png
Normal file
BIN
public/images/history/v1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
public/images/history/v2.png
Normal file
BIN
public/images/history/v2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 231 KiB |
BIN
public/images/history/v3.png
Normal file
BIN
public/images/history/v3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 272 KiB |
BIN
public/images/history/v4.png
Normal file
BIN
public/images/history/v4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 149 KiB |
BIN
public/images/history/v5.png
Normal file
BIN
public/images/history/v5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@ -425,6 +425,7 @@
|
|||||||
<div></div><div></div><div></div><div></div>
|
<div></div><div></div><div></div><div></div>
|
||||||
<h2>このサイトの歴史</h2>
|
<h2>このサイトの歴史</h2>
|
||||||
</section>
|
</section>
|
||||||
|
<history-box />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!--**** product ****-->
|
<!--**** product ****-->
|
||||||
|
|||||||
@ -2,9 +2,10 @@ import riot from 'riot'
|
|||||||
import route from 'riot-route'
|
import route from 'riot-route'
|
||||||
import * as util from './lib/util'
|
import * as util from './lib/util'
|
||||||
import preload_json from './config/preload'
|
import preload_json from './config/preload'
|
||||||
|
import history_json from './config/history'
|
||||||
|
|
||||||
// components
|
// components
|
||||||
import './components/app.tag'
|
import './components/history-box.tag'
|
||||||
|
|
||||||
// init
|
// init
|
||||||
util.setRingSize()
|
util.setRingSize()
|
||||||
@ -18,4 +19,4 @@ util.startLoading(() => {
|
|||||||
}, data => {})
|
}, data => {})
|
||||||
})
|
})
|
||||||
|
|
||||||
riot.mount('app')
|
riot.mount('history-box', { historys: history_json })
|
||||||
|
|||||||
10
src/scripts/components/history-box.tag
Normal file
10
src/scripts/components/history-box.tag
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<history-box>
|
||||||
|
<div class="history-box">
|
||||||
|
<section each={ history, key in opts.historys }>
|
||||||
|
<p class="version">{ "version_" + history.version }</p>
|
||||||
|
<h4 class="title">{ history.title }</h4>
|
||||||
|
<img src={ history.thumb } alt={ history.title } />
|
||||||
|
<a href={ history.link } target="_blank">{ "v" + history.version + "を見る" }</a>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</history-box>
|
||||||
32
src/scripts/config/history.js
Normal file
32
src/scripts/config/history.js
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
57
src/scss/modules/pc/history-page.scss
Normal file
57
src/scss/modules/pc/history-page.scss
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
@include pc-layout {
|
||||||
|
.history-page {
|
||||||
|
|
||||||
|
.history-box {
|
||||||
|
width: 600px;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 50px;
|
||||||
|
|
||||||
|
section {
|
||||||
|
width: 90%;
|
||||||
|
margin: 20px auto;
|
||||||
|
padding: 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: dashed 1px $theme-purple;
|
||||||
|
border-radius: 10px;
|
||||||
|
|
||||||
|
.version {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $theme-light-purple;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
text-align: center;
|
||||||
|
padding: 6px 0;
|
||||||
|
color: #fff;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: $theme-light-purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
width: 200px; height: 40px;
|
||||||
|
margin: 0 auto;
|
||||||
|
border: dashed 2px $theme-light-purple;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: $theme-purple;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 40px;
|
||||||
|
margin-top: 20px;
|
||||||
|
transition: all 0.35s ease 0s;
|
||||||
|
}
|
||||||
|
a:hover { background-color: $theme-purple; color: $theme-bg; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
src/scss/modules/sp/history-page.scss
Normal file
55
src/scss/modules/sp/history-page.scss
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
@include sp-layout {
|
||||||
|
.history-page {
|
||||||
|
|
||||||
|
.history-box {
|
||||||
|
margin-top: 50px;
|
||||||
|
|
||||||
|
section {
|
||||||
|
width: 90%;
|
||||||
|
margin: 20px auto;
|
||||||
|
padding: 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: dashed 1px $theme-purple;
|
||||||
|
border-radius: 10px;
|
||||||
|
|
||||||
|
.version {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $theme-light-purple;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 15px;
|
||||||
|
text-align: center;
|
||||||
|
padding: 6px 0;
|
||||||
|
color: #fff;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: $theme-light-purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
width: 180px; height: 35px;
|
||||||
|
margin: 0 auto;
|
||||||
|
border: dashed 2px $theme-light-purple;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: $theme-purple;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 35px;
|
||||||
|
margin-top: 20px;
|
||||||
|
transition: all 0.35s ease 0s;
|
||||||
|
}
|
||||||
|
a:hover { background-color: $theme-purple; color: $theme-bg; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
src/scss/modules/tablet/history-page.scss
Normal file
55
src/scss/modules/tablet/history-page.scss
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
@include tablet-layout {
|
||||||
|
.history-page {
|
||||||
|
|
||||||
|
.history-box {
|
||||||
|
margin-top: 50px;
|
||||||
|
|
||||||
|
section {
|
||||||
|
width: 90%;
|
||||||
|
margin: 20px auto;
|
||||||
|
padding: 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border: dashed 1px $theme-purple;
|
||||||
|
border-radius: 10px;
|
||||||
|
|
||||||
|
.version {
|
||||||
|
font-size: 14px;
|
||||||
|
color: $theme-light-purple;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
text-align: center;
|
||||||
|
padding: 6px 0;
|
||||||
|
color: #fff;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: $theme-light-purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
width: 200px; height: 40px;
|
||||||
|
margin: 0 auto;
|
||||||
|
border: dashed 2px $theme-light-purple;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: $theme-purple;
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 40px;
|
||||||
|
margin-top: 20px;
|
||||||
|
transition: all 0.35s ease 0s;
|
||||||
|
}
|
||||||
|
a:hover { background-color: $theme-purple; color: $theme-bg; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user