-
Notifications
You must be signed in to change notification settings - Fork 26.8k
/
hero.js
115 lines (106 loc) · 2.14 KB
/
hero.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import css from 'styled-jsx/css'
export const heroContainer = css.resolve`
div {
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
`
export const hero = css.resolve`
div {
width: 70%;
max-width: 700px;
text-align: center;
flex-basis: 30%;
}
`
export const heroForm = css.resolve`
form {
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
text-align: left;
width: 50%;
margin-bottom: 60px;
}
`
export const heroFormFieldset = css.resolve`
fieldset {
outline: none;
border: none;
}
`
export const heroFormTextArea = css.resolve`
textarea {
display: block;
width: 100%;
margin-bottom: 20px;
resize: none;
padding: 5px;
border-radius: 5px;
border: 1.2px solid rgba(50, 63, 203, 0.5);
transition: border 200ms ease-in-out;
box-sizing: border-box;
font-family: sans-serif;
}
textarea:hover,
textarea:focus {
outline: none !important;
border: 1.2px solid rgba(50, 63, 203);
}
`
export const heroFormTwitterInput = css.resolve`
input {
display: inline-block;
width: 45%;
padding: 5px;
border-radius: 5px;
border: 1.2px solid rgba(50, 63, 203, 0.5);
transition: border 200ms ease-in-out;
}
input:hover,
input:focus {
outline: none !important;
border: 1.2px solid rgba(50, 63, 203);
}
`
export const heroFormSubmitButton = css.resolve`
input {
width: 45%;
border-radius: 5px;
padding: 5px;
float: right;
background-color: rgba(50, 63, 203);
color: white;
font-weight: bold;
border: 1.2px solid rgba(50, 63, 203, 0.5);
}
input:hover {
cursor: pointer;
}
`
export const heroEntries = css.resolve`
div {
flex-grow: 0;
flex-shrink: 10;
flex-basis: 60%;
overflow-y: auto;
overflow-x: hidden;
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
width: 56%;
max-width: 800px;
text-align: center;
}
div::-webkit-scrollbar {
width: 2px;
}
div::-webkit-scrollbar-thumb {
background: rgba(50, 63, 203, 0.5);
}
`