Skip to content

Instantly share code, notes, and snippets.

@adrianhajdin
Created July 2, 2022 13:30
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save adrianhajdin/a844254aa10510d62ecafc21d0c3714c to your computer and use it in GitHub Desktop.
Save adrianhajdin/a844254aa10510d62ecafc21d0c3714c to your computer and use it in GitHub Desktop.
Build and Deploy a Full Stack TikTok Clone Application and Master TypeScript | Full Course (Part 1)
@tailwind base;
@tailwind components;
@tailwind utilities;
html,
body {
padding: 0;
margin: 0;
box-sizing: border-box;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
}
.videos::-webkit-scrollbar {
width: 0px;
}
::-webkit-scrollbar {
width: 4px;
}
::-webkit-scrollbar-thumb {
background-color: rgb(237, 237, 237);
border-radius: 40px;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
"@sanity/client": "^3.3.0",
"axios": "^0.27.2",
"next": "12.1.6",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-google-login": "^5.2.2",
"react-icons": "^4.3.1",
"uuidv4": "^6.2.13",
"zustand": "^4.0.0-rc.1"
export default {
name: 'post',
title: 'Post',
type: 'document',
fields: [
{
name: 'caption',
title: 'Caption',
type: 'string',
},
{
name: 'video',
title: 'Video',
type: 'file',
options: {
hotspot: true,
},
},
{
name: 'userId',
title: 'UserId',
type: 'string',
},
{
name: 'postedBy',
title: 'PostedBy',
type: 'postedBy',
},
{
name: 'likes',
title: 'Likes',
type: 'array',
of: [
{
type: 'reference',
to: [{ type: 'user' }],
},
],
},
{
name: 'comments',
title: 'Comments',
type: 'array',
of: [{ type: 'comment' }],
},
{
name: 'topic',
title: 'Topic',
type: 'string',
},
],
};
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
width: {
1600: '1600px',
400: '400px',
450: '450px',
210: '210px',
550: '550px',
260: '260px',
650: '650px',
},
height: {
600: '600px',
280: '280px',
900: '900px',
458: '458px',
},
top: {
' 50%': '50%',
},
backgroundColor: {
primary: '#F1F1F2',
blur: '#030303',
},
colors: {
primary: 'rgb(22, 24, 35)',
},
height: {
'88vh': '88vh',
},
backgroundImage: {
'blurred-img':
"url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSsaaJ7s4lqcBF4IDROVPzrlL5fexcwRmDlnuEYQenWTt1DejFY5kmYDref2a0Hp2eE4aw&usqp=CAU')",
},
},
},
plugins: [],
};
export interface Video {
caption: string;
video: {
asset: {
_id: string;
url: string;
};
};
_id: string;
postedBy: {
_id: string;
userName: string;
image: string;
};
likes: {
postedBy: {
_id: string;
userName: string;
image: string;
};
}[];
comments: {
comment: string;
_key: string;
postedBy: {
_ref: string;
};
}[];
userId: string;
}
export interface IUser {
_id: string;
_type: string;
userName: string;
image: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment