Skip to content

Commit

Permalink
Update to next config
Browse files Browse the repository at this point in the history
  • Loading branch information
driekwartsbroek committed Sep 4, 2024
1 parent de1eb63 commit 6cf0c4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 2 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export', // Add this line
output: 'export',
basePath: '/portfolio', // Add this line if your repo is named "portfolio"
images: {
remotePatterns: [
{
Expand Down
11 changes: 3 additions & 8 deletions src/components/BackArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ interface BackArrowProps {

const BackArrow: React.FC<BackArrowProps> = ({ onClose }) => {
return (
<motion.button
onClick={onClose}
className="absolute top-4 left-4 p-2 rounded-full bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 transition-colors"
whileHover={{ scale: 1.1 }}
whileTap={{ scale: 0.9 }}
>
<ArrowLeft className="w-6 h-6 text-gray-600 dark:text-gray-300" />
</motion.button>
<button onClick={onClose} className="...">
{/* Your back arrow icon or text */}
</button>
);
};

Expand Down

0 comments on commit 6cf0c4f

Please sign in to comment.