-
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.
feat(add slack button): add button and basic landing page (#152)
* feat(add slack button): add button and basic landing page * style(slack button): make it bigger
- Loading branch information
Showing
15 changed files
with
5,826 additions
and
1,279 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
module.exports = { | ||
plugins: [require('precss'), require('autoprefixer')], | ||
} |
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 |
---|---|---|
@@ -1,5 +1,26 @@ | ||
ul, ol { | ||
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Open+Sans&display=swap'); | ||
|
||
* { | ||
color: #000000; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
ul, | ||
ol { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
.inner { | ||
padding: 32px; | ||
} |
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,37 @@ | ||
import React, { useEffect, useState } from 'react' | ||
import config from '../../config' | ||
|
||
const AddToSlack = () => { | ||
const [url, setUrl] = useState('') | ||
|
||
const getInstallUrlPath = async () => { | ||
try { | ||
const response = await fetch( | ||
`${config.prod.app}${config.prod.installUrlPath}`, | ||
) | ||
const { installUrl } = await response.json() | ||
|
||
setUrl(installUrl) | ||
} catch (e) { | ||
console.error(e) | ||
} | ||
} | ||
|
||
useEffect(() => { | ||
getInstallUrlPath() | ||
}, []) | ||
|
||
return url ? ( | ||
<a href={url}> | ||
<img | ||
alt="Add to Slack" | ||
height="60" | ||
src="https://platform.slack-edge.com/img/add_to_slack.png" | ||
srcSet="https://platform.slack-edge.com/img/add_to_slack.png 1x, | ||
https://platform.slack-edge.com/img/[email protected] 2x" | ||
/> | ||
</a> | ||
) : null | ||
} | ||
|
||
export default AddToSlack |
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,16 @@ | ||
import React from 'react' | ||
|
||
import './Frame.pcss' | ||
|
||
const Frame = () => { | ||
return ( | ||
<> | ||
<div id="top"></div> | ||
<div id="right"></div> | ||
<div id="bottom"></div> | ||
<div id="left"></div> | ||
</> | ||
) | ||
} | ||
|
||
export default Frame |
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,35 @@ | ||
#top { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100vw; | ||
height: 16px; | ||
background: #000000; | ||
} | ||
|
||
#right { | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
width: 16px; | ||
height: 100vh; | ||
background: #000000; | ||
} | ||
|
||
#bottom { | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
width: 100vw; | ||
height: 16px; | ||
background: #000000; | ||
} | ||
|
||
#left { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 16px; | ||
height: 100vh; | ||
background: #000000; | ||
} |
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,18 @@ | ||
import React from 'react' | ||
|
||
import UserMenu from '../components/UserMenu' | ||
|
||
import './Header.pcss' | ||
|
||
const Header = () => { | ||
return ( | ||
<header> | ||
<a className="logo" href="/"> | ||
Post Your Standup | ||
</a> | ||
<UserMenu /> | ||
</header> | ||
) | ||
} | ||
|
||
export default Header |
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,12 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap'); | ||
|
||
header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
|
||
& .logo { | ||
font-family: 'Bangers', cursive; | ||
font-size: 50px; | ||
} | ||
} |
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,14 @@ | ||
import React from 'react' | ||
|
||
import AddToSlack from '../components/AddToSlack' | ||
|
||
const Landing = () => { | ||
return ( | ||
<div> | ||
<h1>Post your Standup</h1> | ||
<AddToSlack /> | ||
</div> | ||
) | ||
} | ||
|
||
export default Landing |
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