-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathindex.js
More file actions
143 lines (135 loc) · 5.13 KB
/
index.js
File metadata and controls
143 lines (135 loc) · 5.13 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import React, { Fragment } from 'react';
import classNames from 'classnames';
import Button from '../components/Button';
import Footer from '../components/Footer';
import Header from '../components/Header';
import MainNav from '../components/MainNav';
import SEO from '../components/SEO';
import FacebookIcon from '../components/Icon/Facebook';
import GithubIcon from '../components/Icon/Github';
import TwitterIcon from '../components/Icon/Twitter';
import aboutImage from '../assets/images/about.svg';
import missionImage from '../assets/images/mission.svg';
import contactImage from '../assets/images/contact.svg';
export default function IndexPage() {
return (
<Fragment>
<SEO
title="Home"
description="Connecting developers with mentors worldwide"
/>
<MainNav />
<Header
title={`Coding\nCoach`}
subtitle="Connecting developers with mentors worldwide"
>
<Button
to="https://mentors.codingcoach.io"
className="uppercase shadow-lg"
>
{children="Find a mentor"}
</Button>
</Header>
<Section
title="About"
description="Coding Coach is a free, open-source platform which aims to connect software developers and mentors all over the world. It is built by a group of talented and passionate developers, designers, engineers, and humans who want to make the engineering world a better place to collaborate. This project was born out of a desire to provide a platform to connect mentors and mentees throughout the world at no cost. Coding Coach is created by the people, for the people."
image={aboutImage}
alignRight
/>
<Section
title="Mission"
description="We believe that mentorship should be accessible to all people regardless of location or financial standing. In pursuit of this goal we will provide a free and open source platform to facilitate mentorship connections. Our mission is to foster a greater sense of collaboration and inclusiveness in the technical industry by providing a platform to aid the mentorship process."
image={missionImage}
/>
<Section title="Contact" image={contactImage} alignRight>
<p className="mb-4 text-lg text-secondary-dark leading-normal font-body md:text-right">
We want to hear your thoughts! Feel free to join our
<a
className="inline-block mx-2 text-black border-b border-black no-underline hover:bg-primary-light hover:text-white hover:border-primary-light"
href="https://join.slack.com/t/coding-coach/shared_invite/zt-15kky1m4x-JrrLzQevCLkdyZiaqT_DTg"
>
Slack Organization
</a>
or send us an email at{' '}
<a
className="text-primary-light no-underline hover:underline"
href="mailto:admin@codingcoach.io"
>
admin@codingcoach.io
</a>
</p>
<p className="flex flex-row text-primary-light">
<SocialButton
to="https://twitter.com/codingcoach_io"
Icon={TwitterIcon}
className="mr-6"
/>
<SocialButton
to="https://www.facebook.com/codingcoachio/"
Icon={FacebookIcon}
className="mr-6"
/>
<SocialButton
to="https://github.com/Coding-Coach"
Icon={GithubIcon}
className="mr-6 md:mr-0"
/>
</p>
</Section>
<Footer />
</Fragment>
);
}
function Section({ alignRight, children, description, image, title }) {
const mainCss = classNames('py-32', {
'bg-primary-lighter bg-band bg-band-primary-lighter': !alignRight,
});
const containerCss = classNames('container md:flex', {
'md:flex-row-reverse ': alignRight,
'md:flex-row': !alignRight,
});
const contentCss = classNames('md:flex-1 md:flex md:flex-col', {
'md:items-end md:pl-16': alignRight,
'md:pr-16': !alignRight,
});
const titleCss = classNames(
'text-6xl font-display font-normal uppercase leading-tight mb-6 border-b border-secondary-lightest',
{
'text-primary-light md:text-right': alignRight,
'text-secondary-dark': !alignRight,
}
);
const descriptionCss = classNames(
'text-lg text-secondary-dark leading-normal font-body',
{
'md:text-right': alignRight,
}
);
return (
<section className={mainCss}>
<div className={containerCss}>
<div className={contentCss}>
<h3 className={titleCss} style={{ width: '250px' }}>
{title}
</h3>
{description && <p className={descriptionCss}>{description}</p>}
{children}
</div>
<div className="mt-16 md:mt-0 md:w-2/5">
<img src={image} alt="Illustration" />
</div>
</div>
</section>
);
}
function SocialButton({ className, Icon, to }) {
const css = classNames(
'mt-3 flex justify-center items-center w-16 h-16 border border-primary-light rounded-full hover:bg-primary-light hover:text-white',
className
);
return (
<a href={to} className={css}>
<Icon className="fill-current" width={32} height={32} />
</a>
);
}