Skip to content

Commit

Permalink
More styling
Browse files Browse the repository at this point in the history
  • Loading branch information
markohanesian committed Jul 8, 2024
1 parent 89f0811 commit 5c0009d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/components/ProfileMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export default function AccountMenu() {
PaperProps={{
elevation: 0,
sx: {
background: "#101010",
border: "1px solid #fff",
overflow: 'visible',
filter: 'drop-shadow(0px 2px 8px rgba(0,0,0,0.32))',
mt: 1.5,
Expand All @@ -69,7 +71,6 @@ export default function AccountMenu() {
right: 14,
width: 10,
height: 10,
bgcolor: 'background.paper',
transform: 'translateY(-50%) rotate(45deg)',
zIndex: 0,
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/SignOutBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const signOutBtnStyle = {
fontFamily: "sans-serif",
fontSize: "16px",
padding: "10px 20px",
border: "1px solid rgb(139, 195, 74)",
border: "none",
backgroundColor: "transparent",
color: "rgb(139, 195, 74)",
cursor: "pointer",
Expand Down
34 changes: 17 additions & 17 deletions src/components/home.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import React, { useContext } from 'react';
import CreatePost from './CreatePost';
import Feed from './feed';
import { UserContext } from '../contexts/user';
import React, { useContext } from "react";
import CreatePost from "./CreatePost";
import Feed from "./feed";
import { UserContext } from "../contexts/user";

const homeStyle = {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
backgroundColor: '#101010 '
}
display: "flex",
flexDirection: "column",
alignItems: "center",
backgroundColor: "#101010",
};

export default function Home() {
const [user] = useContext(UserContext).user;
return (
<div style={homeStyle}>
<CreatePost />
{/* if user is signed in, display feed */}
{user && <Feed />}
</div>
);
const [user] = useContext(UserContext).user;
return (
<div style={homeStyle}>
<CreatePost />
{/* if user is signed in, display feed */}
{user && <Feed />}
</div>
);
}

0 comments on commit 5c0009d

Please sign in to comment.