-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vuex & begin to add ColorMode component
- Loading branch information
1 parent
87ac8b6
commit e64bedf
Showing
4 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
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,29 @@ | ||
<template> | ||
<fieldset class="pa0 ma0 mb5 bn measure center"> | ||
<legend class="f6 ttu tracked black-30 mb2">Colour Mode</legend> | ||
|
||
<div class="drop-shadow flex items-center pa3 pa4-ns bg-white br1 overflow-hidden"> | ||
<label | ||
v-for="(m, index) in modes" | ||
:key="index" | ||
class="flex items-center mv2 mr3 lh-solid pointer" | ||
> | ||
<input v-model="mode" :value="m.toLowerCase()" class="mr2" type="radio" name="mode"> | ||
<span class="f7 f6-ns tracked">{{ m }}</span> | ||
</label> | ||
</div> | ||
</fieldset> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
modes: ['RGB', 'Lab', 'HSL', 'Lch'], | ||
} | ||
}, | ||
} | ||
</script> | ||
|
||
<style> | ||
</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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Vuex from 'vuex' | ||
|
||
const createStore = () => { | ||
return new Vuex.Store({ | ||
state: { | ||
version: () => process.env.VERSION, | ||
colorMode: 'lab', | ||
}, | ||
mutations: {}, | ||
}) | ||
} | ||
|
||
export default createStore |