Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
3703e843
Unverified
Commit
3703e843
authored
Dec 11, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Dec 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: improve mobile spacing/ordering on /about (#5632)
parent
3c3158f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
19 deletions
+13
-19
Title.ts
src/pages/About/Title.ts
+7
-2
index.tsx
src/pages/About/index.tsx
+6
-17
No files found.
src/pages/About/Title.ts
View file @
3703e843
...
@@ -25,8 +25,8 @@ export const SubTitle = styled.h2<{ isDarkMode?: boolean }>`
...
@@ -25,8 +25,8 @@ export const SubTitle = styled.h2<{ isDarkMode?: boolean }>`
font-weight: 500;
font-weight: 500;
max-width: 340px;
max-width: 340px;
color: transparent;
color: transparent;
font-size:
36
px;
font-size:
20
px;
line-height:
44
px;
line-height:
28
px;
background:
${({
isDarkMode
})
=>
background:
${({
isDarkMode
})
=>
isDarkMode
isDarkMode
...
@@ -35,4 +35,9 @@ export const SubTitle = styled.h2<{ isDarkMode?: boolean }>`
...
@@ -35,4 +35,9 @@ export const SubTitle = styled.h2<{ isDarkMode?: boolean }>`
background-clip: text;
background-clip: text;
-webkit-background-clip: text;
-webkit-background-clip: text;
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
font-size: 36px;
line-height: 44px;
}
`
`
src/pages/About/index.tsx
View file @
3703e843
...
@@ -30,10 +30,6 @@ const BackgroundImage = styled.img`
...
@@ -30,10 +30,6 @@ const BackgroundImage = styled.img`
height: calc(100vh - 72px);
height: calc(100vh - 72px);
`
`
const
AboutTitle
=
styled
(
Title
)
`
z-index: 1;
`
const
Panels
=
styled
.
div
`
const
Panels
=
styled
.
div
`
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
...
@@ -62,10 +58,11 @@ const Content = styled.div`
...
@@ -62,10 +58,11 @@ const Content = styled.div`
justify-content: center;
justify-content: center;
align-items: flex-start;
align-items: flex-start;
padding: 0px 16px 16px 16px;
padding: 0px 16px 16px 16px;
gap:
96
px;
gap:
48
px;
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
padding: 0px 80px 80px 80px;
padding: 0px 80px 80px 80px;
gap: 96px;
}
}
`
`
...
@@ -129,14 +126,6 @@ const Thumbnail = styled.img`
...
@@ -129,14 +126,6 @@ const Thumbnail = styled.img`
width: 100%;
width: 100%;
`
`
const
PoweredBySection
=
styled
(
Panels
)
`
order: 1;
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
order: 0;
}
`
const
SocialRow
=
styled
.
div
`
const
SocialRow
=
styled
.
div
`
display: flex;
display: flex;
gap: 24px;
gap: 24px;
...
@@ -180,10 +169,10 @@ export default function About() {
...
@@ -180,10 +169,10 @@ export default function About() {
<
Page
isDarkMode=
{
isDarkMode
}
titleHeight=
{
titleHeight
}
>
<
Page
isDarkMode=
{
isDarkMode
}
titleHeight=
{
titleHeight
}
>
<
BackgroundImage
src=
{
backgroundImgSrc
}
/>
<
BackgroundImage
src=
{
backgroundImgSrc
}
/>
<
Content
>
<
Content
>
<
About
Title
ref=
{
titleRef
}
isDarkMode=
{
isDarkMode
}
>
<
Title
ref=
{
titleRef
}
isDarkMode=
{
isDarkMode
}
>
Uniswap is the leading on-chain marketplace for tokens and NFTs.
Uniswap is the leading on-chain marketplace for tokens and NFTs.
</
About
Title
>
</
Title
>
<
P
oweredBySection
>
<
P
anels
>
<
div
>
<
div
>
<
SubTitle
isDarkMode=
{
isDarkMode
}
>
Powered by the Uniswap Protocol
</
SubTitle
>
<
SubTitle
isDarkMode=
{
isDarkMode
}
>
Powered by the Uniswap Protocol
</
SubTitle
>
</
div
>
</
div
>
...
@@ -198,7 +187,7 @@ export default function About() {
...
@@ -198,7 +187,7 @@ export default function About() {
</
InfoButton
>
</
InfoButton
>
</
ActionsContainer
>
</
ActionsContainer
>
</
Intro
>
</
Intro
>
</
P
oweredBySection
>
</
P
anels
>
<
CardGrid
>
<
CardGrid
>
{
CARDS
.
map
((
card
)
=>
(
{
CARDS
.
map
((
card
)
=>
(
<
Card
key=
{
card
.
title
}
{
...
card
}
/>
<
Card
key=
{
card
.
title
}
{
...
card
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment