-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Choice Grid - Simple Navigation - Story Page - Story Header - Waiting Bar Plus prototype updates.
- Loading branch information
Showing
41 changed files
with
1,355 additions
and
307 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
29 changes: 29 additions & 0 deletions
29
src/components/sharpen-choice-grid/sharpen-choice-grid.scss
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 @@ | ||
sharpen-choice-grid { | ||
display: grid; | ||
gap: 1em; | ||
grid-template-columns: repeat(2, 1fr); | ||
font-weight: bold; | ||
font-size: 18pt; | ||
text-align: center; | ||
|
||
&[layout="column"] { | ||
display: flex; | ||
flex-direction: column; | ||
text-align: left; | ||
font-weight: normal; | ||
font-size: 24pt; | ||
} | ||
|
||
a { | ||
--animate-duration: 1.5s; | ||
text-decoration: none; | ||
} | ||
|
||
a img { | ||
max-width: 100%; | ||
} | ||
|
||
a.highlight sharpen-card, a:hover sharpen-card { | ||
background-color: var(--color-sky); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/components/sharpen-choice-grid/sharpen-choice-grid.tsx
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,18 @@ | ||
import { Component, Host, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'sharpen-choice-grid', | ||
styleUrl: 'sharpen-choice-grid.scss', | ||
}) | ||
export class SharpenChoiceGrid { | ||
|
||
render() { | ||
|
||
return ( | ||
<Host> | ||
<slot></slot> | ||
</Host> | ||
); | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/components/sharpen-simple-navigation/sharpen-simple-navigation.scss
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,21 @@ | ||
sharpen-simple-navigation { | ||
.navbar { | ||
height: 4.5rem; | ||
background-color: var(--color-mint); | ||
color: var(--color-evergreen); | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
--mask: | ||
linear-gradient(to top,#0000 10px,#000 0), | ||
radial-gradient(10px,#000 98%,#0000) bottom/18.5px 20px; | ||
-webkit-mask: var(--mask); | ||
mask: var(--mask); | ||
} | ||
|
||
.navbar .brand img { height: 31px; } | ||
|
||
&[background="sunrise"] .navbar { | ||
background-color: var(--color-sunrise); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/components/sharpen-simple-navigation/sharpen-simple-navigation.tsx
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,26 @@ | ||
import { Component, Prop, Host, getAssetPath, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'sharpen-simple-navigation', | ||
styleUrl: 'sharpen-simple-navigation.scss', | ||
}) | ||
export class SharpenSimpleNavigation { | ||
|
||
@Prop() background: string; | ||
@Prop() brandHref: string; | ||
|
||
render() { | ||
|
||
// Logo mark without the text | ||
const markSrc = getAssetPath('assets/images/brand/sharpen_mark_evergreen.png'); | ||
|
||
return ( | ||
<Host> | ||
<div class="navbar container-fluid"> | ||
<a class="brand" href={this.brandHref}><img src={markSrc} /></a> | ||
</div> | ||
</Host> | ||
); | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/components/sharpen-story-header/sharpen-story-header.scss
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,8 @@ | ||
sharpen-story-header { | ||
display: block; | ||
text-align: center; | ||
margin: 0 0 var(--spacing-lg) 0; | ||
|
||
img { height: 12rem; } | ||
.sharpen-icon { font-size: 64pt; color: var(--color-red); } | ||
} |
18 changes: 18 additions & 0 deletions
18
src/components/sharpen-story-header/sharpen-story-header.tsx
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,18 @@ | ||
import { Component, Host, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'sharpen-story-header', | ||
styleUrl: 'sharpen-story-header.scss', | ||
}) | ||
export class SharpenStoryHeader { | ||
|
||
render() { | ||
|
||
return ( | ||
<Host> | ||
<slot></slot> | ||
</Host> | ||
); | ||
} | ||
|
||
} |
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,27 @@ | ||
sharpen-story-page { | ||
display: block; | ||
padding: 0 0 1em 0; | ||
box-shadow: rgba(0,0,0,0.5) 0 1em 3em; | ||
|
||
.content { | ||
padding: var(--spacing-lg); | ||
color: var(--color-pine); | ||
} | ||
|
||
&[content-mode="sentence"] .content { font-size: 28pt; } | ||
&[content-mode="paragraph"] .content { font-size: 14pt; line-height: 1.5; } | ||
&[content-mode="paragraph"] .story-footer { height: 12rem; } | ||
|
||
.story-footer { | ||
height: 18rem; | ||
background-size: 100%; | ||
background-repeat: no-repeat; | ||
background-position: bottom; | ||
|
||
img { | ||
height: 12rem; | ||
margin-top: 5rem; | ||
} | ||
} | ||
|
||
} |
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,49 @@ | ||
import { Component, Prop, Host, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'sharpen-story-page', | ||
styleUrl: 'sharpen-story-page.scss', | ||
}) | ||
export class SharpenStoryPage { | ||
|
||
@Prop() contentMode: string; | ||
@Prop() backgroundSrc: string; | ||
@Prop() characterSrc: string; | ||
|
||
render() { | ||
|
||
return ( | ||
<Host> | ||
<div class="content"> | ||
<slot></slot> | ||
</div> | ||
<div class={this.getFooterClasses()} style={this.getBackgroundStyle()}> | ||
{this.getCharacterImg()} | ||
</div> | ||
</Host> | ||
); | ||
} | ||
|
||
getFooterClasses() { | ||
return { | ||
"story-footer": true, | ||
"with-background": this.backgroundSrc && this.backgroundSrc.length > 0, | ||
"with-character": this.characterSrc && this.characterSrc.length > 0, | ||
} | ||
} | ||
|
||
getBackgroundStyle() { | ||
if (this.backgroundSrc) { | ||
return { "background-image": 'url(' + this.backgroundSrc + ')' }; | ||
} | ||
} | ||
|
||
getCharacterImg() { | ||
if (this.characterSrc) { | ||
return ( | ||
<img src={this.characterSrc} /> | ||
) | ||
} | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/components/sharpen-waiting-bar/sharpen-waiting-bar.scss
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,27 @@ | ||
sharpen-waiting-bar { | ||
display: block; | ||
padding: 6px; | ||
background: white; | ||
border-radius: 6px; | ||
border: 1px solid #ccc; | ||
|
||
.bar { | ||
height: 18px; | ||
border-radius: 4px; | ||
transition: 0.4s linear; | ||
transition-property: width, background-color; | ||
background-color: var(--color-mint); | ||
width: 100%; | ||
background-image: linear-gradient( | ||
45deg, var(--color-pine) 25%, | ||
transparent 25%, transparent 50%, | ||
var(--color-pine) 50%, var(--color-pine) 75%, | ||
transparent 75%, transparent); | ||
animation: progressAnimationStrike 12s; | ||
} | ||
|
||
@keyframes progressAnimationStrike { | ||
from { width: 0 } | ||
to { width: 100% } | ||
} | ||
} |
Oops, something went wrong.