-
Notifications
You must be signed in to change notification settings - Fork 3
Domains section wip #2
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
69fc162
feature: Working on ensName card and display on domains page
c238d69
fix: Adding ensNameCard compoennt
5023510
fix: Footer stick to bottom and transperent finished up styled for en…
58439e5
fix: Broken Background image
e71b477
fix: Landing page mobile optimization
841de0d
fix: Landing page and footer adjustments
35aadee
Merge branch 'main' of https://github.com/nimi-app/nimi-app into doma…
6ddac79
Update src/components/EnsNameCard/index.tsx
Mi-Lan 8ddcea7
Update src/components/EnsNameCard/index.tsx
Mi-Lan 08fe65a
fix: Added Mock fixtures folder with ens data
075b6a9
fix: Changed default export on ens card and moved mock fixtures
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,17 @@ | ||
import { CardWrapper, DomainText, ProfilePic, StyledButton, StyledExternalLink } from './styleds'; | ||
|
||
interface ENSCardProps { | ||
ensDomain: string; | ||
imageUrl?: string; | ||
} | ||
|
||
export function ENSNameCard({ ensDomain, imageUrl }: ENSCardProps) { | ||
return ( | ||
<CardWrapper> | ||
{imageUrl && <ProfilePic alt={imageUrl} src={imageUrl} />} | ||
<DomainText> {ensDomain}</DomainText> | ||
<StyledButton>Set up a Nimi Profile</StyledButton> | ||
<StyledExternalLink href={`https://${ensDomain}.limo`}>Go to {ensDomain}</StyledExternalLink> | ||
</CardWrapper> | ||
); | ||
} |
This file contains hidden or 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,42 @@ | ||
import { Flex } from 'rebass'; | ||
import styled from 'styled-components'; | ||
import { ExternalLink, NimiSignatureColor } from '../../theme'; | ||
import { ButtonPrimary } from '../Button'; | ||
|
||
export const CardWrapper = styled(Flex)` | ||
align-items: center; | ||
background: rgba(255, 255, 255, 0.6); | ||
box-shadow: 0px 5px 24px rgba(138, 143, 234, 0.12); | ||
backdrop-filter: blur(20px); | ||
width: 337px; | ||
height: 348px; | ||
flex-direction: column; | ||
border-radius: 25px; | ||
padding: 48px 32px; | ||
`; | ||
export const ProfilePic = styled.img` | ||
background-position: center, center; | ||
background-size: cover; | ||
|
||
border-radius: 200px; | ||
height: 83px; | ||
width: 83px; | ||
z-index: 1; | ||
`; | ||
export const DomainText = styled.div` | ||
${NimiSignatureColor}; | ||
margin-top: auto; | ||
font-family: 'Baloo 2'; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-size: 32px; | ||
line-height: 100%; | ||
`; | ||
export const StyledButton = styled(ButtonPrimary)` | ||
margin-top: auto; | ||
`; | ||
|
||
export const StyledExternalLink = styled(ExternalLink)` | ||
${NimiSignatureColor}; | ||
margin-top: 26px; | ||
`; |
This file contains hidden or 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 hidden or 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,6 +1,6 @@ | ||
import { transparentize } from 'polished' | ||
import styled from 'styled-components' | ||
import { transparentize } from 'polished'; | ||
import styled from 'styled-components'; | ||
|
||
export const GovernanceText = styled.span` | ||
color: ${({ theme }) => transparentize(0.6, theme.text5)}; | ||
` | ||
`; |
This file contains hidden or 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 @@ | ||
export const MockENSData = [ | ||
{ | ||
ensDomain: 'milanrasovic.eth', | ||
imageUrl: 'https://pbs.twimg.com/profile_images/1511030457093271558/GBHgfEOS_400x400.jpg', | ||
}, | ||
{ | ||
ensDomain: 'blue.eth', | ||
imageUrl: 'https://pbs.twimg.com/profile_images/701077842197618688/6mRqLx_p_400x400.jpg', | ||
}, | ||
{ ensDomain: 'green.eth', imageUrl: '' }, | ||
{ ensDomain: 'red.eth', imageUrl: '' }, | ||
]; |
This file contains hidden or 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 hidden or 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,9 +1,19 @@ | ||
import { Flex } from 'rebass'; | ||
import styled from 'styled-components'; | ||
import { ENSNameCard } from '../../components/EnsNameCard'; | ||
import { MockENSData } from '../../mock_fixtures'; | ||
|
||
const StyledDomainsWrapper = styled(Flex)` | ||
flex-wrap: wrap; | ||
gap: 19px; | ||
`; | ||
|
||
export function Domains() { | ||
return ( | ||
<> | ||
<div> | ||
<h1>Profiles</h1> | ||
</div> | ||
</> | ||
<StyledDomainsWrapper> | ||
{MockENSData.map(({ ensDomain, imageUrl }) => { | ||
return <ENSNameCard ensDomain={ensDomain} imageUrl={imageUrl} />; | ||
})} | ||
</StyledDomainsWrapper> | ||
); | ||
} |
This file contains hidden or 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 |
---|---|---|
|
@@ -14,7 +14,6 @@ import { Footer } from '../../components/Footer'; | |
|
||
const CTAButtonWrapper = styled(Flex)` | ||
align-items: center; | ||
|
||
gap: 10px; | ||
`; | ||
|
||
|
@@ -30,16 +29,15 @@ export function Landing() { | |
<HeroLead>Your ENS deserves better.</HeroLead> | ||
<HeroSub>Nimi, new me.</HeroSub> | ||
</HeroText> | ||
<div> | ||
<Link to="/domains"> | ||
<ButtonPrimary> | ||
<CTAButtonWrapper> | ||
<CTAButtonLogo /> | ||
<span>Go to Nimi</span> | ||
</CTAButtonWrapper> | ||
</ButtonPrimary> | ||
</Link> | ||
</div> | ||
|
||
<Link to="/domains"> | ||
<ButtonPrimary> | ||
<CTAButtonWrapper> | ||
<CTAButtonLogo /> | ||
<span>Go to Nimi</span> | ||
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. Note for us: consider i18n |
||
</CTAButtonWrapper> | ||
</ButtonPrimary> | ||
</Link> | ||
</Container> | ||
</Content> | ||
<Footer /> | ||
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we have a token already? 🤣