-
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.
Merge branch 'main' of https://github.com/Gaurav-Verma07/sampark into…
… provider
- Loading branch information
Showing
35 changed files
with
926 additions
and
413 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
|
||
const useStyles = createStyles((theme) => ({ | ||
main: { | ||
position: 'relative', | ||
}, | ||
})); | ||
|
||
export default useStyles; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,98 @@ | ||
import { | ||
createStyles, | ||
SimpleGrid, | ||
Card, | ||
Image, | ||
Text, | ||
Container, | ||
AspectRatio, | ||
Box, | ||
Paper, | ||
Title, | ||
useMantineTheme, | ||
} from '@mantine/core'; | ||
import { mockdata } from './sampleData'; | ||
import useStyles from './styles'; | ||
import Logo from '../../assets/Images/samparklogotransparent.png'; | ||
|
||
const Blogs = () => { | ||
const { classes } = useStyles(); | ||
const theme = useMantineTheme(); | ||
|
||
const cards = mockdata.map((article) => ( | ||
<Card | ||
shadow="sm" | ||
key={article.title} | ||
p="md" | ||
radius="md" | ||
component="a" | ||
href="#" | ||
className={classes.card} | ||
> | ||
<AspectRatio ratio={1920 / 1080}> | ||
<Image src={article.image} /> | ||
</AspectRatio> | ||
<Text color="dimmed" size="xs" transform="uppercase" weight={700} mt="md"> | ||
{article.date} | ||
</Text> | ||
<Text className={classes.title} align="left" mt={5}> | ||
{article.title} | ||
{/* <Text component='span'color= {theme.colors.red[5]} td= "underline" weight= "200" > Read more</Text> */} | ||
</Text> | ||
{/* <Text color= {theme.colors.red[5]} td= "underline" align= "left" weight= "200" > Read more</Text> */} | ||
</Card> | ||
)); | ||
|
||
return ( | ||
<Paper m={20} px={70} mb={70}> | ||
<Box> | ||
<Title | ||
order={3} | ||
py={20} | ||
tt="capitalize" | ||
weight="400" | ||
color="teal" | ||
align="left" | ||
> | ||
Read more about our work through our blogs... | ||
</Title> | ||
</Box> | ||
<SimpleGrid cols={3} breakpoints={[{ maxWidth: 'sm', cols: 1 }]}> | ||
{cards} | ||
<Card | ||
shadow="lg" | ||
// align= "center" | ||
p="md" | ||
radius="md" | ||
sx={{ backgroundColor: theme.colors.teal[0] }} | ||
component="a" | ||
href="#" | ||
className={classes.card} | ||
> | ||
{/* <AspectRatio ratio={1920 / 1080} > */} | ||
<Image pl={56} src={Logo} width={250} height={250} /> | ||
{/* </AspectRatio> */} | ||
<Text | ||
color="dimmed" | ||
size="xs" | ||
transform="uppercase" | ||
weight={700} | ||
mt="md" | ||
> | ||
{/* {article.date} */} | ||
</Text> | ||
<Text className={classes.title} align="left" mt={5}> | ||
{/* {article.title} */} | ||
{/* <Text component='span'color= {theme.colors.red[5]} td= "underline" weight= "200" > Read more</Text> */} | ||
</Text> | ||
<Text color={theme.colors.red[5]} td="underline" weight="200"> | ||
{' '} | ||
Read more articles... | ||
</Text> | ||
</Card> | ||
</SimpleGrid> | ||
</Paper> | ||
); | ||
}; | ||
|
||
export default Blogs; |
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,27 @@ | ||
export const mockdata = [ | ||
{ | ||
title: | ||
'Clothes distribution to orphanage childrens by IET Lucknow students ', | ||
image: | ||
'https://images.unsplash.com/photo-1527004013197-933c4bb611b3?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=720&q=80', | ||
date: 'August 18, 2022', | ||
}, | ||
{ | ||
title: 'Best forests to visit in North America', | ||
image: | ||
'https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=720&q=80', | ||
date: 'August 27, 2022', | ||
}, | ||
{ | ||
title: 'Hawaii beaches review: better than you think', | ||
image: | ||
'https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=720&q=80', | ||
date: 'September 9, 2022', | ||
}, | ||
{ | ||
title: 'Mountains at night: 12 best locations to enjoy the view', | ||
image: | ||
'https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=720&q=80', | ||
date: 'September 12, 2022', | ||
}, | ||
]; |
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,19 @@ | ||
import { createStyles } from '@mantine/styles'; | ||
|
||
const useStyles = createStyles((theme) => ({ | ||
card: { | ||
transition: 'transform 150ms ease, box-shadow 150ms ease', | ||
|
||
'&:hover': { | ||
transform: 'scale(1.01)', | ||
boxShadow: theme.shadows.md, | ||
}, | ||
}, | ||
|
||
title: { | ||
fontFamily: `Greycliff CF, ${theme.fontFamily}`, | ||
fontWeight: 600, | ||
}, | ||
})); | ||
|
||
export default useStyles; |
Oops, something went wrong.