Skip to content

Commit

Permalink
style: format code with prettier
Browse files Browse the repository at this point in the history
Format code with prettier

This commit fixes the style issues introduced in d6189e1 according to the output
from Prettier.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Aug 11, 2023
1 parent d6189e1 commit ab8bce5
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 198 deletions.
16 changes: 8 additions & 8 deletions src/components/FriendsComponent/Locked/index.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.lock_profile_container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.profile_lock_img {
width: 100%;
max-width: 270px;
filter: drop-shadow(2px 2px 5px var(--color));
}
width: 100%;
max-width: 270px;
filter: drop-shadow(2px 2px 5px var(--color));
}
27 changes: 14 additions & 13 deletions src/components/FriendsComponent/Locked/index.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import "./index.css"
import lockImg from "../../../assets/lock.png"
import { Link } from "react-router-dom"
import "./index.css";
import lockImg from "../../../assets/lock.png";
import { Link } from "react-router-dom";

const LockedFriendPage = ({name}) => {
const LockedFriendPage = ({ name }) => {
return (
<div className="lock_profile_container">
<img
src={lockImg}
<img
src={lockImg}
alt="User Profile Locked"
className="profile_lock_img"
/>
<h3>
Add <Link to={`/dummygram/user/${name}`}>{name}</Link> as friend to unlock their friend list!
</h3>
/>
<h3>
Add <Link to={`/dummygram/user/${name}`}>{name}</Link> as friend to
unlock their friend list!
</h3>
</div>
)
}
);
};

export default LockedFriendPage
export default LockedFriendPage;
82 changes: 41 additions & 41 deletions src/components/FriendsComponent/index.css
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
.friends_page_main_container {
display: flex;
justify-content: center;
align-items: center;
min-height: calc(100vh - 85px);
margin: 10px;
display: flex;
justify-content: center;
align-items: center;
min-height: calc(100vh - 85px);
margin: 10px;
}

.friends_page_sub_container {
padding: 15px;
border-radius: 10px;
max-width: 700px;
width: 100%;
border: 2px solid var(--profile-color);
box-shadow: var(--post-box-shadow);
padding: 15px;
border-radius: 10px;
max-width: 700px;
width: 100%;
border: 2px solid var(--profile-color);
box-shadow: var(--post-box-shadow);
}

.friend_page_header {
text-align: center;
font-size: 30px;
font-weight: 700;
padding: 20px;
color: var(--text-dim)
text-align: center;
font-size: 30px;
font-weight: 700;
padding: 20px;
color: var(--text-dim);
}

.friend_page_friend_list_container {
padding: 0;
padding: 0;
}

.friend_page_friend_list_item {
list-style: none;
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-bottom: 1px solid #eee;
list-style: none;
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-bottom: 1px solid #eee;
}

.friend_page_friend_avatar {
width: 50px;
height: 50px;
border-radius: 50%;
border: 1px solid #eee;
width: 50px;
height: 50px;
border-radius: 50%;
border: 1px solid #eee;
}

.friend_page_friend_name {
font-weight: 600;
color: var(--text-secondary);
cursor: pointer;
font-weight: 600;
color: var(--text-secondary);
cursor: pointer;
}

.friend_page_friend_name:hover {
text-decoration: underline;
text-decoration: underline;
}

.friend_page_friend_bio {
color: var(--profile-color);
cursor: default;
color: var(--profile-color);
cursor: default;
}

@media only screen and (max-width: 840px) {
.friends_page_main_container {
padding-top: 20px;
}
.friends_page_main_container {
padding-top: 20px;
}
}

@media only screen and (max-width: 450px) {
.friend_page_header {
font-size: 23px;
padding: 15px;
}
}
.friend_page_header {
font-size: 23px;
padding: 15px;
}
}
Loading

0 comments on commit ab8bce5

Please sign in to comment.