-
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
Showing
6 changed files
with
164 additions
and
28 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
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,69 @@ | ||
--- | ||
import '../../styles/styles.scss' | ||
import '../../styles/globals.scss' | ||
const { label } = Astro.props; | ||
--- | ||
|
||
|
||
<button onclick="CopyLink()" id="genericButton"> | ||
<a id="linkButton"> | ||
<span id="textContents">Share this site</span> | ||
<svg data-slot="icon" aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> | ||
<path clip-rule="evenodd" d="M17.663 3.118c.225.015.45.032.673.05C19.876 3.298 21 4.604 21 6.109v9.642a3 3 0 0 1-3 3V16.5c0-5.922-4.576-10.775-10.384-11.217.324-1.132 1.3-2.01 2.548-2.114.224-.019.448-.036.673-.051A3 3 0 0 1 13.5 1.5H15a3 3 0 0 1 2.663 1.618ZM12 4.5A1.5 1.5 0 0 1 13.5 3H15a1.5 1.5 0 0 1 1.5 1.5H12Z" fill-rule="evenodd"></path> | ||
<path d="M3 8.625c0-1.036.84-1.875 1.875-1.875h.375A3.75 3.75 0 0 1 9 10.5v1.875c0 1.036.84 1.875 1.875 1.875h1.875A3.75 3.75 0 0 1 16.5 18v2.625c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625v-12Z"></path> | ||
<path d="M10.5 10.5a5.23 5.23 0 0 0-1.279-3.434 9.768 9.768 0 0 1 6.963 6.963 5.23 5.23 0 0 0-3.434-1.279h-1.875a.375.375 0 0 1-.375-.375V10.5Z"></path> | ||
</svg> | ||
</a> | ||
</button> | ||
|
||
<script> | ||
export default function CopyLink() { | ||
navigator.clipboard.writeText('https://repo.cheddzy.com/'); | ||
} | ||
</script> | ||
|
||
<style> | ||
|
||
button { | ||
display: flex; | ||
} | ||
|
||
a { | ||
@apply px-4; | ||
@apply py-2; | ||
@apply rounded-full; | ||
@apply transition-all; | ||
@apply duration-100; | ||
color: #F0F1F2; | ||
font-size: 1rem; | ||
border: 2px #F0F1F2 solid; | ||
background: #1E1F22; | ||
outline: 2px transparent solid; | ||
font-weight: 600; | ||
display: flex; | ||
flex-direction: row; | ||
gap: 0.5rem; | ||
} | ||
svg { | ||
width: 1rem; | ||
} | ||
@keyframes border-anim { | ||
0% {outline: 4px rgba(150, 174, 224, 0.25) dotted;} | ||
100% {outline: 2px #96aee0 solid;} | ||
} | ||
|
||
a:hover { | ||
background: #3574F0; | ||
outline: 2px #96aee0 solid; | ||
animation: border-anim 0.2s 1 ease-out; | ||
} | ||
a:active { | ||
background: #3574F0; | ||
outline: 2px #3574F0 solid; | ||
} | ||
|
||
</style> |
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,59 @@ | ||
--- | ||
import '../../styles/styles.scss' | ||
import '../../styles/globals.scss' | ||
const { target, label } = Astro.props; | ||
--- | ||
|
||
<script> | ||
const button = document.getElementById('genericButton') | ||
|
||
button.addEventListener('click', () => { | ||
|
||
}) | ||
</script> | ||
|
||
<button id="genericButton" type="button" aria-label={label}> | ||
<a href='/' target={target}> | ||
|
||
Submit / request resources | ||
</a> | ||
</button> | ||
|
||
|
||
<style> | ||
|
||
button { | ||
display: flex; | ||
} | ||
|
||
a { | ||
@apply px-4; | ||
@apply py-2; | ||
@apply rounded-full; | ||
@apply transition-all; | ||
@apply duration-100; | ||
color: #F0F1F2; | ||
font-size: 1rem; | ||
border: 2px #F0F1F2 solid; | ||
background: #1E1F22; | ||
outline: 2px transparent solid; | ||
font-weight: 600; | ||
|
||
} | ||
@keyframes border-anim { | ||
0% {outline: 4px rgba(150, 174, 224, 0.25) dotted;} | ||
100% {outline: 2px #96aee0 solid;} | ||
} | ||
|
||
a:hover { | ||
background: #3574F0; | ||
outline: 2px #96aee0 solid; | ||
animation: border-anim 0.2s 1 ease-out; | ||
} | ||
a:active { | ||
background: #3574F0; | ||
outline: 2px #3574F0 solid; | ||
} | ||
|
||
</style> |