-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from LucyLMM/master
visual and functional overhaul
- Loading branch information
Showing
410 changed files
with
22,762 additions
and
1,033 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -0,0 +1,188 @@ | ||
<template> | ||
<div class="modal"> | ||
<div | ||
class="backdrop" | ||
@click="cancel" | ||
/> | ||
<div class="contents"> | ||
<header class="header"> | ||
<em class="icon mdi mdi-information-outline" /> | ||
{{ " " + title + " " }} <em class="icon mdi mdi-github" /> | ||
</header> | ||
<section class="body"> | ||
<div class="item"> | ||
<span> | ||
{{ | ||
'A free, open-source and modern Chess Variant Analysis GUI for the 21 century' | ||
}} | ||
</span> | ||
</div> | ||
<div | ||
class="item" | ||
style="white-space: pre-line" | ||
> | ||
<span> | ||
{{ 'Version: 0.2.0' }} | ||
</span> | ||
</div> | ||
<div class="item"> | ||
<span> | ||
{{ 'License: AGPL-3.0' }} | ||
</span> | ||
</div> | ||
<div class="item"> | ||
<span> | ||
{{ 'Find our official' }} | ||
</span> | ||
<button | ||
class="btn aboutTab" | ||
@click="openGitHub" | ||
> | ||
GitHub | ||
</button> | ||
</div> | ||
<div class="item"> | ||
<span> | ||
{{ "Read more about our" }} | ||
</span> | ||
<button | ||
class="btn aboutTab" | ||
@click="openLicense" | ||
> | ||
License | ||
</button> | ||
</div> | ||
<div | ||
class="item" | ||
style="white-space: pre-line" | ||
> | ||
<span> | ||
{{ 'Our Authors:' }} | ||
</span> | ||
</div> | ||
<div class="item"> | ||
<span> | ||
{{ 'Johannes Czech' }} | ||
</span> | ||
</div> | ||
<div class="item"> | ||
<span> | ||
{{ | ||
'Laurin Bielich, Jannik Holmer, Peter Mader, Simon Muchau, Martin Ruzicka,' | ||
}} | ||
</span> | ||
</div> | ||
<div class="item"> | ||
<span> | ||
{{ | ||
'Daniel Creß, Samuel Gajdos, Gökay Karaahmetli, Lena-Marie Munderich, Leif Schwaß' | ||
}} | ||
</span> | ||
</div> | ||
</section> | ||
<footer class="footer"> | ||
<button | ||
type="button" | ||
class="btn aboutTab" | ||
@click="cancel" | ||
> | ||
Close | ||
</button> | ||
</footer> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { shell } from 'electron' | ||
export default { | ||
name: 'AboutTabModal', | ||
props: { | ||
title: { | ||
required: true, | ||
type: String | ||
} | ||
}, | ||
methods: { | ||
cancel () { | ||
this.$emit('close') | ||
}, | ||
openGitHub () { | ||
shell.openExternal('https://github.com/ml-research/liground') | ||
}, | ||
openLicense () { | ||
shell.openExternal( | ||
'https://github.com/ml-research/liground/blob/master/LICENSE' | ||
) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.modal { | ||
position: fixed; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 10; | ||
} | ||
.backdrop { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
z-index: -1; | ||
} | ||
.contents { | ||
display: flex; | ||
flex-direction: column; | ||
background: var(--second-bg-color); | ||
box-shadow: 2px 2px 20px 1px var(--second-bg-color); | ||
overflow-x: 10px; | ||
} | ||
.item { | ||
margin: 5px 0; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
font-size: 1em; | ||
} | ||
.item > * { | ||
margin: 0 10px; | ||
} | ||
.header { | ||
font-size: 20px; | ||
padding: 20px; | ||
display: flex; | ||
justify-content: space-between; | ||
border-bottom: 1px solid var(--main-border-color); | ||
color: var(--tab-header-color); | ||
user-select: none; | ||
} | ||
.footer { | ||
padding: 15px; | ||
display: flex; | ||
justify-content: center; | ||
border-top: 1px solid var(--main-border-color); | ||
user-select: none; | ||
} | ||
.btn { | ||
padding: 2px 3px; | ||
margin: 2px; | ||
border: none; | ||
border-radius: 2px; | ||
color: white; | ||
cursor: pointer; | ||
} | ||
.btn.aboutTab { | ||
background: var(--tab-btn-color); | ||
} | ||
</style> |
Oops, something went wrong.