-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e911786
commit fac40d4
Showing
8 changed files
with
78 additions
and
356 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
export default { | ||
data() { | ||
return { | ||
}; | ||
} | ||
}, | ||
}; | ||
</script> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,61 @@ | ||
<template> | ||
<div> | ||
Failed! | ||
<div class="wrapper"> | ||
<div class="slogan">已經是 .... 極限了嗎?</div> | ||
<p class="score_wording">{{score.success}} / {{flags.length}}</p> | ||
<md-button to="/" class="restart_btn">Restart</md-button> | ||
<img src="../assets/kumamon.png" alt=""> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapState } from 'vuex'; | ||
export default { | ||
name: 'Failed', | ||
computed: { | ||
...mapState({ | ||
score: ({ score }) => score, | ||
flags: ({ flags }) => flags, | ||
}), | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
position: relative; | ||
} | ||
.slogan { | ||
font-size: 2rem; | ||
margin-bottom: 1rem; | ||
} | ||
.score_wording { | ||
font-size: 2rem; | ||
font-weight: bolder; | ||
} | ||
.restart_btn { | ||
cursor: pointer; | ||
font-size: 1.2rem; | ||
background: #2ab6fb !important; | ||
border-radius: 5px; | ||
color: white; | ||
font-weight: bolder; | ||
cursor: pointer; | ||
padding: 16px 20px; | ||
text-align: center; | ||
height: 50px; | ||
border-radius: 5px; | ||
margin-bottom: 4rem; | ||
} | ||
img { | ||
position: absolute; | ||
bottom: -5px; | ||
width: 360px; | ||
} | ||
</style> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
<template> | ||
<div class="container"> | ||
<img src="https://www.twicon.page/imgs/about_version.png" alt="TW Icon Game"> | ||
<img src="https://www.twicon.page/imgs/about_version.png" alt="TW Icon Game" /> | ||
<h1 class="md-display-6">The 100 icons of Taiwan</h1> | ||
<select-game-type></select-game-type> | ||
<select-game-type /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
// Imported components | ||
import SelectGameType from '@/components/SelectGameType.vue'; | ||
export default { | ||
// Component name | ||
name: 'App', | ||
// Imported components | ||
components: { | ||
SelectGameType, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.container{ | ||
text-align: center; | ||
background: #D9F2E7; | ||
} | ||
img { | ||
display: inline-block; | ||
max-width: 72%; | ||
} | ||
.container { | ||
text-align: center; | ||
background: #d9f2e7; | ||
} | ||
img { | ||
display: inline-block; | ||
max-width: 72%; | ||
} | ||
</style> |