Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
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
vicotor
frontend
Commits
3115c18f
Unverified
Commit
3115c18f
authored
Jul 17, 2022
by
N
Committed by
GitHub
Jul 17, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #48 from blockscout/heading-theming
heading theming
parents
70921643
df4eaaf5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
5 deletions
+31
-5
Heading.ts
theme/components/Heading.ts
+23
-0
index.ts
theme/components/index.ts
+2
-0
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+2
-2
PrivateTags.tsx
ui/pages/PrivateTags.tsx
+2
-1
Watchlist.tsx
ui/pages/Watchlist.tsx
+2
-2
No files found.
theme/components/Heading.ts
0 → 100644
View file @
3115c18f
import
type
{
ComponentStyleConfig
}
from
'
@chakra-ui/theme
'
;
const
baseStyle
=
{
fontWeight
:
'
500
'
,
letterSpacing
:
'
-0.5px
'
,
}
// WIP
// designer promised to sync theme and page mock-ups
// so that's not the final point yet
const
sizes
=
{
lg
:
{
fontSize
:
'
32px
'
,
lineHeight
:
'
40px
'
,
},
}
const
Heading
:
ComponentStyleConfig
=
{
sizes
,
baseStyle
,
}
export
default
Heading
;
theme/components/index.ts
View file @
3115c18f
import
Button
from
'
./Button
'
;
import
Form
from
'
./Form
'
;
import
Heading
from
'
./Heading
'
;
import
Input
from
'
./Input
'
;
import
Link
from
'
./Link
'
;
import
Modal
from
'
./Modal
'
;
...
...
@@ -10,6 +11,7 @@ import Tooltip from './Tooltip';
const
components
=
{
Button
,
Heading
,
Input
,
Form
,
Link
,
...
...
ui/pages/ApiKeys.tsx
View file @
3115c18f
import
React
,
{
useCallback
,
useState
}
from
'
react
'
;
import
{
Box
,
Button
,
HStack
,
Link
,
Text
,
useColorModeValue
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Button
,
H
eading
,
H
Stack
,
Link
,
Text
,
useColorModeValue
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
Page
from
'
../Page/Page
'
;
...
...
@@ -49,7 +49,7 @@ const ApiKeys: React.FC = () => {
return
(
<
Page
>
<
Box
h=
"100%"
>
<
Box
as=
"h1"
textStyle=
"h2"
marginBottom=
{
8
}
>
API keys
</
Box
>
<
Heading
as=
"h1"
size=
"lg"
marginBottom=
{
8
}
>
API keys
</
Heading
>
<
Text
marginBottom=
{
12
}
>
Create API keys to use for your RPC and EthRPC API requests. For more information, see
{
space
}
<
Link
href=
"#"
>
“How to use a Blockscout API key”
</
Link
>
.
...
...
ui/pages/PrivateTags.tsx
View file @
3115c18f
...
...
@@ -2,6 +2,7 @@ import React from 'react';
import
{
Box
,
Heading
,
Tab
,
Tabs
,
TabList
,
...
...
@@ -17,7 +18,7 @@ const PrivateTags: React.FC = () => {
return
(
<
Page
>
<
Box
h=
"100%"
>
<
Box
as=
"h1"
textStyle=
"h2"
marginBottom=
{
8
}
>
Private tags
</
Box
>
<
Heading
as=
"h1"
size=
"lg"
marginBottom=
{
8
}
>
Private tags
</
Heading
>
<
Tabs
variant=
"soft-rounded"
colorScheme=
"blue"
>
<
TabList
marginBottom=
{
8
}
>
<
Tab
>
Address
</
Tab
>
...
...
ui/pages/Watchlist.tsx
View file @
3115c18f
import
React
,
{
useCallback
,
useState
}
from
'
react
'
;
import
{
Box
,
Button
,
Text
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Button
,
Text
,
useDisclosure
,
Heading
}
from
'
@chakra-ui/react
'
;
import
Page
from
'
../Page/Page
'
;
...
...
@@ -41,7 +41,7 @@ const WatchList: React.FC = () => {
return
(
<
Page
>
<
Box
h=
"100%"
>
<
Box
as=
"h1"
textStyle=
"h2"
marginBottom=
{
8
}
>
Watch list
</
Box
>
<
Heading
as=
"h1"
size=
"lg"
marginBottom=
{
8
}
>
Watch list
</
Heading
>
<
Text
marginBottom=
{
12
}
>
An email notification can be sent to you when an address on your watch list sends or receives any transactions.
</
Text
>
{
Boolean
(
watchlist
.
length
)
&&
(
<
WatchlistTable
...
...
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