-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small changes #689
base: staging
Are you sure you want to change the base?
Small changes #689
Changes from all commits
979c94e
aa504f2
1b0e01c
296d1ac
ea30a1f
7aa0bcb
791b078
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||
import React, { useEffect, useState } from 'react' | ||||||
import { Link } from 'react-router-dom' | ||||||
import { | ||||||
EthIdenticon, | ||||||
GU, | ||||||
|
@@ -54,23 +55,33 @@ function ProposalCreator({ proposal }) { | |||||
display: flex; | ||||||
`} | ||||||
> | ||||||
<div> | ||||||
{profile?.image ? ( | ||||||
<img | ||||||
src={profile.image} | ||||||
height="43" | ||||||
width="43" | ||||||
alt="" | ||||||
css={` | ||||||
border-radius: 50%; | ||||||
display: block; | ||||||
object-fit: cover; | ||||||
`} | ||||||
/> | ||||||
) : ( | ||||||
<EthIdenticon address={proposal.creator} radius={50} scale={1.8} /> | ||||||
)} | ||||||
</div> | ||||||
<Link to={`/profile?account=${proposal.creator}`}> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the previous comment, this should be now
Suggested change
|
||||||
<div> | ||||||
{profile?.image ? ( | ||||||
<img | ||||||
src={profile.image} | ||||||
height="43" | ||||||
width="43" | ||||||
alt="" | ||||||
css={` | ||||||
border-radius: 50%; | ||||||
display: block; | ||||||
object-fit: cover; | ||||||
cursor: pointer; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using the Link component suggested we don´t need to set this style
Suggested change
|
||||||
`} | ||||||
/> | ||||||
) : ( | ||||||
<EthIdenticon | ||||||
address={proposal.creator} | ||||||
radius={50} | ||||||
scale={1.8} | ||||||
css={` | ||||||
cursor: pointer; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as above |
||||||
`} | ||||||
/> | ||||||
)} | ||||||
</div> | ||||||
</Link> | ||||||
<div | ||||||
css={` | ||||||
margin-left: ${1 * GU}px; | ||||||
|
@@ -86,15 +97,23 @@ function ProposalCreator({ proposal }) { | |||||
ProposalType | ||||||
) : ( | ||||||
<> | ||||||
<strong | ||||||
<Link | ||||||
to={`/profile?account=${proposal.creator}`} | ||||||
css={` | ||||||
margin-right: ${1 * GU}px; | ||||||
text-decoration: none; | ||||||
`} | ||||||
> | ||||||
{profile?.name | ||||||
? profile.name | ||||||
: shortenAddress(proposal.creator)} | ||||||
</strong> | ||||||
<strong | ||||||
css={` | ||||||
margin-right: ${1 * GU}px; | ||||||
cursor: pointer; | ||||||
`} | ||||||
> | ||||||
{profile?.name | ||||||
? profile.name | ||||||
: shortenAddress(proposal.creator)} | ||||||
</strong> | ||||||
</Link> | ||||||
<span | ||||||
css={` | ||||||
margin-right: ${0.5 * GU}px; | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ import { | |
textStyle, | ||
useLayout, | ||
useTheme, | ||
useViewport, | ||
} from '@1hive/1hive-ui' | ||
import styled from 'styled-components' | ||
import Layout from './Layout' | ||
|
@@ -23,85 +22,84 @@ import homeSvg from '../assets/home.svg' | |
|
||
function Footer() { | ||
const theme = useTheme() | ||
const { below } = useViewport() | ||
const compactMode = below('large') | ||
|
||
return ( | ||
<footer | ||
css={` | ||
flex-shrink: 0; | ||
width: 100%; | ||
padding: ${5 * GU}px ${3 * GU}px; | ||
padding: ${1 * GU}px ${1.3 * GU}px; | ||
background: ${theme.surface}; | ||
`} | ||
> | ||
<Layout paddingBottom={0}> | ||
{compactMode ? ( | ||
<FixedFooter /> | ||
) : ( | ||
<Layout paddingBottom={70}> | ||
<FixedFooter /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did we remove the compactMode condition? Note that we only want the Fixed Footer on smaller screen sizes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed cursor:pointer. |
||
<div | ||
css={` | ||
display: grid; | ||
padding: 0px 0px 30px 10px; | ||
grid-template-columns: repeat(auto-fit, minmax(100px, 0.3fr)); | ||
grid-row-gap: ${2 * GU}px; | ||
& a { | ||
color: ${theme.contentSecondary}; | ||
} | ||
`} | ||
> | ||
<div> | ||
<img src={logoSvg} height="40" alt="" /> | ||
</div> | ||
<div | ||
css={` | ||
display: grid; | ||
grid-template-columns: ${40 * GU}px ${25 * GU}px ${25 * GU}px; | ||
grid-row-gap: ${2 * GU}px; | ||
|
||
& a { | ||
color: ${theme.contentSecondary}; | ||
} | ||
line-height: 0.5; | ||
`} | ||
> | ||
<div> | ||
<img src={logoSvg} height="40" alt="" /> | ||
</div> | ||
<div> | ||
<h5 | ||
css={` | ||
${textStyle('body1')}; | ||
margin-bottom: ${1.5 * GU}px; | ||
`} | ||
> | ||
Community | ||
</h5> | ||
<Link href="https://discord.gg/4fm7pgB" external> | ||
Discord | ||
</Link> | ||
<Link href="https://github.com/1Hive" external> | ||
Github | ||
</Link> | ||
<Link href="https://twitter.com/1HiveOrg" external> | ||
</Link> | ||
<Link href="https://t.me/honeyswapdex" external> | ||
Telegram | ||
</Link> | ||
<Link href="https://forum.1hive.org/" external> | ||
Forum | ||
</Link> | ||
</div> | ||
<div> | ||
<h5 | ||
css={` | ||
${textStyle('body1')}; | ||
margin-bottom: ${1.5 * GU}px; | ||
`} | ||
> | ||
Documentation | ||
</h5> | ||
<Link href="https://1hive.gitbook.io/1hive/" external> | ||
Wiki | ||
</Link> | ||
<Link | ||
href="https://1hive.gitbook.io/1hive/community/security/bug-bounty" | ||
external | ||
> | ||
Bug Bounty | ||
</Link> | ||
<Link href="https://1hive.gitbook.io/1hive/guides/faq" external> | ||
FAQs | ||
</Link> | ||
</div> | ||
<h5 | ||
css={` | ||
${textStyle('body1')}; | ||
margin-bottom: ${1.5 * GU}px; | ||
`} | ||
> | ||
Community | ||
</h5> | ||
<Link href="https://discord.gg/4fm7pgB" external> | ||
Discord | ||
</Link> | ||
<Link href="https://github.com/1Hive" external> | ||
Github | ||
</Link> | ||
<Link href="https://twitter.com/1HiveOrg" external> | ||
</Link> | ||
<Link href="https://t.me/honeyswapdex" external> | ||
Telegram | ||
</Link> | ||
<Link href="https://forum.1hive.org/" external> | ||
Forum | ||
</Link> | ||
</div> | ||
<div> | ||
<h5 | ||
css={` | ||
${textStyle('body1')}; | ||
margin-bottom: ${1.5 * GU}px; | ||
`} | ||
> | ||
Documentation | ||
</h5> | ||
<Link href="https://1hive.gitbook.io/1hive/" external> | ||
Wiki | ||
</Link> | ||
<Link | ||
href="https://1hive.gitbook.io/1hive/community/security/bug-bounty" | ||
external | ||
> | ||
Bug Bounty | ||
</Link> | ||
<Link href="https://1hive.gitbook.io/1hive/guides/faq" external> | ||
FAQs | ||
</Link> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
</Layout> | ||
</footer> | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on Discord, let´s use the
Link
component from@1hive/1hive-ui
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You an see an example here