Skip to content

Commit

Permalink
feat: Add simple footer
Browse files Browse the repository at this point in the history
- Fixes #3
  • Loading branch information
MichalBryxi committed Sep 25, 2024
1 parent 13d8636 commit c1f496a
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
25 changes: 25 additions & 0 deletions app/components/footer/index.gjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Component from '@glimmer/component';
import GitHubLogo from 'ember-phosphor-icons/components/ph-github-logo';
import LinkedInLogo from 'ember-phosphor-icons/components/ph-linkedin-logo';
import { t } from 'ember-intl';

export default class OpenToFiles extends Component {
<template>
<a
href='https://github.com/MichalBryxi/open-to-dot-dot-dot'
class='pr-6 text-gray-500 hover:text-black'
target='_blank'
>
<GitHubLogo class='inline' />
{{t 'footer.github'}}
</a>
<a
href='https://www.linkedin.com/posts/courtneysummer_desperate-opentowork-opentowork-activity-7241410975193513984-vexX?utm_source=share&utm_medium=member_desktop'
class='pr-6 text-gray-500 hover:text-black'
target='_blank'
>
<LinkedInLogo class='inline' />
{{t 'footer.linked-in'}}
</a>
</template>
}
5 changes: 5 additions & 0 deletions app/components/open-to/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { t } from 'ember-intl';
import OpenToFiles from './files';
import OpenToToggles from './toggles';
import OpenToExport from './export';
import Footer from '../footer';

export default class OpenTo extends Component {
<template>
Expand Down Expand Up @@ -38,6 +39,10 @@ export default class OpenTo extends Component {
<div class='px-4 py-5 sm:px-6'>
<OpenToExport />
</div>

<div class='px-4 py-5 sm:px-6'>
<Footer />
</div>
</div>

</div>
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,8 @@
"exports": {
"./tests/*": "./tests/*",
"./*": "./app/*"
},
"dependencies": {
"ember-phosphor-icons": "^0.3.0"
}
}
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ toggles:
colour-stop: Colour stop
export:
button: Export
footer:
github: GitHub
linked-in: Original LinkedIn post

0 comments on commit c1f496a

Please sign in to comment.