-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from sanam2405/feed
feed ui init
- Loading branch information
Showing
15 changed files
with
263 additions
and
34 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 |
---|---|---|
@@ -1,24 +1,41 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" type="image/x-icon" href="public/images/favicon.ico" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Courier+Prime&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Courier+Prime:ital@0;1&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/x-icon" | ||
href="/favicon.ico" | ||
/> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.googleapis.com" | ||
/> | ||
<link | ||
rel="preconnect" | ||
href="https://fonts.gstatic.com" | ||
crossorigin | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Courier+Prime&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Courier+Prime:ital@0;1&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<title>Privacy Network</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
<title>Privacy Network</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script | ||
type="module" | ||
src="/src/main.tsx" | ||
></script> | ||
</body> | ||
</html> |
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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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,89 @@ | ||
import { FC, useState } from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { Swiper, SwiperSlide } from "swiper/react"; | ||
import { Navigation, Pagination, Scrollbar } from "swiper/modules"; | ||
import "swiper/swiper-bundle.css"; | ||
import { CardHeader, CardMedia, CardContent, CardActions } from "@mui/material"; | ||
import { Avatar, IconButton, Typography } from "@mui/material"; | ||
import { Favorite, MoreVert } from "@mui/icons-material"; | ||
import CommentIcon from "@mui/icons-material/Comment"; | ||
import ShareIcon from "@mui/icons-material/Share"; | ||
import { monthOfTheYear } from "../constants"; | ||
import CarousalCSS from "../styles/Carousal.module.css"; | ||
|
||
const images = ["/sanam.jpg", "rp.jpg"]; | ||
const avatarImage = "/rimjhim.svg"; | ||
|
||
export const Carousal: FC = () => { | ||
const [click, setClick] = useState(true); | ||
const navigate = useNavigate(); | ||
const currentDate = new Date(); | ||
const day = currentDate.getDate(); | ||
const month = monthOfTheYear[currentDate.getMonth()]; | ||
const year = currentDate.getFullYear(); | ||
const formattedDate = `${month} ${day}, ${year}`; | ||
|
||
const handleClick = () => { | ||
setClick(!click); | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<div className={CarousalCSS.card}> | ||
<div className={CarousalCSS.CardContent}> | ||
<CardHeader | ||
avatar={<Avatar src={avatarImage} />} | ||
title="__bokaboka__" | ||
subheader={formattedDate} | ||
action={ | ||
<IconButton> | ||
<MoreVert /> | ||
</IconButton> | ||
} | ||
/> | ||
<Swiper | ||
modules={[Navigation, Pagination, Scrollbar]} | ||
spaceBetween={0} | ||
grabCursor | ||
keyboard={{ enabled: true }} | ||
navigation | ||
pagination={{ clickable: true }} | ||
loop | ||
breakpoints={{}} | ||
> | ||
{images.map((image, index) => ( | ||
<SwiperSlide key={index}> | ||
<CardMedia | ||
component="img" | ||
className={CarousalCSS.CardMedia} | ||
image={image} | ||
/> | ||
</SwiperSlide> | ||
))} | ||
</Swiper> | ||
</div> | ||
<CardActions disableSpacing> | ||
<IconButton> | ||
<Favorite onClick={handleClick} /> | ||
</IconButton> | ||
<IconButton> | ||
<CommentIcon onClick={handleClick} /> | ||
</IconButton> | ||
<IconButton> | ||
<ShareIcon onClick={handleClick} /> | ||
</IconButton> | ||
</CardActions> | ||
<CardContent> | ||
<Typography | ||
variant="body2" | ||
color="textSecondary" | ||
component="p" | ||
className="tiro-bangla-regular" | ||
> | ||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Excepturi at | ||
eius in corrupti, quas ullam alias psa odit? | ||
</Typography> | ||
</CardContent> | ||
</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 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,18 @@ | ||
import { FC } from "react"; | ||
import FeedCSS from "../styles/Feed.module.css"; | ||
import { Carousal } from "../components/Carousal"; | ||
|
||
export const Feed: FC = () => { | ||
return ( | ||
<div className={FeedCSS.container}> | ||
<Carousal /> | ||
<Carousal /> | ||
<Carousal /> | ||
<Carousal /> | ||
<Carousal /> | ||
<Carousal /> | ||
<Carousal /> | ||
<Carousal /> | ||
</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 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
Oops, something went wrong.
4f19da8
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:
privacy-network – ./
privacy-network-manas-pratim-biswas-projects.vercel.app
privacy-network-git-main-manas-pratim-biswas-projects.vercel.app
privacy-network.vercel.app
privacynetwork.manaspratimbiswas.com