-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Guillaume Chau
committed
Mar 5, 2018
1 parent
ac50b82
commit 45e3c82
Showing
15 changed files
with
318 additions
and
28 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,77 @@ | ||
<template> | ||
<div | ||
class="project-preset-item" | ||
:class="{ | ||
selected | ||
}" | ||
> | ||
<div class="content"> | ||
<div | ||
class="radio-icon" | ||
> | ||
<VueIcon | ||
:icon="selected ? 'radio_button_checked' : 'radio_button_unchecked'" | ||
class="medium" | ||
/> | ||
</div> | ||
<div class="name">{{ preset.name }}</div> | ||
<div class="description">{{ preset.description }}</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
preset: { | ||
type: Object, | ||
required: true | ||
}, | ||
selected: { | ||
type: Boolean, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="stylus" scoped> | ||
@import "~@/style/imports" | ||
.project-preset-item | ||
padding 12px | ||
padding-left 0 | ||
user-select none | ||
cursor pointer | ||
.content | ||
display grid | ||
grid-template-columns 64px auto | ||
grid-template-rows 24px 24px | ||
grid-template-areas "icon name" "icon description" | ||
.radio-icon | ||
h-box() | ||
box-center() | ||
grid-area icon | ||
.name | ||
grid-area name | ||
.description | ||
grid-area description | ||
color lighten($vue-color-dark, 40%) | ||
&.selected | ||
background rgba($vue-color-primary, .05) | ||
.radio-icon | ||
>>> svg | ||
fill $vue-color-primary | ||
.name | ||
color $vue-color-primary | ||
&:hover | ||
background rgba($vue-color-primary, .1) | ||
</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
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,6 @@ | ||
fragment preset on Preset { | ||
id | ||
name | ||
description | ||
features | ||
} |
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,7 @@ | ||
#import "./projectCreationFragment.gql" | ||
|
||
query projectCreation { | ||
projectCreation { | ||
...projectCreation | ||
} | ||
} |
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,7 @@ | ||
#import "./presetFragment.gql" | ||
|
||
fragment projectCreation on ProjectCreation { | ||
presets { | ||
...preset | ||
} | ||
} |
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,7 @@ | ||
#import "./projectCreationFragment.gql" | ||
|
||
mutation projectInitCreate { | ||
projectInitCreate { | ||
...projecCreation | ||
} | ||
} |
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 |
---|---|---|
|
@@ -20,3 +20,8 @@ body, | |
|
||
> * | ||
space-between-x(12px) | ||
|
||
.cta-text | ||
margin 12px | ||
color lighten($vue-color-dark, 40%) | ||
font-size 18px |
Oops, something went wrong.