Skip to content

Commit

Permalink
add: live button
Browse files Browse the repository at this point in the history
  • Loading branch information
emo-mruczek committed Apr 15, 2024
1 parent 633e736 commit f4c808f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Live = () => {
return (
<Link
isExternal
href={'https://www.youtube.com/@pwrasi/streams'}
//href={'https://www.youtube.com/@pwrasi/streams'}
target="_blank"
margin="auto"
_hover={{ textDecorationLine: 'none' }}
Expand All @@ -49,13 +49,14 @@ const Live = () => {
left={{ base: `${172 + 20}px`, md: `${172 + 50}px`, lg: `${230 + 50}px` }}
>
<DefaultButton
_hover={{ color: 'black' }}
//_hover={{ color: 'black' }}
size="md"
text="LIVE"
bg={theme.colors.red}
//bg={theme.colors.red}
paddingLeft={{ base: '12px', md: '24px' }}
paddingRight={{ base: '12px', md: '24px' }}
color="whiteAlpha.900"
//color="whiteAlpha.900"
bg = "gray"
type="submit"
/>
</Link>
Expand All @@ -68,9 +69,9 @@ const NavBar = () => {
const [isSmallerThanLg] = useMediaQuery('(max-width: 62em)');
const [isBiggerThanLg] = useMediaQuery('(min-width: 62em)');
const { t }: { t: (key: string) => string } = useTranslation('common');
const showLive = ['2024-04-19', '2024-04-20', '2024-04-21'].includes(
new Date().toISOString().slice(0, 10),
);
// const showLive = ['2024-04-15', '2024-04-20', '2024-04-21'].includes(
// new Date().toISOString().slice(0, 10),
// );
const headId = 'head';

const menu = [
Expand Down Expand Up @@ -124,7 +125,7 @@ const NavBar = () => {
marginBottom="auto"
cursor="pointer"
>
{showLive && <Live />}
<Live />
<Image
onClick={() => scrollToSection(headId)}
alt="sesja linuksowa"
Expand Down

0 comments on commit f4c808f

Please sign in to comment.