Skip to content

Commit

Permalink
Merge pull request #113 from w3bdesign/development
Browse files Browse the repository at this point in the history
Responsive prosjekter
  • Loading branch information
w3bdesign authored Jun 26, 2024
2 parents 074e725 + 362fef2 commit 4596e34
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/components/Layout/Header.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

import React from "react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import clsx from "clsx";
import { usePathname } from "next/navigation";

import { MotionDiv, MotionLi } from "@/lib/framer/client";

import MobileMenu from "./MobileMenu.component";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/MobileMenu.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const MobileMenu = ({ links }: IMobileMenuProps) => {
{name}
</a>
) : (
<Link href={href} data-testid={`mobil-${name}`}>
<Link href={href} data-testid={`mobil-${name}`} prefetch={true}>
{name}
</Link>
)}
Expand Down
28 changes: 15 additions & 13 deletions src/components/Prosjekter/ProsjektCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,24 @@ const ProsjektCard: React.FC<ProjectProps> = ({
urlgithub,
}) => {
return (
<div className="bg-slate-700 shadow-md rounded-lg overflow-hidden">
<div className="bg-slate-700 shadow-md rounded-lg overflow-hidden mx-4 md:m-0">
<div className="relative w-full h-48 md:h-60">
<div className="w-full h-full p-5 pb-[50px] relative overflow-hidden flex justify-center md:w-[750px] md:h-[350px]">
<Image
className="flex justify-center text-center"
width="600"
height="300"
quality={100}
src={urlFor(projectimage).url() as string}
alt={name}
priority
unoptimized
/>
<div className="w-full h-full p-5 md:pb-[50px] relative overflow-hidden flex justify-center md:w-[750px] md:h-[350px]">
{projectimage && (
<Image
className="flex justify-center text-center"
width="600"
height="350"
quality={100}
src={urlFor(projectimage).url() as string}
alt={name}
priority
unoptimized
/>
)}
</div>
</div>
<div className="mt-12 p-2 flex flex-col justify-between min-h-[250px] xl:min-h-[275px]">
<div className="md:mt-12 p-2 flex flex-col justify-between min-h-[250px] xl:min-h-[275px]">
<div>
<h1 className="xl:mt-4 text-xl text-center font-bold py-2 text-slate-200">
{name}
Expand Down

0 comments on commit 4596e34

Please sign in to comment.