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
61729610
Unverified
Commit
61729610
authored
Dec 09, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update /about cards and step sizings (#5610)
* fix: make cards smaller and update font-sizes * breakpoints
parent
53860dd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
9 deletions
+29
-9
Card.tsx
src/pages/About/Card.tsx
+27
-7
Step.tsx
src/pages/About/Step.tsx
+2
-2
No files found.
src/pages/About/Card.tsx
View file @
61729610
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
{
useIsDarkMode
}
from
'
state/user/hooks
'
import
{
useIsDarkMode
}
from
'
state/user/hooks
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
import
{
BREAKPOINTS
}
from
'
theme
'
const
StyledCard
=
styled
.
div
<
{
isDarkMode
:
boolean
}
>
`
const
StyledCard
=
styled
.
div
<
{
isDarkMode
:
boolean
}
>
`
display: flex;
display: flex;
...
@@ -11,7 +12,7 @@ const StyledCard = styled.div<{ isDarkMode: boolean }>`
...
@@ -11,7 +12,7 @@ const StyledCard = styled.div<{ isDarkMode: boolean }>`
text-decoration: none;
text-decoration: none;
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
padding: 40px;
padding: 40px;
height:
4
00px;
height:
2
00px;
border-radius: 24px;
border-radius: 24px;
transition:
${({
theme
})
=>
`
${
theme
.
transition
.
duration
.
medium
}
${
theme
.
transition
.
timing
.
ease
}
background-color`
}
;
transition:
${({
theme
})
=>
`
${
theme
.
transition
.
duration
.
medium
}
${
theme
.
transition
.
timing
.
ease
}
background-color`
}
;
border: 1px solid
${({
theme
,
isDarkMode
})
=>
(
isDarkMode
?
'
transparent
'
:
theme
.
backgroundOutline
)}
;
border: 1px solid
${({
theme
,
isDarkMode
})
=>
(
isDarkMode
?
'
transparent
'
:
theme
.
backgroundOutline
)}
;
...
@@ -22,15 +23,34 @@ const StyledCard = styled.div<{ isDarkMode: boolean }>`
...
@@ -22,15 +23,34 @@ const StyledCard = styled.div<{ isDarkMode: boolean }>`
`
`
const
CardTitle
=
styled
.
div
`
const
CardTitle
=
styled
.
div
`
font-weight: 600;
font-size: 28px;
font-size: 48px;
line-height: 36px;
line-height: 56px;
font-weight: 500;
@media screen and (min-width:
${
BREAKPOINTS
.
md
}
px) {
font-size: 20px;
line-height: 28px;
}
@media screen and (min-width:
${
BREAKPOINTS
.
lg
}
px) {
font-size: 28px;
line-height: 36px;
}
`
`
const
CardDescription
=
styled
.
div
`
const
CardDescription
=
styled
.
div
`
font-weight: 400;
font-size: 20px;
font-size: 24px;
line-height: 28px;
line-height: 36px;
@media screen and (min-width:
${
BREAKPOINTS
.
sm
}
px) {
font-size: 14px;
line-height: 20px;
}
@media screen and (min-width:
${
BREAKPOINTS
.
lg
}
px) {
font-size: 20px;
line-height: 28px;
}
`
`
const
Card
=
({
const
Card
=
({
...
...
src/pages/About/Step.tsx
View file @
61729610
...
@@ -5,8 +5,8 @@ const StyledStep = styled.div<{ selected: boolean }>`
...
@@ -5,8 +5,8 @@ const StyledStep = styled.div<{ selected: boolean }>`
display: flex;
display: flex;
padding: 24px 0;
padding: 24px 0;
color:
${({
theme
,
selected
})
=>
(
selected
?
theme
.
textPrimary
:
theme
.
textSecondary
)}
;
color:
${({
theme
,
selected
})
=>
(
selected
?
theme
.
textPrimary
:
theme
.
textSecondary
)}
;
font-size:
36
px;
font-size:
20
px;
line-height:
44
px;
line-height:
28
px;
&:not(:last-of-type) {
&:not(:last-of-type) {
border-bottom:
${({
theme
})
=>
`1px solid
${
theme
.
backgroundOutline
}
`
}
;
border-bottom:
${({
theme
})
=>
`1px solid
${
theme
.
backgroundOutline
}
`
}
;
...
...
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