Skip to content
Snippets Groups Projects
Commit 26252c2b authored by Andris Borbás's avatar Andris Borbás
Browse files

Add header to team and add optimized hero

parent 00c565c2
Branches
No related tags found
1 merge request!3CI
Pipeline #5645 passed with warnings
public/assets/images/hero.jpg

1.23 MiB

public/assets/images/hero.webp

462 KiB

...@@ -13,7 +13,7 @@ export default function Hero() { ...@@ -13,7 +13,7 @@ export default function Hero() {
<img <img
id="hero-image" id="hero-image"
className="clip-hero w-full max-w-full h-full max-h-full" className="clip-hero w-full max-w-full h-full max-h-full"
src="/assets/images/hero.jpg" src="/assets/images/hero.webp"
alt="hero" alt="hero"
/> />
<svg <svg
......
...@@ -17,6 +17,11 @@ export default function Team() { ...@@ -17,6 +17,11 @@ export default function Team() {
return ( return (
<Layout> <Layout>
<Hero /> <Hero />
<div className="team-header-bg relative flex items-center justify-center h-24">
<h2 className="z-10 text-center text-white text-2xl font-semibold">
Tagjaink
</h2>
</div>
<section className="container grid gap-6 grid-cols-1 justify-items-center mx-auto my-8 sm:grid-cols-2 lg:grid-cols-3"> <section className="container grid gap-6 grid-cols-1 justify-items-center mx-auto my-8 sm:grid-cols-2 lg:grid-cols-3">
{Array(7) {Array(7)
// eslint-disable-next-line etc/no-assign-mutated-array // eslint-disable-next-line etc/no-assign-mutated-array
......
...@@ -20,6 +20,13 @@ code { ...@@ -20,6 +20,13 @@ code {
background-position: left top; background-position: left top;
} }
.team-header-bg {
background-image: url("../../public/assets/images/hero.webp");
background-repeat: repeat;
background-size: cover;
background-position: center 70%;
}
body { body {
@apply background-figures; @apply background-figures;
} }
......
...@@ -7,24 +7,24 @@ const carouselFormatters = { ...@@ -7,24 +7,24 @@ const carouselFormatters = {
views, views,
}: { }: {
currentIndex: number; currentIndex: number;
views: { [key: string]: any }[]; views: Array<{ [key: string]: any }>;
}) => `Mutasd a(z) ${currentIndex + 2}. képet a(z) ${views.length} közül`, }) => `Mutasd a(z) ${currentIndex + 2}. képet a(z) ${views.length} közül`,
getPrevLabel: ({ getPrevLabel: ({
currentIndex, currentIndex,
views, views,
}: { }: {
currentIndex: number; currentIndex: number;
views: { [key: string]: any }[]; views: Array<{ [key: string]: any }>;
}) => `Mutasd a(z) ${currentIndex}. képet a(z) ${views.length} közül`, }) => `Mutasd a(z) ${currentIndex}. képet a(z) ${views.length} közül`,
getNextTitle: () => 'Következő (jobbra nyíl)', getNextTitle: () => "Következő (jobbra nyíl)",
getPrevTitle: () => 'Előző (balra nyíl)', getPrevTitle: () => "Előző (balra nyíl)",
getCloseLabel: () => 'Bezárás (esc)', getCloseLabel: () => "Bezárás (esc)",
getFullscreenLabel: ({ isFullscreen }: { isFullscreen: boolean }) => getFullscreenLabel: ({ isFullscreen }: { isFullscreen: boolean }) =>
isFullscreen isFullscreen
? 'Kilépés a teljes képernyős nézetből (f)' ? "Kilépés a teljes képernyős nézetből (f)"
: 'Teljes képernyőre váltás (f)', : "Teljes képernyőre váltás (f)",
}; };
export default carouselFormatters; export default carouselFormatters;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment