Skip to content

Commit

Permalink
Merge pull request #47 from me-imfhd/fix/more-fixes
Browse files Browse the repository at this point in the history
fix: npm run dev working
  • Loading branch information
moonlightnexus authored Nov 15, 2023
2 parents 8c8d18f + 0cd2ecb commit f97aa9e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 22 deletions.
31 changes: 20 additions & 11 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
async headers () {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "github.com",
pathname: "/shadcn.png",
},
],
},
async headers() {
return [
{
source: '/(.*)',
source: "/(.*)",
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=2592000'
}
]
}
]
}
}
key: "Cache-Control",
value: "public, max-age=2592000",
},
],
},
];
},
};

module.exports = nextConfig
module.exports = nextConfig;
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"@mantine/hooks": "^7.0.2",
"@next/font": "^13.5.4",
"@radix-ui/react-dropdown-menu": "^2.0.5",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-tooltip": "^1.0.7",
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en" className={inter.className}>
<html lang="en" className={inter.className} suppressHydrationWarning>
<head>
<title>{`${metadata.title}`}</title>
<meta name="description" content={`${metadata.description}`} />.
Expand Down
6 changes: 3 additions & 3 deletions src/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export function AccountDropdown() {
<div>
<div className=" showcase-9-dropdown-shadow mt-2 w-96 max-w-[80vw] cursor-pointer overflow-hidden rounded-2xl bg-white py-6">
<div className="sticky top-0 flex items-center gap-1 bg-white px-6 pb-4">
<Image
<img
src="https://github.com/shadcn.png"
className="h-10 w-10 rounded-full"
alt="@shadcn"
className="h-10 w-10 rounded-full"
/>

<div className="ml-2">
Expand Down Expand Up @@ -168,7 +168,7 @@ function TrustAuthXLogo() {
gradientTransform="translate(30.9017 29.8005) rotate(-90.0445) scale(29.9638)"
>
<stop offset="0.220303" />
<stop offset="0.995966" stopOpacity ="0" />
<stop offset="0.995966" stopOpacity="0" />
</radialGradient>
</defs>
</svg>
Expand Down
16 changes: 16 additions & 0 deletions src/components/Showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ const isMobile = useMediaQuery("(max-width: 768px)");
<Image
src="/showcase/2.png"
alt=""
width={1000}
height={1000}
className="absolute bottom-0 left-0 w-full bg-cover"
/>
</div>
Expand Down Expand Up @@ -179,11 +181,15 @@ const isMobile = useMediaQuery("(max-width: 768px)");
<Image
src="/showcase/4.png"
alt=""
width={1000}
height={1000}
className="absolute -left-10 bottom-0 bg-cover"
/>
<Image
src="/showcase/4-2.png"
alt=""
width={1000}
height={1000}
className="absolute bottom-0 right-20 bg-cover"
/>
</div>
Expand Down Expand Up @@ -324,23 +330,31 @@ const isMobile = useMediaQuery("(max-width: 768px)");
src="/showcase/code-section/cone.svg"
className="absolute bottom-[40%] left-0 "
alt=""
width={1000}
height={1000}
/>
<Image
src="/showcase/code-section/circle-1.svg"
className="absolute bottom-0 left-0 "
alt=""
width={1000}
height={1000}
/>

<Image
src="/showcase/code-section/circle-2.svg"
className="absolute bottom-28 left-20 "
alt=""
width={1000}
height={1000}
/>

<Image
src="/showcase/code-section/circle-3.svg"
className="absolute right-0 top-1/2 -translate-y-1/2 "
alt=""
width={1000}
height={1000}
/>
</ShowcaseCard>
</div>
Expand Down Expand Up @@ -489,6 +503,8 @@ const isMobile = useMediaQuery("(max-width: 768px)");
<Image
src="/showcase/9.svg"
alt=""
width={1000}
height={1000}
className="absolute -bottom-8 left-0 w-full max-w-[95%] bg-cover"
/>
</div>
Expand Down

0 comments on commit f97aa9e

Please sign in to comment.