add padding to empty state on smaller screens
This commit is contained in:
parent
15481b2db1
commit
cfdbef515e
1 changed files with 4 additions and 4 deletions
|
|
@ -108,7 +108,7 @@ const VideoList: NextPage = () => {
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-full grow items-start justify-center overflow-auto bg-[#fbfbfb] pt-14">
|
<div className="flex w-full grow items-start justify-center overflow-auto bg-[#fbfbfb] pt-14">
|
||||||
{videos && videos?.length <= 0 ? (
|
{videos && videos?.length <= 0 ? (
|
||||||
<div className="flex items-center justify-center">
|
<div className="flex items-center justify-center px-8">
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<span className="text-lg font-semibold text-zinc-700">
|
<span className="text-lg font-semibold text-zinc-700">
|
||||||
No videos found
|
No videos found
|
||||||
|
|
@ -117,7 +117,7 @@ const VideoList: NextPage = () => {
|
||||||
Videos you record will show up here. Already got videos?
|
Videos you record will show up here. Already got videos?
|
||||||
Upload them!
|
Upload them!
|
||||||
</span>
|
</span>
|
||||||
<div className="mt-4">
|
<div className="mt-4 flex flex-wrap gap-4">
|
||||||
<button
|
<button
|
||||||
onClick={openRecordModal}
|
onClick={openRecordModal}
|
||||||
className="inline-flex items-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2"
|
className="inline-flex items-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2"
|
||||||
|
|
@ -126,7 +126,7 @@ const VideoList: NextPage = () => {
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={openUploadModal}
|
onClick={openUploadModal}
|
||||||
className="ml-4 inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
className="inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
||||||
>
|
>
|
||||||
Upload a video
|
Upload a video
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -171,7 +171,7 @@ interface VideoCardProps {
|
||||||
|
|
||||||
const VideoCardSkeleton = () => {
|
const VideoCardSkeleton = () => {
|
||||||
return (
|
return (
|
||||||
<div className="animate-pulse h-[240px] w-[250px] overflow-hidden rounded-lg border border-[#6c668533] text-sm font-normal">
|
<div className="h-[240px] w-[250px] animate-pulse overflow-hidden rounded-lg border border-[#6c668533] text-sm font-normal">
|
||||||
<figure className="relative aspect-video w-full bg-slate-200"></figure>
|
<figure className="relative aspect-video w-full bg-slate-200"></figure>
|
||||||
<div className="m-4 flex flex-col">
|
<div className="m-4 flex flex-col">
|
||||||
<span className="h-4 rounded bg-slate-200"></span>
|
<span className="h-4 rounded bg-slate-200"></span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue