Skip to content

Instantly share code, notes, and snippets.

View Daltonic's full-sized avatar

Darlington Gospel Daltonic

View GitHub Profile
@Daltonic
Daltonic / CometChatMessageHeader.vue
Created March 20, 2021 20:58
Tinder clone CometChatMessageHeader.vue
<template>
<div :style="styles.root">
<div :style="styles.detail">
<div
class="cometchat_sidebar_btn"
:style="styles.sidebarBtn"
@click="emitAction('menuClicked')"
></div>
<div :style="styles.thumbnail">
<comet-chat-avatar
@Daltonic
Daltonic / CometChatMessageList.js
Created March 20, 2021 20:54
Tinder clone CometChatMessageList.js
export const chatListStyle = (theme) => {
return {
backgroundColor: `${theme.backgroundColor.white}`,
zIndex: "1",
width: "100%",
flex: "1 1 0",
order: "2",
position: "relative",
};
};
@Daltonic
Daltonic / CometChatSenderTextMessageBubble.js
Created March 20, 2021 15:17
Tinder clone CometChatSenderTextMessageBubble
export const messageContainerStyle = () => {
return {
alignSelf: "flex-end",
marginBottom: "16px",
paddingLeft: "16px",
paddingRight: "16px",
maxWidth: "65%",
clear: "both",
position: "relative",
display: "flex",
@Daltonic
Daltonic / CometChatUserList.vue
Created March 20, 2021 15:12
Tinder clone CometChatUserList.vue
<template>
<div :style="styles.wrapper" class="contacts__wrapper">
<div :style="styles.header">
<div
class="header__close"
v-if="enableCloseMenu"
:style="styles.headerClose"
@click="emitAction('closeMenuClicked')"
></div>
<router-link to="/">
@Daltonic
Daltonic / CometChatUserList.js
Created March 20, 2021 15:08
Tinder clone CometChatUserList.js
export const contactWrapperStyle = () => {
return {
display: "flex",
flexDirection: "column",
height: "100%",
boxSizing: "border-box",
};
};
export const contactHeaderStyle = ({ color }) => {
@Daltonic
Daltonic / CometChatUserListWithMessages.js
Created March 20, 2021 15:06
Tinder clone CometChatUserListWithMessages.js
export const userScreenStyle = (theme) => {
return {
display: "flex",
height: "100vh",
width: "100%",
boxSizing: "border-box",
fontFamily: `${theme.fontFamily}`,
"--cometchat-font-family": `${theme.fontFamily}`,
backgroundColor: "#f9f9ff"
};
@Daltonic
Daltonic / Friends.vue
Created March 19, 2021 15:03
Tinder clone Friends.vue
<template>
<CometChatUserListWithMessages />
</template>
<script>
import { CometChatUserListWithMessages } from "../cometchat-pro-vue-ui-kit";
export default {
name: "friends",
components: {
CometChatUserListWithMessages,
@Daltonic
Daltonic / Chats.vue
Last active March 26, 2021 10:05
Tinder clone Chat.vue
<template>
<div id="chats">
<div class="content-wrapper">
<div class="content">
<section class="msger">
<header class="msger-header">
<div class="msger-header-title">
<div class="msger__avatar">
<CometChatAvatar :image="user.avatar" />
</div>
@Daltonic
Daltonic / Home.vue
Last active March 26, 2021 08:36
Tinder clone Home.vue
<template>
<div id="home">
<div class="content-wrapper">
<div class="content">
<MainHeader />
<TinderCards :uid="uid" :users="swipables" />
</div>
</div>
<SideBar />
</div>
@Daltonic
Daltonic / TinderCard.vue
Last active September 24, 2021 09:30
Tinder clone TinderCard.vue
<template>
<div class="tinder__card">
<div class="tinder__card__container">
<vue-swing
v-for="user in users"
:key="user.id"
@throwout="swipped(user)"
:config="config"
class="swipe"
>