Skip to content

Commit

Permalink
finish pretty find friends
Browse files Browse the repository at this point in the history
  • Loading branch information
jess-young committed Oct 16, 2022
1 parent 496da21 commit 880ce9d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 16 deletions.
33 changes: 26 additions & 7 deletions frontend/src/components/FriendSearch/FriendSearch.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

.main {
display: flex;
flex-direction: column;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}

.outer-box {
display: flex;
flex-direction: column;
align-items: center;
flex-direction: center;
height: 100vh;
/* margin-top: 10vh; */
font-family: 'DM Sans';
background-color: rgba(186, 209, 250, .2);
}

#add-friends-btn {
margin-top: 10px;
width: 300px;
.title {
font-weight: bold;
font-size: 25px;
margin-bottom: 20px;
}

.search {
display: flex;
flex-direction: column;
align-items: center;
}

#outlined-basic {

}
23 changes: 14 additions & 9 deletions frontend/src/components/FriendSearch/FriendSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ListItem from '@mui/material/ListItem';
import ListItemButton from '@mui/material/ListItemButton';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
import "./FriendSearch.css"
import "./FriendSearch.css";

function FriendSearch() {
const searchUrl = "http://localhost:4000/users/addFriend/"
Expand Down Expand Up @@ -61,26 +61,29 @@ function FriendSearch() {
}, [])

return (
<div className="main">
<p>find friends</p>
<div className="outer-box">
<div className="main">
<div className="title">find friends</div>
<div className="search">
<TextField
style={{ width: "30vw", textAlignLast: 'center' }}
id="outlined-basic"
variant="outlined"
fullWidth
label="Search"
label="search"
size="small"
onChange={inputHandler}
/>
{response && <><small style={{ color: 'red' }}>{response}</small><br /></>}<br />
<Button
style={{ marginTop: "10px", backgroundColor: "rgba(186,209,250)", fontFamily: "DM SANS", textTransform: "lowercase", color: "black", boxShadow: "none", marginRight: "10px" }}
style={{ backgroundColor: "rgba(186,209,250)", fontFamily: "DM SANS", textTransform: "lowercase", color: "black", boxShadow: "none", marginRight: "10px", marginBottom: "5px"}}
onClick={handleSubmit}
variant="contained"
>
Add Friend
add friend
</Button>
</div>
<p class="title">current friends</p>
<p class="title"> current friends</p>
{/* <List>
<>
{
Expand All @@ -89,8 +92,10 @@ function FriendSearch() {
}
</>
</List> */}
</div>
);
</div>

</div>
);
}

export default FriendSearch;
Expand Down

0 comments on commit 880ce9d

Please sign in to comment.