Skip to content

Commit

Permalink
prettified alarm add friends
Browse files Browse the repository at this point in the history
  • Loading branch information
jess-young committed Oct 16, 2022
1 parent baa7040 commit 259c6e1
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 9 deletions.
Binary file added backend/__pycache__/database.cpython-310.pyc
Binary file not shown.
Binary file added backend/__pycache__/model.cpython-310.pyc
Binary file not shown.
Binary file added backend/__pycache__/twilio_routes.cpython-310.pyc
Binary file not shown.
Binary file added backend/__pycache__/users.cpython-310.pyc
Binary file not shown.
8 changes: 7 additions & 1 deletion frontend/src/components/FriendSearch/FriendSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ function FriendSearch() {
onChange={inputHandler}
/>
{response && <><small style={{ color: 'red' }}>{response}</small><br /></>}<br />
<Button onClick={handleSubmit}>Add Friend</Button>
<Button
style={{ marginTop: "10px", backgroundColor: "rgba(186,209,250)", fontFamily: "DM SANS", textTransform: "lowercase", color: "black", boxShadow: "none", marginRight: "10px" }}
onClick={handleSubmit}
variant="contained"
>
Add Friend
</Button>
</div>
<p class="title"> current friends</p>
{/* <List>
Expand Down
12 changes: 9 additions & 3 deletions frontend/src/components/FriendsDropdown/FriendDropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

.title {
font-weight: bold;
font-size: 25px;
}

#second-box {
Expand Down Expand Up @@ -43,14 +44,19 @@
}

#curr-oncall {
margin-top: 8vh;
margin-top: 25px;
}

#demo-multiple-name {
/* #demo-multiple-name {
text-align-last: center;
width: 5vw;
}
} */

#demo-multiple-name-label {
font-family: 'DM Sans';
}

.button-box {
display: flex;
flex-direction: row;
}
25 changes: 20 additions & 5 deletions frontend/src/components/FriendsDropdown/FriendsDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function FriendsDropdown() {
<div id="outer-box">
<div id="inner-box">
<img id="beepbeep" src={require("../../assets/beepbeep.png")}></img>
<p class="title">add friends to your alarm!</p>
<div class="title" style={{ marginBottom: "15px" }}>add friends to your alarm!</div>
<FormControl sx={{ m: 1, width: 300 }}>
<InputLabel id="demo-multiple-name-label">friends</InputLabel>
<Select
Expand All @@ -116,10 +116,25 @@ export default function FriendsDropdown() {
</FormControl>
</div>
<div id="second-box">
<Button id="oncall-button" onClick={handleSubmit}>add</Button>
<Button id="oncall-button" onClick={navigateFriends}>find more friends</Button>
<p class="title" id="curr-oncall">current oncall friends</p>
<List>
<div id="button-box">
<Button
style={{ marginTop: "10px", backgroundColor: "rgba(186,209,250)", fontFamily: "DM SANS", textTransform: "lowercase", color: "black", boxShadow: "none", marginRight: "10px" }}
id="oncall-button"
onClick={handleSubmit}
variant="contained"
>
add
</Button>
<Button
style={{ marginTop: "10px", backgroundColor: "rgba(255, 242, 134, .7)", fontFamily: "DM SANS", textTransform: "lowercase", color: "black", boxShadow: "none" }}
id="oncall-button"
onClick={navigateFriends}
>
find more friends
</Button>
</div>
<div class="title" id="curr-oncall">current oncall friends</div>
<List style={{ textAlignLast: "center" }}>
<>
{
onCall.map(friend =>
Expand Down

0 comments on commit 259c6e1

Please sign in to comment.