Created
March 20, 2021 15:08
-
-
Save Daltonic/5e1d87b895b4c9131ce03fa5e9ca04b2 to your computer and use it in GitHub Desktop.
Tinder clone CometChatUserList.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const contactWrapperStyle = () => { | |
return { | |
display: "flex", | |
flexDirection: "column", | |
height: "100%", | |
boxSizing: "border-box", | |
}; | |
}; | |
export const contactHeaderStyle = ({ color }) => { | |
return { | |
padding: "19px 16px", | |
position: "relative", | |
display: "flex", | |
alignItems: "center", | |
borderBottom: `1px solid ${color.darkSecondary}`, | |
background: `linear-gradient(90deg, rgba(233, 12, 119, 1) 0%, rgba(241, 96, 89, 1) 100% )`, | |
}; | |
}; | |
export const contactHeaderCloseStyle = (img) => { | |
return { | |
cursor: "pointer", | |
display: "none", | |
background: `url(${img}) left center no-repeat`, | |
height: "24px", | |
width: "33%", | |
}; | |
}; | |
export const contactHeaderTitleStyle = (enableCloseMenu) => { | |
const alignment = | |
enableCloseMenu.length > 0 | |
? { | |
width: "33%", | |
textAlign: "center", | |
} | |
: {}; | |
return { | |
margin: "0", | |
fontWeight: "700", | |
display: "inline-block", | |
width: "66%", | |
textAlign: "left", | |
fontSize: "20px", | |
color: "white", | |
textDecoration: "none", | |
...alignment, | |
}; | |
}; | |
export const contactSearchStyle = () => { | |
return { | |
padding: "16px 16px", | |
position: "relative", | |
}; | |
}; | |
export const contactSearchInputStyle = (theme, img) => { | |
return { | |
display: "block", | |
width: "100%", | |
border: "0", | |
boxShadow: "rgba(20, 20, 20, 0.04) 0 0 0 1px inset", | |
borderRadius: "8px", | |
padding: "6px 8px 6px 35px", | |
fontSize: "15px", | |
outline: "none", | |
color: `${theme.color.primary}`, | |
background: `url(${img}) 10px center no-repeat ${theme.backgroundColor.grey}`, | |
}; | |
}; | |
export const contactMsgStyle = () => { | |
return { | |
overflow: "hidden", | |
width: "100%", | |
display: "flex", | |
justifyContent: "center", | |
alignItems: "center", | |
position: "absolute", | |
top: "50%", | |
}; | |
}; | |
export const contactMsgTxtStyle = (theme) => { | |
return { | |
margin: "0", | |
height: "30px", | |
color: `${theme.color.secondary}`, | |
fontSize: "24px!important", | |
fontWeight: "600", | |
}; | |
}; | |
export const contactListStyle = () => { | |
return { | |
height: "calc(100% - 125px)", | |
overflowY: "auto", | |
margin: "0", | |
padding: "0", | |
}; | |
}; | |
export const contactAlphabetStyle = () => { | |
return { | |
padding: "0 15px", | |
margin: "5px 0", | |
width: "100%", | |
fontSize: "12px", | |
fontWeight: "500", | |
opacity: "0.5", | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment