mirror of
https://github.com/acid-info/free.technology.git
synced 2025-03-01 01:40:33 +00:00
style: remove gif on bu page
This commit is contained in:
parent
a66d003f93
commit
10a885d8a2
@ -1,4 +1,4 @@
|
|||||||
import { breakpoints } from '@/configs/ui.configs'
|
import { breakpoints, uiConfigs } from '@/configs/ui.configs'
|
||||||
import styled from '@emotion/styled'
|
import styled from '@emotion/styled'
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
@ -131,6 +131,7 @@ const Container = styled.div`
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
|
margin-top: calc(${uiConfigs.navbarHeight}px);
|
||||||
|
|
||||||
@media (max-width: ${breakpoints.md}px) {
|
@media (max-width: ${breakpoints.md}px) {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
|
@ -7,9 +7,9 @@ import { useEffect, useState } from 'react'
|
|||||||
export const Navbar = () => {
|
export const Navbar = () => {
|
||||||
const [scrolled, setScrolled] = useState(false)
|
const [scrolled, setScrolled] = useState(false)
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const isTransparent = router.pathname === '/' || router.pathname === '/[bu]'
|
const isTransparent = router.pathname === '/'
|
||||||
|
|
||||||
const background = router.pathname === '/[bu]' ? 'transparent' : 'black'
|
const background = 'black'
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleScroll = () => {
|
const handleScroll = () => {
|
||||||
@ -60,6 +60,7 @@ const Container = styled.nav<{
|
|||||||
display: flex;
|
display: flex;
|
||||||
background-color: ${({ isTransparent, scrolled, background }) =>
|
background-color: ${({ isTransparent, scrolled, background }) =>
|
||||||
!scrolled && isTransparent ? background : scrolled ? 'black' : background};
|
!scrolled && isTransparent ? background : scrolled ? 'black' : background};
|
||||||
|
|
||||||
height: ${uiConfigs.navbarHeight}px;
|
height: ${uiConfigs.navbarHeight}px;
|
||||||
padding: 4px 16px;
|
padding: 4px 16px;
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ import {
|
|||||||
BUMenus,
|
BUMenus,
|
||||||
BUMilestones,
|
BUMilestones,
|
||||||
BUTestimonials,
|
BUTestimonials,
|
||||||
BUVideo,
|
|
||||||
} from '@/components/BU'
|
} from '@/components/BU'
|
||||||
import { ChallengeList } from '@/components/Challenges'
|
import { ChallengeList } from '@/components/Challenges'
|
||||||
import { JobList } from '@/components/Jobs'
|
import { JobList } from '@/components/Jobs'
|
||||||
@ -32,7 +31,7 @@ const Page = ({ bu, jobs, issues }: any) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SEO />
|
<SEO />
|
||||||
<BUVideo />
|
{/* <BUVideo /> */}
|
||||||
<div>
|
<div>
|
||||||
<BUHero data={BU_DATA[bu]?.hero} />
|
<BUHero data={BU_DATA[bu]?.hero} />
|
||||||
<BUMenuFilter
|
<BUMenuFilter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user