Skip to content

Commit

Permalink
Merge pull request #63 from SE10-IJSE/feature/utilities-developer
Browse files Browse the repository at this point in the history
wall components | models evaluated and bugs fixed
  • Loading branch information
gayanukabulegoda authored Oct 26, 2024
2 parents f9c469f + 950df6e commit 141f110
Show file tree
Hide file tree
Showing 30 changed files with 357 additions and 283 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<a id="readme-top"></a>

[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Closed Pull Requests][closed-pull-requests-shield]][closed-pull-requests-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
Expand All @@ -20,7 +20,7 @@
Welcome to the <strong>SE10 NETWORK</strong> frontend repository! This frontend application serves as the user interface for a social media platform specifically designed for students of <strong>IJSE</strong> (Institute of Software Engineering). It enables students to create and share posts, view updates from others, and receive notifications about important events like birthdays and
campus-related activities.
<br />
<a href="https://github.com/SE10-IJSE/SE10-NETWORK-FRONTEND"><strong>Explore the docs »</strong></a>
<a href="https://github.com/SE10-IJSE/SE10-NETWORK-FRONTEND"><strong>Explore the project »</strong></a>
<br />
<br />
<a href="https://www.figma.com/design/5PdKIjEzJCegZ8EMcPSQxw/SE10---Galle-Branch?node-id=1669-162202&node-type=canvas&t=7zzsFOiX0p3oQuxe-0">View Design</a>
Expand Down Expand Up @@ -58,6 +58,7 @@ campus-related activities.
<li>
<a href="#backend-repository">Backend Repository</a>
</li>
<li><a href="#top-contributors">Top contributors</a></li>
<li><a href="#license">License</a></li>
</ol>
</details>
Expand Down Expand Up @@ -141,7 +142,7 @@ Follow these steps to install and set up the project on your local machine:

## API Documentation

Refer to the [Postman API Documentation](https://documenter.getpostman.com/view/35384124/2sA3s4nAij) for detailed API endpoints and usage instructions.
Refer to the [Postman API Documentation](https://documenter.getpostman.com/view/39303999/2sAY4sjQPn) for detailed API endpoints and usage instructions.

## Figma Design

Expand All @@ -155,7 +156,7 @@ Access the backend repository on GitHub [here](https://github.com/SE10-IJSE/SE10
<p align="right">(<a href="#readme-top">back to top</a>)</p>


### Top contributors:
## Top contributors:

<a href="https://github.com/SE10-IJSE/SE10-NETWORK-FRONTEND/graphs/contributors">
<img src="https://contrib.rocks/image?repo=SE10-IJSE/SE10-NETWORK-FRONTEND" alt="contrib.rocks image" />
Expand All @@ -181,8 +182,8 @@ Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/SE10-IJSE/SE10-NETWORK-FRONTEND.svg?style=for-the-badge
[contributors-url]: https://github.com/SE10-IJSE/SE10-NETWORK-FRONTEND/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/SE10-IJSE/SE10-NETWORK-FRONTEND.svg?style=for-the-badge
[forks-url]: https://github.com/SE10-IJSE/SE10-NETWORK-FRONTEND/network/members
[closed-pull-requests-shield]: https://img.shields.io/github/issues-pr-closed/SE10-IJSE/SE10-NETWORK-FRONTEND.svg?style=for-the-badge
[closed-pull-requests-url]: https://github.com/SE10-IJSE/SE10-NETWORK-FRONTEND/pulls?q=is%3Apr+is%3Aclosed
[stars-shield]: https://img.shields.io/github/stars/SE10-IJSE/SE10-NETWORK-FRONTEND.svg?style=for-the-badge
[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers
[issues-shield]: https://img.shields.io/github/issues/SE10-IJSE/SE10-NETWORK-FRONTEND.svg?style=for-the-badge
Expand All @@ -200,4 +201,4 @@ Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
[Bootstrap.com]: https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white
[Bootstrap-url]: https://getbootstrap.com
[JQuery.com]: https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white
[JQuery-url]: https://jquery.com
[JQuery-url]: https://jquery.com
2 changes: 1 addition & 1 deletion assets/css/birthdayPageMobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ body {

.profilepic {
border-radius: 50%;
border: 3px solid rgb(16, 240, 16);
border: 3px solid #c0c0c0;
width: 42px;
height: 42px;
margin-right: 10px;
Expand Down
4 changes: 2 additions & 2 deletions assets/css/deleteConfirmationPopup.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ button {
.delete-btn {
background-color: #d9534f;
color: #fff;
padding: 10px 20px;
padding: 7px 20px;
}

.delete-btn:hover {
Expand Down Expand Up @@ -129,7 +129,7 @@ button {
@media (max-width: 400px) {
.modal-content {
width: 100%;
max-width: 250px;
max-width: 255px;
padding: 0px 10px 10px 10px;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/forgotPassword.css
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ input[type="checkbox"] {
}
}

@media screen and (max-width: 991px) and (min-width: 768px) {
@media screen and (max-width: 992px) and (min-width: 768px) {
.btn {
width: 30vw;
font-size: 16px;
Expand Down
10 changes: 10 additions & 0 deletions assets/css/homePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,16 @@ body {
display: none;
}

#notifications {
height: 60vh;
overflow-x: hidden;
overflow-y: scroll;
}

#notifications::-webkit-scrollbar {
width: 0 !important;
}

/* bottom nav bar mobile css start */
.img-box {
border-bottom: 3px solid transparent;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/postInfoPopup.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
width: 50%;
max-width: 300px;
padding: 10px;
height: 150px;
height: 154px;
}

.modal-header {
Expand Down
44 changes: 20 additions & 24 deletions components/css/AdminApprovePostCardComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@
background-color: #ffffff;
box-shadow: 0 4px 18.3px 0 rgba(0, 0, 0, 0.05);
border-radius: 10px;
height: 175px;
display: flex;
flex-direction: column;
justify-content: space-between;
height: auto;
padding: 20px;
}

#postCard .content {
flex-grow: 1;
}

#postCard .actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 10px;
}

#postCard .profileImage {
Expand Down Expand Up @@ -73,10 +88,6 @@
height: 25px;
}

#postCard {
height: 175px;
}

#approve {
right: 5px;
}
Expand Down Expand Up @@ -120,16 +131,14 @@
height: 35px;
}

#postCard {
height: 185px;
}

#approve {
right: 80px;
}

#profile-img {
width: 15px;
}

#postCard .profileImage {
width: 45px;
height: 45px;
Expand Down Expand Up @@ -165,10 +174,6 @@
height: 35px;
}

#postCard {
height: 185px;
}

#approve {
right: 80px;
}
Expand Down Expand Up @@ -214,18 +219,13 @@
#approve {
width: 90px;
height: 35px;
}

