Skip to content

Commit

Permalink
fix: images extensions and some responsive improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
eudago committed Oct 25, 2024
1 parent 86df0fd commit 63e8f2e
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/[lang]/events/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ async function EventsPage({ params: { lang } }: { params: { lang: Locale } }) {
{dictionary.events.subtitle}
</p>
<div className="flex flex-wrap justify-center mt-8 md:flex-row flex-col">
<div className="shadow border border-neutral-200 rounded-md sm:mr-3 mt-2 sm:mt-0">
<div className="shadow border border-neutral-200 rounded-md mt-2 sm:mt-0">
<a
href="https://github.com/gironajs/trobades/issues/new?assignees=&labels=&projects=&template=peticions.md&title="
className="flex items-center justify-center w-full px-8 py-3 text-base font-medium text-black bg-white border border-transparent leading-6 rounded-md hover:bg-slate-50 hover:text-black focus:outline-none focus:shadow-outline-blue transition duration-150 ease-in-out md:py-4 md:text-lg md:px-10"
>
<span className="mr-2"> {dictionary.events.propose}</span>
</a>
</div>
<div className="shadow border border-neutral-200 rounded-md sm:ml-3 mt-2 sm:mt-0">
<div className="shadow border border-neutral-200 rounded-md mt-2 sm:mt-0">
<a
href="https://github.com/gironajs/trobades/issues/new?assignees=&labels=&projects=&template=xerrades.md&title="
className="flex items-center justify-center w-full px-8 py-3 text-base font-medium text-black bg-white border border-transparent leading-6 rounded-md hover:bg-slate-50 hover:text-black focus:outline-none focus:shadow-outline-blue transition duration-150 ease-in-out md:py-4 md:text-lg md:px-10"
Expand Down Expand Up @@ -159,10 +159,10 @@ async function EventsPage({ params: { lang } }: { params: { lang: Locale } }) {
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 items-start max-w-5xl mx-auto gap-10 py-20">
{images.map((el, i) => (
<Image
key={'grid-1' + i}
key={'grid' + i}
src={el.src}
className={cn(
el.type === 'horizontal' && 'col-span-2',
el.type === 'horizontal' && 'col-span-1 md:col-span-2',
'h-80 w-full object-cover object-center-center rounded-lg gap-10 !m-0 !p-0'
)}
height="400"
Expand Down Expand Up @@ -219,7 +219,7 @@ async function EventsPage({ params: { lang } }: { params: { lang: Locale } }) {

<a
href="mailto:[email protected]"
className="m-8 shadow border border-neutral-200 rounded-md sm:mr-3 mt-2 sm:mt-0"
className="m-8 shadow border border-neutral-200 rounded-md mt-2 sm:mt-0"
>
<p className="flex items-center justify-center w-full px-8 py-3 text-base font-medium text-black bg-white border border-transparent leading-6 rounded-md hover:bg-slate-50 hover:text-black focus:outline-none focus:shadow-outline-blue transition duration-150 ease-in-out md:py-4 md:text-lg md:px-10">
{dictionary.events.sponsors.contact}
Expand Down
4 changes: 2 additions & 2 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const Header = ({ lang, localePrettyUrlsCacheData, dictionary }: Props) => {

return (
<header className="top-0 z-50 h-14 absolute right-0 left-0">
<div className="container flex h-14 items-center justify-between px-4 py-4 relative">
<div className="flex gap-6 md:gap-10 w-full justify-start">
<div className="container flex h-14 items-center justify-between px-4 py-4 relative flex-wrap">
<div className="flex gap-6 md:gap-10 justify-start">
<Link href="/" className="items-center space-x-2 flex">
<span
className={cn(
Expand Down
2 changes: 1 addition & 1 deletion components/locale-switcher/locale-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const LocaleSwitcher = ({ locale, localeUrls }: Props) => {

return (
<div className="locale-switcher absolute right-0 top-0 z-20">
<div className="flex gap-4 flex flex-col items-end p-4">
<div className="flex gap-4 flex flex-col items-end p-4 pt-6">
<div
className={clsx(
'locale-switcher-anchor relative cursor-pointer rounded-full border border-neutral-800 overflow-hidden transition-transform hover:scale-110',
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 63e8f2e

Please sign in to comment.