diff --git a/src/app/author/[author]/AuthorDisplay.tsx b/src/app/author/[author]/AuthorDisplay.tsx index b986436..d1206cf 100644 --- a/src/app/author/[author]/AuthorDisplay.tsx +++ b/src/app/author/[author]/AuthorDisplay.tsx @@ -5,6 +5,7 @@ import { Zilla_Slab } from 'next/font/google' import { notFound } from 'next/navigation' import DocumentCard from '@/app/components/DocumentCard' import findDocumentsByAuthor from './findDocumentsByAuthor' +import cardEffects from '@/app/styles/cardEffects.module.css' const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) @@ -41,11 +42,15 @@ export default function AuthorDisplay({ ) : null}
{affiliation.map((a: string) => ( - + {affiliations[a.split('@')[1]].name} ))} diff --git a/src/app/components/DocumentCard.tsx b/src/app/components/DocumentCard.tsx index 76f95dc..cd7ac15 100644 --- a/src/app/components/DocumentCard.tsx +++ b/src/app/components/DocumentCard.tsx @@ -14,7 +14,7 @@ const DocumentCard = ({ doc, href }: { doc: Document; href: string }) => { return (

{title}

diff --git a/src/app/components/MobileMenu.tsx b/src/app/components/MobileMenu.tsx index 1f703b7..cce51f1 100644 --- a/src/app/components/MobileMenu.tsx +++ b/src/app/components/MobileMenu.tsx @@ -31,19 +31,21 @@ export default function MobileMenu() { } return ( -
- + <> +
+ +
- +
- +

We gratefully acknowledge support from our volunteer peer reviewers, member institutions, and all{' '} @@ -56,6 +58,6 @@ export default function MobileMenu() { .

-
+ ) } diff --git a/src/app/components/SearchBar.tsx b/src/app/components/SearchBar.tsx index 20f7eec..a1dfee0 100644 --- a/src/app/components/SearchBar.tsx +++ b/src/app/components/SearchBar.tsx @@ -25,10 +25,10 @@ export default function SearchBar({ } return ( -
+
diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index a88aa7d..778f348 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -42,7 +42,7 @@ const SearchResult = ({ return (
diff --git a/src/app/styles/cardEffects.module.css b/src/app/styles/cardEffects.module.css index dba28e2..daaa064 100644 --- a/src/app/styles/cardEffects.module.css +++ b/src/app/styles/cardEffects.module.css @@ -1,12 +1,12 @@ /* creates a 3D card effect using a pseudo element for performance reasons */ -.card { +.card-large { @apply shadow-sm shadow-slate-300; /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */ transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; } -.card::after { +.card-large::after { @apply shadow-lg shadow-slate-500; content: ''; z-index: -1; @@ -19,10 +19,37 @@ left: 0; } -.card:hover { +.card-large:hover { transform: scale(1.02, 1.02); } -.card:hover::after { +.card-large:hover::after { + opacity: 1; +} + +.card-small { + @apply shadow-sm shadow-slate-300; + /* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */ + transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); + position: relative; +} +.card-small::after { + @apply shadow-md shadow-slate-500; + content: ''; + z-index: -1; + transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); + position: absolute; + opacity: 0; + width: 100%; + height: 100%; + top: 0; + left: 0; +} + +.card-small:hover { + transform: scale(1.08, 1.08); +} + +.card-small:hover::after { opacity: 1; }