Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Gaurav-Verma07/sampark into…
Browse files Browse the repository at this point in the history
… provider
  • Loading branch information
coderharsh607 committed Mar 2, 2023
2 parents 87a4c9d + 7d9a6bd commit 9e97fe7
Show file tree
Hide file tree
Showing 11 changed files with 360 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Seeker from './Pages/Seeker';
function App() {
return (
<div className="App">
<Routes>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/login" element={<AuthenticationForm />} />
<Route path="/admin" element={<Admin />} />
Expand Down
8 changes: 6 additions & 2 deletions src/Pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from 'react';
import HeroSection from '../../components/HeroSection/HeroSection';
import { OurValues } from '../../components/HomeOurValues/OurValues';
import {ContactUs} from '../../components/ContactUs/ContactUs';
// import { OurValues} from '../../components/HomeOurValues/OurValues';
import OurValues1 from '../../components/HomeOurValues/OurValues1';

function Home() {
return (
<div>
<HeroSection />
<OurValues />
<OurValues1 />
<ContactUs/>
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/assets/Images/sampark_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/sakar-sign-25kb-_1_.jpeg
Binary file not shown.
132 changes: 132 additions & 0 deletions src/components/ContactUs/ContactUs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import {
createStyles,
Text,
Title,
SimpleGrid,
TextInput,
Textarea,
Button,
Group,
ActionIcon,
} from '@mantine/core';
import { IconBrandTwitter, IconBrandYoutube, IconBrandInstagram } from '@tabler/icons';
// import { ContactIconsList } from '../ContactIcons/ContactIcons';

const useStyles = createStyles((theme) => ({
wrapper: {
minHeight: 400,
boxSizing: 'border-box',
backgroundImage: `linear-gradient(-60deg, ${theme.colors.gray[5]} 0%, ${
theme.colors.gray[8]
} 100%)`,
borderRadius: theme.radius.md,
padding: theme.spacing.xl * 2.5,

[`@media (max-width: ${theme.breakpoints.sm}px)`]: {
padding: theme.spacing.xl * 1.5,
},
},

title: {
fontFamily: `Greycliff CF, ${theme.fontFamily}`,
color: theme.white,
lineHeight: 1,
},

description: {
color: theme.colors[theme.primaryColor][0],
maxWidth: 300,

[`@media (max-width: ${theme.breakpoints.sm}px)`]: {
maxWidth: '100%',
},
},

form: {
backgroundColor: theme.white,
padding: theme.spacing.xl,
borderRadius: theme.radius.md,
boxShadow: theme.shadows.lg,
},

social: {
color: theme.white,

'&:hover': {
color: theme.colors[theme.primaryColor][1],
},
},

input: {
backgroundColor: theme.white,
borderColor: theme.colors.gray[4],
color: theme.black,

'&::placeholder': {
color: theme.colors.gray[5],
},
},

inputLabel: {
color: theme.black,
},

control: {
backgroundColor: theme.colors[theme.primaryColor][6],
},
}));

const social = [IconBrandTwitter, IconBrandYoutube, IconBrandInstagram];

export function ContactUs() {
const { classes } = useStyles();

const icons = social.map((Icon, index) => (
<ActionIcon key={index} size={28} className={classes.social} variant="transparent">
<Icon size={22} stroke={1.5} />
</ActionIcon>
));

return (
<div className={classes.wrapper}>
<SimpleGrid cols={2} spacing={50} breakpoints={[{ maxWidth: 'sm', cols: 1 }]}>
<div>
<Title className={classes.title}>Contact us</Title>
<Text className={classes.description} mt="sm" mb={30}>
Leave your email and we will get back to you within 24 hours
</Text>

{/* <ContactIconsList variant="white" /> */}

<Group mt="xl">{icons}</Group>
</div>
<div className={classes.form}>
<TextInput
label="Email"
placeholder="your@email.com"
required
classNames={{ input: classes.input, label: classes.inputLabel }}
/>
<TextInput
label="Name"
placeholder="John Doe"
mt="md"
classNames={{ input: classes.input, label: classes.inputLabel }}
/>
<Textarea
required
label="Your message"
placeholder="I want to order your goods"
minRows={4}
mt="md"
classNames={{ input: classes.input, label: classes.inputLabel }}
/>

<Group position="right" mt="md">
<Button className={classes.control}>Send message</Button>
</Group>
</div>
</SimpleGrid>
</div>
);
}
14 changes: 5 additions & 9 deletions src/components/HeroSection/HeroSection.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@

import React from 'react';
// import NavBar from '../NavBar';
// import homeImg from '../assets/Images/homeImg.jpg'
import './styles.css';
// import { Wrapper, Status } from "@googlemaps/react-wrapper";

// const render = (status: Status): ReactElement => {
// if (status === Status.FAILURE) return <ErrorComponent />;
// return <Spinner />;
// };

function HeroSection() {
return (
<>
<div className="hero-section">
<div className="container">
<h1>SAMPARK</h1>
<h1>SAMPARK</h1>
<p>
We connect slum and orphange kids with local colleges and NGOs to end
poverty.
</p>
<button>Donate</button>
</div>
{/* <Wrapper apiKey={"YOUR_API_KEY"}>
<MyMapComponent /> */}
{/* </Wrapper> */}
</div>
</>
);
}

Expand Down
13 changes: 11 additions & 2 deletions src/components/HeroSection/styles.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
.navbar{
margin-bottom: 5rem;
}



.hero-section {
width: 98.9vw;
width: 99vw;
height: 100vh;
/* background-color: black; */
background-image: url('../../assets/Images/homeImg.jpg');
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-size: cover;
color: white;
}


.hero-section h1 {
font-size: 4rem;
font-family: 'Tilt Neon', cursive;
Expand Down Expand Up @@ -46,3 +54,4 @@
text-align: center;
font-family: 'futura-pt', sans-serif;
}

15 changes: 12 additions & 3 deletions src/components/HomeOurValues/OurValues.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
import { Grid, Container, Text, Title, Paper } from '@mantine/core';
import { Grid, Container, Text, Title, Paper, createStyles } from '@mantine/core';

// const child = <Skeleton height={140} radius="md" animate={false} />;
const useStyles = createStyles(() => ({
grid:{
backgroundColor:'red'
},
}));



export function OurValues() {
const { classes, cx } = useStyles();

return (
<Paper className="value-section">
<Title order={1} weight={100}>
OUR VALUES
</Title>
<Container my="md">
<Grid>
<Grid.Col className="grid-col" xs={4}>
<Grid.Col xs={4} className= {cx("grid-col", classes.grid)}>
<Title order={2}>INTERCONNECTION</Title>
<Text>
<Text fz="xs" color= "teal">
Our liberty is bound together. No person, community, or ecosystem
exists in isolation, which means we need each other, and we need
to learn from each other. It also means the safety and wellbeing
Expand Down
81 changes: 81 additions & 0 deletions src/components/HomeOurValues/OurValues1.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import React from 'react'
import './Values.css'
function OurValues1() {
return (
<div>
<div className="values-container">
<h1 className='values-heading'>
OUR VALUES
</h1>
<hr />
<div className="values-box-1">

<div className="values-content">
<h1>1</h1>
<hr />
<p>
Our liberty is bound together. No person, community, or ecosystem
exists in isolation, which means we need each other, and we need
to learn from each other. It also means the safety and wellbeing
of people are inextricably linked to the safety and wellbeing of
our natural world.
</p>

</div>
<div className="values-content">
<h1>2</h1>
<hr />
<p>
Our liberty is bound together. No person, community, or ecosystem
exists in isolation, which means we need each other, and we need
to learn from each other. It also means the safety and wellbeing
of people are inextricably linked to the safety and wellbeing of
our natural world.
</p>
</div>

<div className="values-content">
<h1>3</h1>
<hr />
<p>
Our liberty is bound together. No person, community, or ecosystem
exists in isolation, which means we need each other, and we need
to learn from each other. It also means the safety and wellbeing
of people are inextricably linked to the safety and wellbeing of
our natural world.
</p>
</div>
</div>

<div className="values-box-2">


<div className="values-content">
<h1>INTEGRITY</h1>
<hr />
<p>
Our liberty is bound together. No person, community, or ecosystem
exists in isolation, which means we need each other, and we need
to learn from each other. It also means the safety and wellbeing
of people are inextricably linked to the safety and wellbeing of
our natural world.
</p>
</div>
<div className="values-content values-content-2">
<h1>INTEGRITY</h1>
<hr />
<p>
Our liberty is bound together. No person, community, or ecosystem
exists in isolation, which means we need each other, and we need
to learn from each other. It also means the safety and wellbeing
of people are inextricably linked to the safety and wellbeing of
our natural world.
</p>
</div>
</div>
</div>
</div>
)
}

export default OurValues1
Loading

0 comments on commit 9e97fe7

Please sign in to comment.