#postCard {
height: 185px;
}

#approve {
right: 80px;
}

#profile-img {
width: 15px;
}

#postCard .profileImage {
width: 45px;
height: 45px;
Expand Down Expand Up @@ -260,8 +260,4 @@
position: absolute;
right: 58px;
}

#postCard {
height: 185px;
}
}
5 changes: 0 additions & 5 deletions components/css/PostCardComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,6 @@

@media screen and (max-width: 767px) {
#createPostWeb {
display: none;
}

#createPostMobile {
margin-top: 10px;
display: block;
}

Expand Down
6 changes: 6 additions & 0 deletions components/css/wall/ProfileWallComponent.css
Original file line number Diff line number Diff line change
Expand Up @@ -582,3 +582,9 @@ input[type="date"]::-webkit-calendar-picker-indicator {
width: 100%;
}
}

@media screen and (max-width: 1495px) {
.pre {
font-size: 14px;
}
}
23 changes: 11 additions & 12 deletions components/js/wall/AdminApproveWallComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,28 +134,27 @@ const PostCard = (post) => {
</div>
</div>
</div>
<div class="px-1 mx-lg-5 mt-3">
<div class="content px-1 mx-lg-5 mt-3">
<p>${post.content}</p>
<div class="d-flex justify-content-end gap-3">
<button id="decline-${
post.postId
}" class="border-0 p-2 px-2 rounded-4 d-flex align-items-center gap-1 decline-post">
</div>
<div class="actions d-flex justify-content-end gap-3">
<button id="decline-${
post.postId
}" class="border-0 p-2 px-2 rounded-4 d-flex align-items-center gap-1 decline-post">
<img src="../../../assets/icons/decline_dark.png" alt="Decline Icon">
<span>Decline</span>
</button>
<button id="approve-${
post.postId
}" class="border-0 p-2 px-2 rounded-4 d-flex align-items-center gap-1 approve-post">
</button>
<button id="approve-${
post.postId
}" class="border-0 p-2 px-2 rounded-4 d-flex align-items-center gap-1 approve-post">
<img src="../../../assets/icons/approve-dark.png" alt="Approve Icon">
<span>Approve</span>
</button>
</div>
</button>
</div>
</div>
</div>
`;

// Append post to the wall and attach event listeners after rendering
$("#homeWallComponent").append(postHtml);

// Attach event listeners for approve and decline buttons
Expand Down
Loading

0 comments on commit 141f110

Please sign in to comment.