Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding contact us page #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const HeadingContainer = styled.div`
const Text = styled.h2`
${ts40b}
writing-mode: ${props => (props.orientation === 'vertical' ? 'vertical-rl' : 'horizontal-lr')};
padding:20px;
transform: rotate(-180deg);
direction: rtl;
`;
Expand Down
1 change: 1 addition & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export { default as SideLine } from './sideline';
export { default as Heading } from './heading';
export { default as Hero } from './sections/hero';
export { default as About } from './sections/about';
export { default as ContactUs } from './sections/contact';
export { default as Events } from './sections/events';
export { default as PrincipleText } from './principleText';
export { default as Button } from './button';
Expand Down
176 changes: 176 additions & 0 deletions src/components/sections/contact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
import React from 'react';
import styled from 'styled-components';
import { tsm18r, ts50b, ts29r, ts20r, colors, tsm12r } from '@design/theme';
import { media } from '@design/media';
import { Line } from '@components';
import photo from "../../images/team.png";
import { email } from '@config';
import { ts36b } from '../../design/theme';

const lineDisplay = true;

const ContactContainer = styled.div`
min-height:100vh;
display:flex;
flex-direction:column;
align-items: center;

`;

const SectionTitle = styled.div`
${ts50b},
margin-bottom:12%;
padding-bottom: 10%;
margin-left:auto;
margin-right:auto;

display:flex;
align-items:center;
${media.tablet`${ts36b}`};
${media.thone`

`}
${media.phone`
font-size: 29px;
`}
${media.tiny`
font-size: 20px;
`}
`;

const SectionDescription = styled.div`
text-align:center;
width:80%;
${ts29r}
opacity: 0.7;
${media.tablet`${ts20r}`};
${media.thone`
width:80%;
margin-bottom:0x;
`}
${media.phone`
font-size: 18px;
width:80%;
margin-bottom:0px;
`}
${media.tiny`
font-size: 15px;
width:80%;
`}
`;

const SuperImageContainer = styled.div`

display:flex;
justify-content:center;
align-items:center;
margin-top:200px;
${media.tablet`
margin-top:140px;
`};
${media.thone`
margin-top:130px;
`};
${media.phone`
margin-top:110px;
`};
${media.tiny`
margin-top:90px;
`};
`;

const ImageContainer = styled.div`
margin-left:auto;
margin-right:auto;
display:flex;
position:relative;
align-items:center;
justify-content:center;
min-height:100%;
min-width:100%;
`;

const ButtonContainer = styled.a`
z-index:1;
height:100%;

margin-left:auto;
margin-right:auto;
position:relative;
display:flex;
align-items:center;
justify-content:center;
`;

const Image = styled.img`
width:500px;
position:absolute;
z-index:1;
${media.tablet`width:400px`};
${media.thone`
width: 380px;
` }
${media.phablet`
width:350px;
`};
${media.phone`
width:300px;
`}
${media.tiny`
width:250px;
`}
`;

const StyledButton = styled.div`
${tsm18r};
padding: 18px;
color: white;
border: 2px solid white;
border-radius: 5px;
font-weight: bolder;
position: relative;
width:auto;
${media.phone`
${tsm12r};
padding: 16px;
border-width: 1px;
`};
`;

const Contact = styled.div`
display:flex;
margin-left:auto;
margin-right:auto;
align-items:center;
width:70%;
`;


const ContactUs = () => {
return (
<Contact>
<Line style={{
stroke: colors.text,
strokeWidth: '4px',
}} orientation="vertical" maxLength="334px"
/>

<ContactContainer>
<SectionTitle>have queries?</SectionTitle>
<SectionDescription>Our team will love to hear it from you. The goal is to make the club not just the best, but legendary.</SectionDescription>
<SuperImageContainer>
<ImageContainer><Image src={photo} alt="team image" /><ButtonContainer href={`mailto:${email}`}><StyledButton >Say Hello!</StyledButton></ButtonContainer></ImageContainer>
</SuperImageContainer>
</ContactContainer>

<Line style={{
stroke: colors.text,
strokeWidth: '4px',
padding: '20%'
}} orientation="vertical" maxLength="334px" />
</Contact>

);
};

export default ContactUs;
3 changes: 2 additions & 1 deletion src/design/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ export const ts80r = textStyleMixin(80, 'product-sans-regular', 0.5, 97);
export const ts50r = textStyleMixin(50, 'product-sans-regular', 0.5, 61);
export const ts40r = textStyleMixin(40, 'product-sans-regular', 0.4, 48);
export const ts36r = textStyleMixin(36, 'product-sans-regular', 0.6, 36);
export const ts29r = textStyleMixin(29, 'product-sans-regular', 0.6, 29);
export const ts20r = textStyleMixin(20, 'product-sans-regular', 0.2, 24);
export const ts20b = textStyleMixin(20, 'product-sans-bold', 0.2, 24);
export const ts50b = textStyleMixin(50, 'product-sans-bold', 1.56, 61);
export const ts50b = textStyleMixin(50, 'product-sans-bold', 1.875, 61);
export const ts40b = textStyleMixin(40, 'product-sans-bold', 0.67, 49);
export const ts36b = textStyleMixin(36, 'product-sans-bold', 0.6, 36);
export const ts30b = textStyleMixin(30, 'product-sans-bold', 0.6, 36);
Expand Down
1 change: 1 addition & 0 deletions src/images/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { default as AadhyaImage } from './aadhya.png';
export { default as ChallengesImage } from './challenges.png';
export { default as SessionsImage } from './sessions.png';
export { default as WorkshopsImage } from './workshops.png';
export { default as TeamImage } from './team.png';
Binary file added src/images/team.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import React from 'react';
import Layout from '../components/layout';
import SEO from '../components/seo';
import { Hero, Events, About } from '@components';
import { ContactUs } from '../components';

const IndexPage = () => (
<Layout>
<SEO title="Home" />
<Hero />
<Events />
<About />
<ContactUs />
</Layout>
);

Expand Down