Skip to content

Commit

Permalink
Merge pull request #75 from uofa-cmput404/dec_5
Browse files Browse the repository at this point in the history
Dec 5
  • Loading branch information
YouweiPeng authored Dec 6, 2023
2 parents d54cb11 + eaeb5d8 commit 1815cfb
Show file tree
Hide file tree
Showing 47 changed files with 66 additions and 19 deletions.
Binary file modified backend/comment/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/comment/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified backend/comment/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified backend/comment/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified backend/comment/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file modified backend/comment/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/comment/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified backend/comment/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/friendship/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file modified backend/friendship/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified backend/post/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/social/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/social/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file modified backend/social/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/social/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/migrations/__pycache__/0001_initial.cpython-310.pyc
Binary file not shown.
Binary file modified backend/user/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions frontend/pages/AdminPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<script type="module" src="../scripts/adminPage.js"></script>
</head>
<body>
<button id="backButton">Back to Dashboard</button>
<div class="container">
<div class="user-list inactive-users">
<h2>Inactive Users</h2>
Expand Down
12 changes: 6 additions & 6 deletions frontend/pages/notificationPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ <h1>Friend Requests</h1> <!-- List of friend requests -->
</div>

<!-- Either someone has liked your post, or commented on your post. Depending on which one, add in the appropriate node. EACH NODE IS CLICKABLE TO TAKE YOU TO THE POST.-->
<div class="likedCommentedStream">
<!-- <div class="likedCommentedStream"> -->

<h1>Notifications</h1> <!-- Someone has liked your post, someone has commented: ... -->
<div id="likedNode">
<!-- <h1>Notifications</h1> <!-- Someone has liked your post, someone has commented: ... -->
<!-- <div id="likedNode">
<div class="sender">"XYZ" Liked your post</div>
<img id="likedIcon" src="../images/likedIcon.png" alt="">
</div>
</div> -->

<div id="commentedNode">
<!-- <div id="commentedNode">
<div class="sender">"XYZ" Commented: "......................"</div>
<img src="../images/commentIcon.png" alt="" id="commentedIcon">
</div>
</div>
</div> -->

<!-- This one is super simple. Just 1 div where you replace the "XYZ" with user, and make it clickable to the post link. -->
<div class="inboxStream">
Expand Down
4 changes: 1 addition & 3 deletions frontend/pages/userProfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
<hr class="divider">

<!-- 3) Other Content -->
<div class="userContent">
<p>< Can put other content here ></p>
</div>


</div>

Expand Down
29 changes: 27 additions & 2 deletions frontend/static/social/stylesheets/adminPage.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@

.container {
display: flex;
justify-content: space-between;
justify-content: space-around;
}
.user-list {
width: 45%;
flex: 0 0 40%;
border: 1px solid black;
padding: 12px;
border-radius: 8px;
}
.active-users {
border-right: 2px solid #000;
flex: 0 0 40%;
height: 80vh;
}
.user-item {
padding: 10px;
border-bottom: 1px solid #ccc;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
margin-bottom: 2rem;

}

.button-container {
Expand Down Expand Up @@ -62,3 +69,21 @@
margin-bottom: 10px;
}

#backButton{
cursor: pointer;
outline: 0;
display: inline-block;
font-weight: 400;
line-height: 1.5;
text-align: center;
background-color: transparent;
border: 2px solid transparent;
padding: 6px 12px;
font-size: 1.5rem;
border-radius: .25rem;
margin-bottom: 1rem;

color: #0d6efd;
border-color: #0d6efd;
}

23 changes: 22 additions & 1 deletion frontend/static/social/stylesheets/homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,11 @@ dialog::backdrop{
transform: translate(-50%, -50%);
z-index: 10;
position: fixed;
width: 550px;
width: 450px;
height: fit-content;
margin-top: 10px;
border-radius: 12px;
border: 2px solid var(--darkText);
display: none;
}
.select-btn{
Expand Down Expand Up @@ -511,6 +512,26 @@ dialog::backdrop{
padding: 16px;
background-color: #fff;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
border: 1px solid var(--niceGray);
}

.list-items .share-posts-btn{

display: inline-block;
outline: none;
cursor: pointer;
font-weight: 500;
border-radius: 3px;
padding: 0 15px;
border-radius: 4px;
color: #6200ee;
background: transparent;
line-height: 1.15;
height: 36px;
min-width: 64px;
border: 1px solid #6200ee;
text-align: center;

}
.select-btn.open ~ .list-items{
display: block;
Expand Down
3 changes: 3 additions & 0 deletions frontend/static/social/stylesheets/myProfile.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ body{
.content .stream{
padding-top: 5rem;
align-items: center;
flex-direction: column;
border-radius: 12px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

hr.divider {
Expand Down
13 changes: 6 additions & 7 deletions frontend/static/social/stylesheets/notificationPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
.content{
overflow: auto; /* make it so when content goes out of each column, it adds a scrollbar */
padding: 1rem;
justify-content: space-around;
}

.content h1{
Expand All @@ -50,7 +51,7 @@
/* Structure */
display: flex;
flex-direction: column;
flex: 0 0 33%;
flex: 0 0 40%;
border: 1px solid black;
border-radius: 12px;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
Expand All @@ -62,8 +63,7 @@
padding: 1rem;
}

.likedCommentedStream{
/* Structure */
/* .likedCommentedStream{
display: flex;
flex-direction: column;
flex: 0 0 33%;
Expand All @@ -73,16 +73,15 @@
overflow-y: auto;
min-height: min-content;
/* Styling */
gap: 1rem; /* Gap between nodes */
gap: 1rem;
padding: 1rem;
}
} */

.inboxStream{
/* Structure */
display: flex;
flex-direction: column;
flex: 0 0 33%;
flex: 0 0 40%;
border: 1px solid black;
border-radius: 12px;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
Expand Down

0 comments on commit 1815cfb

Please sign in to comment.