-
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.
- Loading branch information
1 parent
9416920
commit ea577d8
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
apps/lab/app/experiments/[experiment]/SourceButton.module.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 @@ | ||
.sourceButton { | ||
position: fixed; | ||
bottom: 2rem; | ||
right: 2rem; | ||
cursor: pointer; | ||
background-color: white; | ||
box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.65); | ||
|
||
width: 3rem; | ||
height: 3rem; | ||
border-radius: 50%; | ||
|
||
display: grid; | ||
place-items: center; | ||
|
||
transform: scale(1); | ||
transition: transform 0.2s ease-in-out; | ||
|
||
&:hover { | ||
transform: scale(1.125); | ||
} | ||
|
||
a { | ||
// font-family: $sans-serif; | ||
color: black; | ||
font-weight: light; | ||
text-decoration: none; | ||
} | ||
} |
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,15 @@ | ||
import styles from "./SourceButton.module.scss"; | ||
|
||
export function SourceButton(props: { experiment: string }) { | ||
return ( | ||
<div className={styles.sourceButton}> | ||
<a | ||
rel="noreferrer" | ||
target="_blank" | ||
href={`https://github.com/JMBeresford/lab-2023/tree/main/experiments/${props.experiment}`} | ||
> | ||
{"</>"} | ||
</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