Skip to content

Commit e3d9d50

Browse files
Merge pull request gitcoinco#3664 from thelostone-mc/homepage
home: base setup
2 parents 17571ff + 7b6dbbc commit e3d9d50

21 files changed

+748
-14
lines changed

app/assets/v2/css/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ span {
1717
word-wrap: break-word;
1818
}
1919

20+
a {
21+
color: #3E00FF;
22+
}
23+
2024
.nav_avatar {
2125
width: 40px;
2226
height: 40px;

app/assets/v2/css/buttons.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ button:focus {
9494
}
9595
}
9696

97+
.btn {
98+
border-radius: 2px;
99+
}
100+
97101
.btn-gc-blue, .btn-gc-green, .btn-gc-purple {
98102
color: white;
99103
padding: .75rem 1.5rem;

app/assets/v2/css/colors.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--gc-blue-hover: #5b24ff;
44
--gc-purple: #0D0764;
55
--gc-purple-hover: #0b0d9d;
6-
--gc-green: #05B66A;
6+
--gc-green: #0ECF7C;
77
--gc-green-hover: #15ef91;
88

99
--text-light: #D8D8D8;

app/assets/v2/css/gitcoin.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,25 +188,23 @@ div.button-pink {
188188
color: #12c971;
189189
font-size: 2em;
190190
font-weight: 500;
191-
font-style: italic;
192191
}
193192

194193
.header-line-contributors {
195-
letter-spacing: 0.5px;
196-
font-weight: 700;
194+
font-weight: 500;
195+
color: #fff;
197196
}
198197

199198
.subheader-line {
200-
color: #70efbe;
199+
color: #fff;
201200
font-size: 1.5em;
202201
font-weight: 500;
203-
font-style: italic;
204202
}
205203

206204
.subheader-line-contributors {
207205
color: #ffffff;
208206
margin-top: 0.6em;
209-
font-weight: 100;
207+
font-weight: 400;
210208
}
211209

212210
.font-weight-300 {

app/assets/v2/css/home.css

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
.homepage .container {
2+
padding-bottom: 4rem;
3+
padding-top: 4rem;
4+
}
5+
6+
#banner {
7+
background-color: #0d023b;
8+
background-size: cover;
9+
background-position: 0px 0px;
10+
background-repeat: no-repeat;
11+
position: relative;
12+
color: #fff;
13+
padding-top: 8rem;
14+
}
15+
16+
#optimize_oss p,
17+
#realign p {
18+
color: #4A4A4A;
19+
}
20+
21+
#banner h1 {
22+
font-weight: normal;
23+
font-size: 2rem;
24+
}
25+
26+
#banner h1,
27+
#banner p {
28+
margin-bottom: 2.5rem;
29+
}
30+
31+
#banner .buttons {
32+
display: flex;
33+
justify-content: center;
34+
}
35+
36+
.homepage .btn-gc-green {
37+
color: #0D0764;
38+
}
39+
40+
.watch a {
41+
color: #0D0764;
42+
}
43+
44+
#articles .article {
45+
text-decoration: none;
46+
}
47+
48+
#articles img {
49+
max-width: 100%;
50+
}
51+
52+
#articles h3 {
53+
font-weight: bold;
54+
font-size: 1.3rem;
55+
min-height: 3rem;
56+
color: #000;
57+
}
58+
59+
#articles p {
60+
color: rgba(0,0,0,.54);
61+
}
62+
63+
#press img {
64+
height: 4.25rem;
65+
padding: 0.5rem;
66+
filter: grayscale(100%);
67+
transition: filter 0.3s;
68+
}
69+
70+
#press img:hover {
71+
filter: grayscale(0%);
72+
}
73+
74+
#press a {
75+
margin: auto;
76+
}
77+
78+
#banner .buttons a {
79+
flex-grow: 1;
80+
font-weight: 600;
81+
}
82+
83+
.button__home {
84+
border: 3px solid #3E00FF;
85+
color: #3E00FF;
86+
font-weight: 600;
87+
text-align: left;
88+
padding: 1rem 1.8rem;
89+
margin-bottom: 1.9rem;
90+
}
91+
92+
.button__home i {
93+
float: right;
94+
position: relative;
95+
top: 4px;
96+
}
97+
98+
.button__home,
99+
#products .btn {
100+
width: 20rem;
101+
}
102+
103+
.button__home:hover {
104+
background-color: #3E00FF;
105+
color: #fff !important;
106+
border-radius: 3px;
107+
}
108+
109+
.row h2 {
110+
font-weight: 500;
111+
font-size: 1.75rem;
112+
margin-bottom: 0.6rem;
113+
}
114+
115+
img#cards {
116+
position: relative;
117+
margin-top: -10rem;
118+
margin-bottom: 3rem;
119+
}
120+
121+
img.play {
122+
max-height: 3rem;
123+
}
124+
125+
#products {
126+
background-color: #3E00FF;
127+
margin-top: 10rem;
128+
text-align: center;
129+
color: #fff;
130+
}
131+
132+
#realign,
133+
#know_us {
134+
background-color: #F8F9FA;
135+
}
136+
137+
#products .bot-circle {
138+
margin-top: -8rem;
139+
}
140+
141+
#products .product {
142+
border: 3px solid #ffff;
143+
margin-bottom: 1rem;
144+
font-weight: 600;
145+
text-align: left;
146+
padding: 1.5rem 5rem 1.5rem 2rem;
147+
border-radius: 3px;
148+
}
149+
150+
#products .product h2 {
151+
margin-bottom: 1.5rem;
152+
font-size: 1.25rem;
153+
font-weight: bold;
154+
}
155+
156+
#products .product h2 img {
157+
height: 2rem;
158+
position: relative;
159+
top: -4px;
160+
margin-right: 0.2rem;
161+
}
162+
163+
#products .product p {
164+
margin-bottom: 0.5rem;
165+
}
166+
167+
#products .product i {
168+
font-size: 0.8rem;
169+
}
170+
171+
#products .product a {
172+
color: #fff;
173+
text-decoration: none;
174+
}
175+
176+
#products .product a:hover {
177+
border-bottom: 1px solid #fff;
178+
}
179+
180+
#realign iframe {
181+
max-width: 100%;
182+
}
183+
184+
#realign .video-thumbnail {
185+
z-index:300;
186+
position:absolute;
187+
top:-4px;
188+
left:0;
189+
width:100%;
190+
height: 100%;
191+
display:block;
192+
}
193+
194+
#realign .video-frame {
195+
z-index:100;
196+
position: relative;
197+
top:0;
198+
left:0;
199+
width:100%;
200+
}
201+
202+
.button__blue {
203+
background-color: #3E00FF;
204+
color: #fff !important;
205+
font-weight: 600;
206+
}
207+
208+
.button__blue:hover {
209+
background-color: #fff;
210+
color: #3E00FF !important;
211+
}
212+
213+
.button__green {
214+
border: 3px solid #0ECF7C;
215+
background-color: #0ECF7C;
216+
color: #fff !important;
217+
font-weight: 600;
218+
}
219+
220+
figure {
221+
position: relative;
222+
overflow: hidden;
223+
}
224+
225+
figure::before {
226+
position: absolute;
227+
top: 0;
228+
left: -75%;
229+
z-index: 2;
230+
display: block;
231+
content: '';
232+
width: 50%;
233+
height: 100%;
234+
-webkit-transform: skewX(-25deg);
235+
transform: skewX(-25deg);
236+
}
237+
238+
figure:hover::before {
239+
-webkit-animation: shine .75s;
240+
animation: shine .75s;
241+
background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
242+
}
243+
244+
@-webkit-keyframes shine {
245+
100% {
246+
left: 125%;
247+
}
248+
}
249+
250+
@keyframes shine {
251+
100% {
252+
left: 125%;
253+
}
254+
}
255+
256+
@media (max-width: 1199.98px) {
257+
img#cards {
258+
margin-top: -4rem;
259+
}
260+
261+
#banner img {
262+
position: absolute;
263+
bottom: -2px;
264+
}
265+
}
266+
267+
@media (max-width: 991.98px) {
268+
.realign-img,
269+
.optimize-img {
270+
max-width: 15rem;
271+
}
272+
273+
.optimize-img {
274+
margin-top: 4rem;
275+
}
276+
277+
#realign #sustainability {
278+
margin-bottom: 10rem;
279+
}
280+
281+
#realign .video-thumbnail {
282+
height: auto;
283+
}
284+
285+
.bots-img {
286+
display: none;
287+
}
288+
289+
#banner {
290+
padding-bottom: 5rem;
291+
}
292+
293+
#articles .article {
294+
margin-bottom: 3rem;
295+
}
296+
}
297+
298+
@media (max-width: 767.98px) {
299+
300+
#realign #sustainability {
301+
margin-bottom: 0rem;
302+
}
303+
304+
.row h2 {
305+
margin-bottom: 1.5rem;
306+
}
307+
}

app/assets/v2/images/home/bot-circle.svg

Lines changed: 1 addition & 0 deletions
Loading

app/assets/v2/images/home/bots.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

app/assets/v2/images/home/cards.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

app/assets/v2/images/home/grants.svg

Lines changed: 1 addition & 0 deletions
Loading

app/assets/v2/images/home/kudos.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)