-
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
89e982a
commit a2a3309
Showing
7 changed files
with
63 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.game-share-box { | ||
width: 400px; | ||
max-width: 100%; | ||
margin: 2rem auto; | ||
padding: 1rem; | ||
background: linear-gradient(to bottom right, white, lighten($brand-primary, 35%)); | ||
border: 1px solid $brand-primary; | ||
border-radius: 3px; | ||
text-align: center; | ||
|
||
.text { | ||
margin-bottom: 0.5rem; | ||
color: $brand-primary; | ||
|
||
.sub-text { | ||
font-size: 0.6rem; | ||
} | ||
|
||
} | ||
|
||
input { | ||
border: 1px solid lighten($brand-primary, 30%); | ||
cursor: text; | ||
border-radius: 3px; | ||
box-shadow: none; | ||
border-image: none; | ||
color: lighten($brand-primary, 10%); | ||
font-size: 0.8rem; | ||
text-align: center; | ||
width: 100%; | ||
padding: 0.5rem; | ||
|
||
&::selection { | ||
background-color: $gray-dark; | ||
color: white; | ||
} | ||
} | ||
} |
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,19 @@ | ||
import React from 'react'; | ||
|
||
const GameShareBox = ({url}) => { | ||
return ( | ||
<div className='game-share-box'> | ||
<div className='text'> | ||
Invite Friends To Play With This Link | ||
<div className='sub-text'>(click to select)</div> | ||
</div> | ||
<input | ||
value={url} | ||
readOnly | ||
onClick={(e) => e.target.setSelectionRange(0, e.target.value.length)} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default GameShareBox; |
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