Skip to content

Commit

Permalink
fix missing discord links!
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmaillo committed Jan 9, 2024
1 parent 952a943 commit 1f6c9dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
3 changes: 2 additions & 1 deletion src/Header/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { motion, AnimatePresence } from 'framer-motion'
import { useState } from 'react'
import { styled } from 'styled-components'
import { useNavigate } from 'react-router-dom'
import { DISCORD_INVITE_LINK } from '../constants'

const StyledNavbar = styled.div`
border: 5px solid #7816f4;
Expand Down Expand Up @@ -104,7 +105,7 @@ const Navbar = () => {
))}
<NavbarItem
as="a"
href="https://discord.gg/wNGukFdBgp"
href={DISCORD_INVITE_LINK}
onMouseEnter={(e: any) => setHoveredItem(e.currentTarget)}
onMouseLeave={() => setHoveredItem(null)}>
Discord
Expand Down
31 changes: 4 additions & 27 deletions src/components/Marquee.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'
import { motion, useSpring, useViewportScroll } from 'framer-motion'
import { ACCENT_COLOR } from '../constants'
import { ACCENT_COLOR, DISCORD_INVITE_LINK } from '../constants'
import { useEffect } from 'react'

const MarqueeContainer = styled.div`
Expand All @@ -9,7 +9,7 @@ const MarqueeContainer = styled.div`
overflow: hidden;
`

const Track = styled(motion.div)`
const Track = styled(motion.a)`
white-space: nowrap;
height: 50px;
position: relative;
Expand Down Expand Up @@ -57,31 +57,6 @@ const Title = styled.h1`
`

const Marquee = () => {
// const trackRef = useRef<HTMLDivElement>(null)
// const [contentWidth, setContentWidth] = useState(0)
// const direction = 0

// useEffect(() => {
// if (trackRef.current) {
// const width = trackRef.current.offsetWidth
// setContentWidth(width)
// }
// }, [])

// const marqueeVariants = {
// animate: {
// x: [0, -1035],
// transition: {
// x: {
// repeat: Infinity,
// repeatType: 'loop',
// duration: 5,
// ease: 'linear',
// },
// },
// },
// }

const direction = Math.random() > 0.5 ? 1 : -1

const { scrollYProgress } = useViewportScroll()
Expand All @@ -100,6 +75,8 @@ const Marquee = () => {
return (
<MarqueeContainer>
<Track
href={DISCORD_INVITE_LINK}
target="_blank"
// ref={trackRef}
style={{ x: marqueeX }}>
{Array.from({ length: 50 }).map(() => (
Expand Down

0 comments on commit 1f6c9dd

Please sign in to comment.