-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,680 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
package-lock.json | ||
yarn.lock | ||
node_modules | ||
# any other unwanted files or folders | ||
# any other unwanted files or folders | ||
dist |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
7d9a6bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sampark – ./
sampark-sampark-s-team.vercel.app
sampark-nine.vercel.app
sampark-git-main-sampark-s-team.vercel.app