Skip to content

Commit

Permalink
Merge pull request #21 from SweetmanTech/paultech/mobile-feedback
Browse files Browse the repository at this point in the history
navbar & mobile loading image
  • Loading branch information
paulTech208 authored Dec 28, 2023
2 parents d283530 + 2557dbc commit 7e6ee46
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 12 deletions.
28 changes: 17 additions & 11 deletions components/LoadingPage/LoadingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import Image from "next/image"
import useIsMobile from "../../hooks/useIsMobile"

const LoadingPage = () => (
<div className="fixed top-0 left-0 w-full h-full z-50">
<Image
blurDataURL="/images/Loading/loading.png"
alt="SYSTEM"
layout="fill"
objectFit="cover"
src="/images/Loading/loading.png"
/>
</div>
)
const LoadingPage = () => {
const isMobile = useIsMobile()

return (
<div className="fixed top-0 left-0 w-full h-full z-50">
<Image
blurDataURL={isMobile ? "/images/Loading/m_loading.png" : "/images/Loading/loading.png"}
alt="SYSTEM"
layout="fill"
objectFit="cover"
objectPosition="center center"
src={isMobile ? "/images/Loading/m_loading.svg" : "/images/Loading/loading.png"}
/>
</div>
)
}

export default LoadingPage
2 changes: 1 addition & 1 deletion components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Navbar = () => {
const { pathname } = useRouter()

const navClasses = `md:min-w-[80px] md:px-[10px] md:h-[40px]
text-[12px] md:text-[16px] md:py-[5px] py-[2px] h-full uppercase md:capitalize
text-[12px] md:text-[16px] md:py-[5px] py-[2px] h-fit uppercase md:capitalize
md:border-none bg-darkgray
flex items-center justify-center text-[#d2d2d2] font-dresden cursor-pointer`

Expand Down
Binary file added public/images/Loading/m_loading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions public/images/Loading/m_loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7e6ee46

Please sign in to comment.