Skip to content

Commit

Permalink
feat:added about page
Browse files Browse the repository at this point in the history
  • Loading branch information
SySagar committed Sep 22, 2023
1 parent bbe6223 commit 67287fe
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 10 deletions.
Binary file added public/png/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 17 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ import CreateBlog from "./app/blog/CreateBlog";
import ShowBlog from "./app/blog/ShowBlog";
import NotBlog from "./app/misc/NoBlog";
import AboutUser from "./app/user/AboutUser";
import About from "./app/platform/About";

const router = createBrowserRouter([
{
path: "/",
element: <RootLayout />,
children: [
{
path: "/",
element: <Home />,
},
]
{
path: "/",
element: <Home />,
},
],
},
{
path: "/:blogId",
Expand All @@ -33,7 +34,6 @@ const router = createBrowserRouter([
path: "/",
element: <PrivateRoutes />,
children: [

{
path: "/user/:userId",
element: <AboutUser />,
Expand All @@ -58,6 +58,16 @@ const router = createBrowserRouter([
},
],
},
{
path: "/",
element: <RootLayout />,
children: [
{
path: "/about",
element: <About />,
},
],
},
{
path: "/auth/login",
element: <Login />,
Expand All @@ -74,7 +84,7 @@ const router = createBrowserRouter([

function App() {
return (
<Stack sx={{ background: "#BDBDBD" }}>
<Stack sx={{ background: "#FAF8FF" }}>
<RouterProvider router={router} />
</Stack>
);
Expand Down
76 changes: 76 additions & 0 deletions src/app/platform/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import { IconButton, Stack, Typography } from "@mui/material";
import TwitterIcon from "@mui/icons-material/Twitter";
import InstagramIcon from "@mui/icons-material/Instagram";
import LinkedInIcon from "@mui/icons-material/LinkedIn";

export default function About() {
return (
<Stack paddingY={8} justifyContent={"center"} alignItems={"center"}>
<Stack
width={"70%"}
padding={2}
direction={"row"}
alignItems={"center"}
gap={5}
>
<Stack className="image">
<img src="/png/about.png" width={600} alt="" />
</Stack>

<Stack
flexGrow={1}
gap={8}
justifyContent={"center"}
alignItems={"start"}
>
<Typography variant="h3">Know About Us</Typography>

<Typography variant="body1">
Pensdown is a platform for writers to share their thoughts and ideas
with the world. It is a place where you can write about anything you
want and share it with the world.
</Typography>

<Stack
className="socials"
direction={"row"}
gap={4}
justifyContent={"center"}
width={"100%"}
>
<IconButton>
<InstagramIcon
sx={{
fontSize: "38px",
"&:hover": {
color: "#ff471a",
},
}}
/>
</IconButton>
<IconButton>
<TwitterIcon
sx={{
fontSize: "38px",
"&:hover": {
color: "#1DA1F2",
},
}}
/>
</IconButton>
<IconButton>
<LinkedInIcon
sx={{
fontSize: "38px",
"&:hover": {
color: "#0e76a8",
},
}}
/>
</IconButton>
</Stack>
</Stack>
</Stack>
</Stack>
);
}
2 changes: 1 addition & 1 deletion src/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function Footer() {
<Typography variant="caption">
<a style={{
paddingInline: '5px',
}} className="footer-link" href="/" >
}} className="footer-link" href="/about" >
About
</a>
Expand Down
12 changes: 10 additions & 2 deletions src/layout/headeroptions/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack, Typography } from "@mui/material";
import { Link, Stack, Typography } from "@mui/material";
import HeaderActions from "./HeaderActions";

export default function Header() {
Expand All @@ -23,7 +23,15 @@ export default function Header() {
src="/png/mainicon.png"
alt=""
/>
<Typography fontSize={20} fontWeight={500}>
<Typography
component={Link}
href="/"
style={{
textDecoration: "none",
}}
fontSize={20}
fontWeight={500}
>
Pensdown
</Typography>
</Stack>
Expand Down

0 comments on commit 67287fe

Please sign in to comment.