File tree Expand file tree Collapse file tree 14 files changed +78
-84
lines changed Expand file tree Collapse file tree 14 files changed +78
-84
lines changed Original file line number Diff line number Diff line change 10
10
"src" : " ./src" ,
11
11
"assets" : " ./src/assets" ,
12
12
"components" : " ./src/components" ,
13
+ "context" : " ./src/context" ,
14
+ "layout" : " ./src/layout" ,
13
15
"consts" : " ./src/consts" ,
14
16
"hooks" : " ./src/hooks" ,
15
17
"pages" : " ./src/pages" ,
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { Routes , Route } from "react-router-dom" ;
3
- import StyledComponentsProvider from "components /StyledComponentsProvider" ;
4
- import Layout from "components/ layout" ;
3
+ import StyledComponentsProvider from "context /StyledComponentsProvider" ;
4
+ import Layout from "layout/index " ;
5
5
import Home from "./pages/home" ;
6
6
7
7
const App : React . FC = ( ) => (
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import styled from "styled-components" ;
3
+ import SecuredByKlerosLogo from "svgs/footer/secured-by-kleros.svg" ;
4
+ import { socialmedia } from "consts/socialmedia" ;
5
+
6
+ const Container = styled . div `
7
+ height: 80px;
8
+ width: 100vw;
9
+ background-color: ${ ( { theme } ) => theme . primaryPurple } ;
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ gap: 16px;
15
+
16
+ .secured-by-kleros {
17
+ min-height: 24px;
18
+ }
19
+
20
+ .socialmedia {
21
+ display: flex;
22
+ gap: 16px;
23
+ justify-content: center;
24
+
25
+ a {
26
+ display: inline-block;
27
+ }
28
+ }
29
+ ` ;
30
+
31
+ const SecuredByKleros : React . FC = ( ) => (
32
+ < a
33
+ className = "secured-by-kleros"
34
+ href = "https://kleros.io"
35
+ target = "_blank"
36
+ rel = "noreferrer"
37
+ >
38
+ < SecuredByKlerosLogo />
39
+ </ a >
40
+ ) ;
41
+
42
+ const SocialMedia = ( ) => (
43
+ < div className = "socialmedia" >
44
+ { Object . values ( socialmedia ) . map ( ( site , i ) => (
45
+ < a key = { i } href = { site . url } target = "_blank" rel = "noreferrer" >
46
+ { site . icon }
47
+ </ a >
48
+ ) ) }
49
+ </ div >
50
+ ) ;
51
+
52
+ const Footer : React . FC = ( ) => (
53
+ < Container >
54
+ < SecuredByKleros />
55
+ < SocialMedia />
56
+ </ Container >
57
+ ) ;
58
+
59
+ export default Footer ;
Original file line number Diff line number Diff line change 1
1
import React , { useState , useRef } from "react" ;
2
2
import styled from "styled-components" ;
3
+ import { Link } from "react-router-dom" ;
3
4
import HamburgerIcon from "svgs/header/hamburger.svg" ;
5
+ import KlerosCourtLogo from "svgs/header/kleros-court.svg" ;
4
6
import { useFocusOutside } from "hooks/useFocusOutside" ;
5
7
import LightButton from "components/LightButton" ;
6
- import KlerosCourt from "./KlerosCourt" ;
7
8
import NavBar from "./navbar" ;
8
9
9
10
const Container = styled . div `
@@ -17,6 +18,10 @@ const Container = styled.div`
17
18
display: flex;
18
19
align-items: center;
19
20
justify-content: space-between;
21
+
22
+ .kleros-court-link {
23
+ min-height: 48px;
24
+ }
20
25
` ;
21
26
22
27
const StyledLightButton = styled ( LightButton ) `
@@ -30,7 +35,9 @@ const Header: React.FC = () => {
30
35
useFocusOutside ( containerRef , ( ) => setIsOpen ( false ) ) ;
31
36
return (
32
37
< Container >
33
- < KlerosCourt />
38
+ < Link className = "kleros-court-link" to = { "/" } >
39
+ < KlerosCourtLogo />
40
+ </ Link >
34
41
< div ref = { containerRef } >
35
42
< NavBar { ...{ isOpen } } />
36
43
< StyledLightButton
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 14
14
"components*" : [
15
15
" ./src/components*"
16
16
],
17
+ "context*" : [
18
+ " ./src/context*"
19
+ ],
20
+ "layout*" : [
21
+ " ./src/layout*"
22
+ ],
17
23
"consts*" : [
18
24
" ./src/consts*"
19
25
],
You can’t perform that action at this time.
0 commit comments