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
df4eaaf5
Commit
df4eaaf5
authored
Jul 16, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
heading theming
parent
70921643
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 @
df4eaaf5
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 @
df4eaaf5
import
Button
from
'
./Button
'
;
import
Button
from
'
./Button
'
;
import
Form
from
'
./Form
'
;
import
Form
from
'
./Form
'
;
import
Heading
from
'
./Heading
'
;
import
Input
from
'
./Input
'
;
import
Input
from
'
./Input
'
;
import
Link
from
'
./Link
'
;
import
Link
from
'
./Link
'
;
import
Modal
from
'
./Modal
'
;
import
Modal
from
'
./Modal
'
;
...
@@ -10,6 +11,7 @@ import Tooltip from './Tooltip';
...
@@ -10,6 +11,7 @@ import Tooltip from './Tooltip';
const
components
=
{
const
components
=
{
Button
,
Button
,
Heading
,
Input
,
Input
,
Form
,
Form
,
Link
,
Link
,
...
...
ui/pages/ApiKeys.tsx
View file @
df4eaaf5
import
React
,
{
useCallback
,
useState
}
from
'
react
'
;
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
'
;
import
Page
from
'
../Page/Page
'
;
...
@@ -49,7 +49,7 @@ const ApiKeys: React.FC = () => {
...
@@ -49,7 +49,7 @@ const ApiKeys: React.FC = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
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
}
>
<
Text
marginBottom=
{
12
}
>
Create API keys to use for your RPC and EthRPC API requests. For more information, see
{
space
}
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
>
.
<
Link
href=
"#"
>
“How to use a Blockscout API key”
</
Link
>
.
...
...
ui/pages/PrivateTags.tsx
View file @
df4eaaf5
...
@@ -2,6 +2,7 @@ import React from 'react';
...
@@ -2,6 +2,7 @@ import React from 'react';
import
{
import
{
Box
,
Box
,
Heading
,
Tab
,
Tab
,
Tabs
,
Tabs
,
TabList
,
TabList
,
...
@@ -17,7 +18,7 @@ const PrivateTags: React.FC = () => {
...
@@ -17,7 +18,7 @@ const PrivateTags: React.FC = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
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"
>
<
Tabs
variant=
"soft-rounded"
colorScheme=
"blue"
>
<
TabList
marginBottom=
{
8
}
>
<
TabList
marginBottom=
{
8
}
>
<
Tab
>
Address
</
Tab
>
<
Tab
>
Address
</
Tab
>
...
...
ui/pages/Watchlist.tsx
View file @
df4eaaf5
import
React
,
{
useCallback
,
useState
}
from
'
react
'
;
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
'
;
import
Page
from
'
../Page/Page
'
;
...
@@ -41,7 +41,7 @@ const WatchList: React.FC = () => {
...
@@ -41,7 +41,7 @@ const WatchList: React.FC = () => {
return
(
return
(
<
Page
>
<
Page
>
<
Box
h=
"100%"
>
<
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
>
<
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
)
&&
(
{
Boolean
(
watchlist
.
length
)
&&
(
<
WatchlistTable
<
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