-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
10 changed files
with
64 additions
and
95 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
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,12 +1,7 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class FancyHeader extends Component { | ||
<template> | ||
<div class="fancy-header d-flex mt-4 mb-3"> | ||
<span class="flex-grow-1"></span> | ||
<h2 class="fancy-title font-size-24">{{yield}}</h2> | ||
<span class="flex-grow-1"></span> | ||
</div> | ||
</template> | ||
} | ||
|
||
<template> | ||
<div class='fancy-header d-flex mt-4 mb-3'> | ||
<span class='flex-grow-1'></span> | ||
<h2 class='fancy-title font-size-24'>{{yield}}</h2> | ||
<span class='flex-grow-1'></span> | ||
</div> | ||
</template> |
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,13 +1,10 @@ | ||
import Component from '@glimmer/component'; | ||
import { svgJar } from 'ember-svg-jar/helpers/svg-jar'; | ||
import { Hyphenate } from '../helpers/hyphenate'; | ||
|
||
export default class Icon extends Component { | ||
<template> | ||
{{svgJar | ||
(Hyphenate @icon) | ||
height='1em' | ||
style='max-width: 100%; transform: translateY(-2px)' | ||
}} | ||
</template> | ||
} | ||
<template> | ||
{{svgJar | ||
(Hyphenate @icon) | ||
height='1em' | ||
style='max-width: 100%; transform: translateY(-2px)' | ||
}} | ||
</template> |
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 |
---|---|---|
@@ -1,21 +1,14 @@ | ||
import Component from '@glimmer/component'; | ||
import MarkdownToHtml from 'ember-cli-showdown/components/markdown-to-html'; | ||
import FaIcon from '@fortawesome/ember-fontawesome/components/fa-icon'; | ||
import { FormatDate } from 'netrunnerdb/helpers/format-date'; | ||
|
||
export default class ReviewCommentComponent extends Component { | ||
<template> | ||
<div class='comment secondary'> | ||
<div class='comment-content'> | ||
<div class='user-content'> | ||
Review sucks. | ||
</div> | ||
</div> | ||
<div class='comment-meta'> | ||
— | ||
<span class='anarch'>AntiAms</span> | ||
31 Jul 2022 | ||
<template> | ||
<div class='comment secondary'> | ||
<div class='comment-content'> | ||
<div class='user-content'> | ||
Review sucks. | ||
</div> | ||
</div> | ||
</template> | ||
} | ||
<div class='comment-meta'> | ||
— | ||
<span class='anarch'>AntiAms</span> | ||
31 Jul 2022 | ||
</div> | ||
</div> | ||
</template> |
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,34 +1,30 @@ | ||
import Component from '@glimmer/component'; | ||
import Icon from './icon'; | ||
import MarkdownToHtml from 'ember-cli-showdown/components/markdown-to-html'; | ||
import { FormatDate } from 'netrunnerdb/helpers/format-date'; | ||
|
||
export default class RulingComponent extends Component { | ||
<template> | ||
<div class='ruling'> | ||
<div class='ruling-header'> | ||
{{#if @ruling.nsgRulesTeamVerified}} | ||
<span class='legality-verified'></span> | ||
{{else}} | ||
<span class='legality-unverified'></span> | ||
{{/if}} | ||
<span class='fst-italic ms-1 font-size-14'> | ||
Updated | ||
{{FormatDate @ruling.updatedAt}} | ||
</span> | ||
</div> | ||
{{#if @ruling.question}} | ||
<div class='ruling-question'> | ||
<MarkdownToHtml @markdown={{@ruling.question}} /> | ||
</div> | ||
<div class='ruling-answer mt-2'> | ||
<MarkdownToHtml @markdown={{@ruling.answer}} /> | ||
</div> | ||
<template> | ||
<div class='ruling'> | ||
<div class='ruling-header'> | ||
{{#if @ruling.nsgRulesTeamVerified}} | ||
<span class='legality-verified'></span> | ||
{{else}} | ||
<div class='ruling-text'> | ||
<MarkdownToHtml @markdown={{@ruling.textRuling}} /> | ||
</div> | ||
<span class='legality-unverified'></span> | ||
{{/if}} | ||
<span class='fst-italic ms-1 font-size-14'> | ||
Updated | ||
{{FormatDate @ruling.updatedAt}} | ||
</span> | ||
</div> | ||
</template> | ||
} | ||
{{#if @ruling.question}} | ||
<div class='ruling-question'> | ||
<MarkdownToHtml @markdown={{@ruling.question}} /> | ||
</div> | ||
<div class='ruling-answer mt-2'> | ||
<MarkdownToHtml @markdown={{@ruling.answer}} /> | ||
</div> | ||
{{else}} | ||
<div class='ruling-text'> | ||
<MarkdownToHtml @markdown={{@ruling.textRuling}} /> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</template> |
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,25 +1,20 @@ | ||
import Component from '@glimmer/component'; | ||
import Icon from './icon'; | ||
|
||
class Titlebar extends Component { | ||
<template> | ||
<div class='titlebar'> | ||
<div class='container'> | ||
<div class='row'> | ||
<div class='col-5'> | ||
<div class='title font-size-16'>{{@title}}</div> | ||
<div class='subtitle font-size-28 fw-600'> | ||
{{@subtitle}} | ||
{{#if @icon}}<Icon @icon={{@icon}} />{{/if}} | ||
</div> | ||
</div> | ||
<div class='col-7 position-relative'> | ||
{{yield}} | ||
<template> | ||
<div class='titlebar'> | ||
<div class='container'> | ||
<div class='row'> | ||
<div class='col-5'> | ||
<div class='title font-size-16'>{{@title}}</div> | ||
<div class='subtitle font-size-28 fw-600'> | ||
{{@subtitle}} | ||
{{#if @icon}}<Icon @icon={{@icon}} />{{/if}} | ||
</div> | ||
</div> | ||
<div class='col-7 position-relative'> | ||
{{yield}} | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
} | ||
|
||
export default Titlebar; | ||
</div> | ||
</template> |