Skip to content

Commit

Permalink
Merge pull request #13 from uddugteam/redesign
Browse files Browse the repository at this point in the history
Career and Team updates. Lottie SSR fix
  • Loading branch information
andskur authored Mar 26, 2024
2 parents d9ccd41 + 10869d7 commit 1f36d3a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 45 deletions.
10 changes: 0 additions & 10 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ const nextConfig = {
loader: '@svgr/webpack',
options: {
icon: true,
// svgoConfig: {
// plugins: [
// {
// name: 'preset-default',
// params: {
// overrides: { removeViewBox: false },
// },
// },
// ],
// },
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/components/general/Careers/Careers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface Vacation {

const vacations: Vacation[] = [
{
name: 'Golang Engeneer',
name: 'Golang Engineer',
sphere: 'Web3',
position: 'Middle, Junior, Intern',
type: 'Full Time',
Expand Down
3 changes: 2 additions & 1 deletion src/components/general/Team/Team.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
z-index: 1;
position: relative;
text-align: center;
margin-bottom: 24px;
max-width: 850px;
margin: 0 auto 24px;

@media (--tablet-vertical) {
margin-bottom: 30px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/general/Team/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const Team: FC = () => {
<span className={coloredSpanClassNames}>
creating help humanity
</span>{' '}
get to the future faster Meet
get to the future faster
</Title>
<Tabs className={styles.tabs} tabs={tabs} />
<BackgroundCircle className={styles.backgroundCircle} />
Expand Down
16 changes: 0 additions & 16 deletions src/components/layout/Header/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,3 @@
background-repeat: no-repeat;
background-position: center;
}

.backgroundCircle {
top: 110px;
left: 20px;
transform: translate3d(0, 0, 0) rotate(-30deg);

@media (--tablet-vertical) {
top: 50px;
left: auto;
right: -352px;
}

@media (--desktop) {
display: none;
}
}
30 changes: 15 additions & 15 deletions src/components/layout/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Wrapper from 'components/layout/Wrapper';
import Logo from 'components/ui/Logo';
import Button from 'components/ui/Button';
import BurgerButton from 'components/ui/burger-button';
import BackgroundCircle from 'components/ui/BackgroundCircle';

import styles from './Header.module.css';

Expand Down Expand Up @@ -103,19 +102,21 @@ const Header: FC = () => {
</Link>
</>
) : (
<BurgerButton
className={styles.burgerButton}
outsideDirection={isMenuOpened ? -1 : 1}
onClick={() => setIsMenuOpened(!isMenuOpened)}
/>
// <Button
// onClick={() => {
// setIsMenuOpened(!isMenuOpened);
// }}
// className={styles.menuToggler}
// >
// {isMenuOpened ? '' : 'Menu'}
// </Button>
<>
<BurgerButton
className={styles.burgerButton}
outsideDirection={isMenuOpened ? -1 : 1}
onClick={() => setIsMenuOpened(!isMenuOpened)}
/>
{/* <Button
onClick={() => {
setIsMenuOpened(!isMenuOpened);
}}
className={styles.menuToggler}
>
{isMenuOpened ? '' : 'Menu'}
</Button> */}
</>
)}
</div>
{isWide ? null : (
Expand Down Expand Up @@ -151,7 +152,6 @@ const Header: FC = () => {
Contact us
</Button>
</Link>
{/* <BackgroundCircle className={backgroundCircleClassnames} /> */}
</div>
)}
</nav>
Expand Down
5 changes: 4 additions & 1 deletion src/components/ui/burger-button/BurgerButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState, useRef, useEffect } from 'react';
import Lottie, { LottieRefCurrentProps } from 'lottie-react';
import dynamic from 'next/dynamic';
import { LottieRefCurrentProps } from 'lottie-react';
import classNames from 'classnames';

import Button from 'components/ui/Button';
Expand All @@ -13,6 +14,8 @@ interface IBurgerButton {
outsideDirection: 1 | -1;
}

const Lottie = dynamic(() => import('lottie-react'), { ssr: false });

const BurgerButton: React.FC<IBurgerButton> = ({
onClick,
className,
Expand Down

0 comments on commit 1f36d3a

Please sign in to comment.