-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feedback button to mainpage (#111)
- Loading branch information
1 parent
66cc61f
commit 2540292
Showing
9 changed files
with
57 additions
and
35 deletions.
There are no files selected for viewing
34 changes: 21 additions & 13 deletions
34
...mponents/Map/Feedback/Feedback.module.css → ...nents/Common/Feedback/Feedback.module.css
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,23 +1,31 @@ | ||
.MapFeedback { | ||
display: flex; | ||
height: 48px; | ||
padding: 8px 24px; | ||
|
||
background: #f9d548; | ||
border-radius: 64px; | ||
|
||
justify-content: center; | ||
align-items: center; | ||
|
||
text-decoration: none; | ||
|
||
font-size: 20px; | ||
font-style: normal; | ||
border-radius: 64px; | ||
background: #f9d548; | ||
font-weight: 400; | ||
line-height: 105%; | ||
font-style: normal; | ||
font-size: 20px; | ||
line-height: 1.05; | ||
text-decoration: none; | ||
} | ||
|
||
/* leaflet styles for links have more specificity */ | ||
.MapFeedback.MapFeedback { | ||
color: var(--text-primary); | ||
} | ||
} | ||
|
||
.MapFeedback_Size-m, | ||
.MapFeedback_Size-l { | ||
height: 48px; | ||
padding: 8px 24px; | ||
} | ||
|
||
@media screen and (min-width: 768px) { | ||
.MapFeedback_Size-l { | ||
height: 65px; | ||
padding: 24px 32px; | ||
font-size: 24px; | ||
} | ||
} |
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,26 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames/bind'; | ||
|
||
import type { FeedbackProps } from './Feedback.types'; | ||
|
||
import styles from './Feedback.module.css'; | ||
|
||
const cn = classNames.bind(styles); | ||
|
||
export function Feedback({ | ||
caption = 'Фидбек', | ||
size | ||
} : FeedbackProps) { | ||
return ( | ||
<a | ||
href="https://tally.so#tally-open=mRDkVd&tally-width=650&tally-overlay=1&tally-emoji-animation=none" | ||
target="_blank" | ||
rel="noreferrer" | ||
className={cn(styles.MapFeedback, { | ||
[styles[`MapFeedback_Size-${size}`]]: size | ||
})} | ||
> | ||
{caption} | ||
</a> | ||
); | ||
} |
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,4 @@ | ||
export type FeedbackProps = { | ||
caption?: string; | ||
size: 'm' | 'l'; | ||
}; |
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 |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
font-weight: 400; | ||
margin: 0 0 0.4vw; | ||
font-size: 20px; | ||
flex-grow: 1; | ||
} | ||
|
||
.MainPageCardGrid { | ||
|
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 was deleted.
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
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