Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions src/website/components/home/Team.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
import { useRef } from 'react';
import { useRef, useState } from 'react';
import { Boxes } from 'lucide-react';
import { Text, text } from '@site/src/website/components/shared/i18n';
import { useScroll } from '../../hooks/useScroll';
import { Person } from '../shared/Person';

export const Team = () => {
const ref = useRef<HTMLDivElement>(null);
const supportRef = useRef<HTMLDivElement>(null);
const [show, setShow] = useState(false);

useScroll(ref, (isVisible, target) => {
target.className = isVisible ? 'content show' : 'content';
});

useScroll(supportRef, (isVisible, target) => {
target.className = isVisible ? 'content show' : 'content';
useScroll(ref, (isVisible) => {
if (isVisible) setShow(true);
});

return (
<main id='team'>
<div className='content' ref={ref}>
<div className={show ? 'content show' : 'content'} ref={ref}>
<h1 className='title'>
<Boxes className='icon' /> <Text id='team.title' />
</h1>
Expand Down Expand Up @@ -89,16 +85,6 @@ export const Team = () => {
instagram: 'micaele_magalhaes',
}}
/>
</section>
</div>
<div className='content' ref={supportRef}>
<h1 className='title'>
<Boxes className='icon' /> <Text id='supporters.title' />
</h1>
<small className='subtitle'>
<Text id='supporters.subtitle' />
</small>
<section className='support'>
<Person
name='Mônica'
img='/img/team/monica.webp'
Expand Down
4 changes: 4 additions & 0 deletions src/website/scss/pages/_speakers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
&#team {
padding-bottom: 12.5rem;

&#team {
padding-top: 12.5rem;
}

& > .content {
gap: 5rem;
opacity: 0;
Expand Down