Skip to content

Commit

Permalink
[Bug]: "GO TO SITE" button position fixed, modal bottom space fixed a…
Browse files Browse the repository at this point in the history
…nd not-found page image png -> svg for faster loading time
  • Loading branch information
PriyansuMaurya committed Jul 4, 2023
1 parent 76aba2a commit cda81ea
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useThemeContext } from "./context/store";
import { useEffect } from "react";
import Link from "next/link";
import Image from "next/image";
import pageNotFound from "../public/page404.png";
import pageNotFound from "../public/page404.svg";
export default function NotFound() {
// Dark Mode
const { theme }: theme = useThemeContext();
Expand Down
2 changes: 1 addition & 1 deletion components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Card({
<span className="font-light mt-3 text-sm line-clamp-5">
{description}
</span>
<div className="mt-6 flex justify-between items-center">
<div className="sticky top-[100vh] flex justify-between items-center">
{tools || datasets ? (
<button
className="font-bold max-h-9 text-center p-1 text-xs border py-[8px] px-4 hover:bg-[--primary-color] border-[--dark-bg] dark:border-[--light-bg] rounded-3xl"
Expand Down
4 changes: 2 additions & 2 deletions components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export default function Modal({
<>
<div className="md:w-1/2 block md:my-14 md:py-1 z-10 md:z-0 md:relative md:hidden">
<div onClick={() => setModalActive(false)} className="fixed inset-0 bg-slate-800 bg-opacity-75 transition-opacity"></div>
<div className=" fixed inset-0 z-10 md:z-0 -mb-8 overflow-y-auto ">
<div className=" fixed inset-0 z-10 md:z-0 -mb-20 overflow-y-auto ">
<div className=" flex min-h-full items-end justify-center text-center md:items-center md:p-0">
<div className="relative md:sticky bg-[--light-bg] dark:bg-[--dark-bg] mx-4 px-4 pb-16 pt-5 md:p-6 md:pb-4 mt-56 transform overflow-hidden md:overflow-x-hidden md:overflow-y-auto border border-[--dark-bg] dark:border-[--light-bg] rounded-t-3xl md:rounded-3xl text-left transition-all md:my-8 md:max-w-lg md:w-96 md:h-[33.5rem]">
<div className="relative md:sticky bg-[--light-bg] dark:bg-[--dark-bg] mx-4 px-4 pb-32 pt-5 md:p-6 md:pb-4 mt-56 transform overflow-hidden md:overflow-x-hidden md:overflow-y-auto border border-[--dark-bg] dark:border-[--light-bg] rounded-t-3xl md:rounded-3xl text-left transition-all md:my-8 md:max-w-lg md:w-96 md:h-[33.5rem]">
{mainContent}
</div>
</div>
Expand Down
Binary file removed public/page404.png
Binary file not shown.
Loading

1 comment on commit cda81ea

@vercel
Copy link

@vercel vercel bot commented on cda81ea Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

aifusion – ./

aifusion.vercel.app
aifusion-git-main-priyansu.vercel.app
aifusion-priyansu.vercel.app

Please sign in to comment.