Skip to content

Commit

Permalink
filter component
Browse files Browse the repository at this point in the history
  • Loading branch information
Ans155 committed Jun 20, 2023
1 parent 45ddd28 commit 784d4f2
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 9 deletions.
3 changes: 2 additions & 1 deletion components/Filter/filter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const filter = () => {
<button>
<Image src={images.clear} alt="clear" width={20} height={20}/>
CLEAR CHAT
</button>
</button>.

<button onClick={() => setAddFriend(true)}>
<Image src={images.user} alt="clear" width={20} height={20}/>
ADD FRIEND
Expand Down
8 changes: 4 additions & 4 deletions components/Navbar/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ import images from "../../assets";
const Navbar = () => {
const menuItems =[
{
menu: "All users",
menu: "ALL USERS",
link: "/alluser",
},
{
menu: "chat",
menu: "CHAT",
link: "/",
},
{
menu: "settings",
menu: "SETTINGS",
link: "/",
},
{
menu: "FAQS",
link: "/",
},
{
menu: "terms of use",
menu: "TERMS OF USE",
link: "/",
},
]
Expand Down
10 changes: 9 additions & 1 deletion components/Navbar/navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
width:80%;
margin: 3rem auto;
position: relative;
color:#FFFFFF;
}

.NavBar_box{
Expand All @@ -25,6 +26,13 @@
gap: 2rem;
border-bottom: 2px solid transparent;
transition: all .3s ease-in-out;
color:#FFFFFF;

}
.NavBar_box_right_menu_items_link{

color:#FFFFFF;
text-decoration: none;

}

Expand All @@ -39,7 +47,7 @@
justify-self: flex-end;

}
.NavBar_box_right_connect_button{
.NavBar_box_right_connect button{

background-color: rgb(0, 0, 0, 0.25);
padding: 1rem;
Expand Down
1 change: 1 addition & 0 deletions components/UserCard/userCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
text-align: center;
padding: 1rem;
position: relative;
color: #FFFFFF;
}

.UserCard_box{
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import React from 'react'

import '../styles/globals.css'
import { AppProvider } from '../context/AppContext';
import { Navbar } from '../components/index';
const MyApp = ({ Component, pageProps}) => (
Expand Down
2 changes: 1 addition & 1 deletion pages/alluser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const alluser = () => {
<div>
<div className={Style.alluser_info}>
<h1>
find your friends
Find Your Friends :
</h1>

</div>
Expand Down
2 changes: 2 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React, {useState, useEffect, useContext} from 'react';
import { Filter,Friend } from '../components/index';
import { AppContext } from '../context/AppContext';


const chatApp = () => {
const {}= useContext(AppContext);
return (
Expand Down
5 changes: 4 additions & 1 deletion styles/alluser.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
width: 80%;
margin: 4rem auto;
font-size: 1.5rem;
color: #FFFFFF;

}

.alluser{
position: relative;
left:10rem;
width: 80%;
max-width: 2rem auto;
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 3rem;
gap: 5rem;
}


Expand Down
4 changes: 4 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
font-family: Arial, sans-serif;
background-color: #292f3f
}

0 comments on commit 784d4f2

Please sign in to comment.