mirror of
https://github.com/status-im/community-dapp.git
synced 2025-02-23 11:38:40 +00:00
Mobile weekly feature banner (#144)
This commit is contained in:
parent
010b7f56d0
commit
5f1a1d5c79
@ -11,9 +11,9 @@ export const WeeklyFeature = ({ endDate }: { endDate: Date }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
⭐ <span>Weekly Feature vote:</span>
|
⭐ <span>Weekly Feature vote {window.innerWidth < 600 ? 'ends' : ''}:</span>
|
||||||
{daysLeft}
|
{daysLeft}
|
||||||
{daysLeft.toString().endsWith('1') ? 'day ' : ' days'} left
|
{daysLeft.toString().endsWith('1') ? 'day ' : ' days'} {window.innerWidth < 600 ? '' : 'left'}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -31,9 +31,23 @@ const View = styled.div`
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
color: ${Colors.White};
|
color: ${Colors.White};
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
padding: 16px 30px;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 365px) {
|
||||||
|
padding: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin: 0 6px 0 8px;
|
margin: 0 6px 0 8px;
|
||||||
color: rgba(255, 255, 255, 0.5);
|
color: rgba(255, 255, 255, 0.5);
|
||||||
|
|
||||||
|
@media (max-width: 365px) {
|
||||||
|
margin: 0 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user