-
Notifications
You must be signed in to change notification settings - Fork 2
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 #8 from astronomersiva/more-components
More components
- Loading branch information
Showing
51 changed files
with
407 additions
and
765 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
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,11 @@ | ||
{{!-- template-lint-disable no-inline-styles --}} | ||
<div | ||
...attributes | ||
style={{this.style}} | ||
class=" | ||
bg-center | ||
bg-cover | ||
" | ||
> | ||
{{yield}} | ||
</div> |
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,23 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class BackgroundComponent extends Component { | ||
get style() { | ||
if (this.args.image) { | ||
return `background-image: url(${this.args.image})`; | ||
} | ||
|
||
if (this.args.color) { | ||
return `background-color: ${this.args.color}`; | ||
} | ||
|
||
if (this.args.gradient) { | ||
return `background-image: linear-gradient(${this.args.gradient})`; | ||
} | ||
|
||
if (this.args.radialGradient) { | ||
return `background-image: radial-gradient(${this.args.radialGradient})`; | ||
} | ||
|
||
return `background-color: black`; | ||
} | ||
} |
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,10 @@ | ||
{{#let (get-code-snippet @snippet) as |snippet|}} | ||
{{!-- ember-prism renders an empty string if an unsupported language is passed --}} | ||
{{#if this.language}} | ||
<CodeBlock | ||
@language={{this.language}} | ||
@code={{snippet.source}} /> | ||
{{else}} | ||
<CodeBlock @code={{snippet.source}} /> | ||
{{/if}} | ||
{{/let}} |
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,17 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class CodeComponent extends Component { | ||
get language() { | ||
let snippet = this.args.snippet; | ||
let languages = { | ||
js: 'javascript', | ||
html: 'html', | ||
// while this is supported by prism, | ||
// ember-prism is returning an empty string, need to check | ||
// hbs: 'handlebars' | ||
}; | ||
|
||
let extension = snippet.split('.').pop(); | ||
return languages[extension] || ''; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
<div | ||
...attributes | ||
class="relative flex flex-col min-h-screen w-full md:w-1/4 border-gray-300 border-4"> | ||
<Controls::SlideNotes @notes={{@notes}} /> | ||
|
||
<div class="flex flex-col flex-grow w-full bg-gray-200 border-gray-300 border-t-2"> | ||
<Controls::Navigation /> | ||
|
||
<div class="flex flex-row flex-grow items-center"> | ||
<Controls::FullScreen @speaker={{true}} /> | ||
<Controls::PresentationView /> | ||
<Controls::AdjacentSlidesToggle /> | ||
<Controls::Clock /> | ||
<Controls::Pause /> | ||
</div> | ||
</div> | ||
</div> |
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 @@ | ||
{{#let (concat "slides/slide-" @slide) as |Slide|}} | ||
<Slide | ||
@speaker={{@speaker}} | ||
class=" | ||
{{concat "slide-" @slide}} | ||
{{if @speaker "hidden md:flex w-3/4" "flex"}} | ||
{{if @isExport "min-h-full"}} | ||
" as |slide| | ||
> | ||
{{#if @speaker}} | ||
{{#unless @hasStarted}} | ||
<div class="timer-overlay w-full md:w-3/4 md:h-full bottom-26 md:top-0"> | ||
<button class="underline" {{on "click" @startTicking}}>Start Presentation</button> | ||
</div> | ||
{{/unless}} | ||
|
||
<Controls::AdjacentSlides /> | ||
<Controls::SpeakerControls @notes={{slide.notes}} /> | ||
{{/if}} | ||
</Slide> | ||
{{/let}} |
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,7 +1,11 @@ | ||
<div ...attributes> | ||
<Background | ||
class="border-none" | ||
@image="/images/lights.jpg" | ||
...attributes | ||
> | ||
<h1 class="text-6xl text-center text-gray-400 p-2"> | ||
ember-keynote | ||
</h1> | ||
</div> | ||
</Background> | ||
|
||
{{yield this}} |
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,5 +1,10 @@ | ||
<div ...attributes> | ||
<h1 class="text-black p-3 px-8 text-6xl rounded">Want to try this out?</h1> | ||
</div> | ||
<Background | ||
@image="/images/party.jpg" | ||
...attributes | ||
> | ||
<h1 class="text-black p-3 px-8 text-6xl rounded"> | ||
Want to try this out? | ||
</h1> | ||
</Background> | ||
|
||
{{yield this}} |
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,7 +1,8 @@ | ||
<div ...attributes> | ||
{{#let (get-code-snippet "slide.hbs") as |snippet|}} | ||
<CodeBlock @code={{snippet.source}} /> | ||
{{/let}} | ||
<div | ||
...attributes | ||
class="slide-bordered" | ||
> | ||
<Code @snippet="slide.hbs" /> | ||
</div> | ||
|
||
{{yield this}} |
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,7 +1,8 @@ | ||
<div ...attributes> | ||
{{#let (get-code-snippet "slide.js") as |snippet|}} | ||
<CodeBlock @language="javascript" @code={{snippet.source}} /> | ||
{{/let}} | ||
<div | ||
...attributes | ||
class="slide-bordered" | ||
> | ||
<Code @snippet="slide.js" /> | ||
</div> | ||
|
||
{{yield this}} |
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,5 +1,10 @@ | ||
<div ...attributes> | ||
<h1 class="text-black p-3 px-8 text-6xl rounded">Thank you!</h1> | ||
</div> | ||
<Background | ||
@image="/images/clouds.jpg" | ||
...attributes | ||
> | ||
<h1 class="text-black p-3 px-8 text-6xl rounded"> | ||
Thank you! | ||
</h1> | ||
</Background> | ||
|
||
{{yield this}} |
This file was deleted.
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
Oops, something went wrong.