diff --git a/src/components/friend_list.rs b/src/components/friend_list.rs index 21c188e..9344c1e 100644 --- a/src/components/friend_list.rs +++ b/src/components/friend_list.rs @@ -8,13 +8,15 @@ pub fn FriendRow(user: FriendData) -> impl IntoView { view! {
-
- }> - Profile Photo - +
+
+ }> + Profile Photo + +
+ {user.username}
- {user.username} -

{user.created_at.format("%m/%d/%Y").to_string()}

+

{user.created_at.format("%m/%d/%Y").to_string()}

}.into_view() } diff --git a/src/pages/friends.rs b/src/pages/friends.rs index 12dbc50..0455d88 100644 --- a/src/pages/friends.rs +++ b/src/pages/friends.rs @@ -86,7 +86,6 @@ pub fn FriendRequests() -> impl IntoView { let friend_list_outgoing = create_resource( id, |value| async move { - send_friend_request(1).await; match value { Ok(v) => {friend_requests_outgoing(v).await}, Err(e) => {Err(ServerFnError::Request(format!("Error getting song data: {}", e).into()))}, diff --git a/style/friend.scss b/style/friend.scss new file mode 100644 index 0000000..3149147 --- /dev/null +++ b/style/friend.scss @@ -0,0 +1,60 @@ +@import 'theme.scss'; + +.friend-page-container { + width: 100%; +} + +.friend-container { + width: 100%; + border-collapse: collapse; + + .friend-row { + border: solid; + border-width: 1px 0; + border-color: #303030; + position: relative; + + min-width: 100%; + height: 50px; + + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + align-items: center; + + .friend-info { + display: flex; + flex-flow: row nowrap; + } + + .friend-item { + max-width: max-content; + margin: 0 20px; + + .friend-image { + width: 35px; + height: 35px; + border-radius: 50%; + } + + } + + .friend-created-date { + margin-right: 50px; + } + a { + color: $text-controls-color; + } + a:visited { + color: $text-controls-color; + } + a:hover { + color: $controls-hover-color; + } + + a:active { + color: $controls-click-color; + } + } + +} \ No newline at end of file diff --git a/style/main.scss b/style/main.scss index e2be23c..66d84e3 100644 --- a/style/main.scss +++ b/style/main.scss @@ -16,6 +16,7 @@ @import 'profile.scss'; @import 'loading.scss'; @import 'album_page.scss'; +@import 'friend.scss'; body { font-family: sans-serif;