Skip to content

Commit

Permalink
some changes on post page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-Padarwala committed Oct 31, 2023
1 parent 66d991e commit e4fe37d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions client/src/assets/css/Profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,15 @@ input::-webkit-inner-spin-button {
}

.post_btn {
padding: 2px 10px;
border-radius: 5px;
background-color: rgb(155, 162, 240);
background-color: #0d6efd;
color: white;
position: absolute;
right: 30px;
top: 65px;
}

/* .post_btn_main{
float: right;
} */
.post_btn:hover {
background-color: #5898f8;
}
.three_dotes {
position: absolute;
right: 20px;
Expand Down
10 changes: 5 additions & 5 deletions client/src/pages/post/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,23 +350,23 @@ const Post = () => {
</div>
</div>
<div className="col-lg-6 col-12">
<div className="pofile_left_side_sections p-3">
<div className="pofile_left_side_sections">
<div
className="add_post_section"
data-bs-toggle="modal"
data-bs-target="#addPostModal"
>
<p className="fw-bold">What are you Publish?</p>
<p className="alumni_heading">What are you Publish?</p>
<div className="d-flex">
<div className="me-2 post_two_icons">
<i className="fa-solid fa-photo-film"></i>
</div>
<div className="me-2 post_two_icons">
<i className="fa-solid fa-video"></i>
</div>
<div className="post_btn_main">
<button className="post_btn">Post Now</button>
</div>
{/* <div className="post_btn_main"> */}
<button className="btn post_btn">Post Now</button>
{/* </div> */}
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions server/controller/post/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const deletePostData = (req, res) => {
}
res.sendStatus(200);
});
}
};

//get alumni profile data
const getAllAlumniProfile = (req, res) => {
Expand All @@ -109,11 +109,11 @@ const getAllAlumniProfile = (req, res) => {
res.status(200).json(result);
}
});
}
};

const getUserPostDataWithId = (req, res) => {
const id = req.params.id;
const sql = `SELECT * FROM user_post WHERE user_id=?`;
const sql = `SELECT * FROM user_post WHERE user_id=? ORDER BY id DESC`;
const data = [id];
connection.query(sql, data, (error, result) => {
if (error) {
Expand All @@ -124,7 +124,7 @@ const getUserPostDataWithId = (req, res) => {
res.status(200).json(result);
}
});
}
};

module.exports = {
addPostData,
Expand Down

0 comments on commit e4fe37d

Please sign in to comment.