-
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.
Feature: add footer, sidetag for feedback form (#48)
* add footer, sidetag for feedback form * add envar to test * use default feedback form url if not exist in env * move the tag down on mobile to unobstruct bridge card
- Loading branch information
1 parent
405704d
commit 48a5754
Showing
13 changed files
with
132 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type React from "react"; | ||
|
||
export default function Footer(): React.ReactElement { | ||
return ( | ||
<footer className="footer is-flex-align-items-flex-end mt-auto"> | ||
<div className="content has-text-centered"> | ||
<p> | ||
Powered by <a href="https://www.astria.org/">Astria</a> | ||
</p> | ||
</div> | ||
</footer> | ||
); | ||
} |
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,30 @@ | ||
import type React from "react"; | ||
|
||
interface SideTagProps { | ||
label: string; | ||
url: string; | ||
iconClass: string; | ||
} | ||
|
||
/** | ||
* SideTag component to render a side tag with an icon and label. | ||
* @param label | ||
* @param url | ||
* @param iconClass | ||
*/ | ||
export default function SideTag({ | ||
label, | ||
url, | ||
iconClass, | ||
}: SideTagProps): React.ReactElement { | ||
return ( | ||
<div className="side-tag"> | ||
<a href={url} target="_blank" rel="noreferrer" className="side-tag-link"> | ||
<span className="icon is-small"> | ||
<i className={`fas ${iconClass}`} /> | ||
</span> | ||
<span className="label">{label}</span> | ||
</a> | ||
</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
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,9 @@ | ||
@import 'astria-colors'; | ||
|
||
.footer { | ||
.content { | ||
a { | ||
color: $astria-orange-soft; | ||
} | ||
} | ||
} |
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,5 @@ | ||
@import 'astria-colors'; | ||
|
||
$footer-background-color: $astria-black; | ||
$footer-color: $astria-white; | ||
$footer-padding: 16px; |
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