Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

71-Add-video-page #262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
33 changes: 24 additions & 9 deletions components/layout/navbar/navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from 'next/link';
import Img from 'next/image';
import { useMediaQuery } from 'react-responsive';
import { mdiGithub } from '@mdi/js';
import { mdiGithub, mdiAudioVideo } from '@mdi/js';
import Icon from '@mdi/react';
import { useTheme } from 'next-themes';
import BasicButton from '../../buttons/basicButton';
Expand Down Expand Up @@ -75,17 +75,32 @@ const Navbar = ({ DesHeight }) => {
)}
</svg>
</button>

{!isMobile && <SocialNetworks />}
<BasicButton>
<a
className="navbar__btn"
href="https://github.com/MichalPorag/pull-request-community#adding-your-profile"
>
<span>{addMeTranslate}</span>{' '}
<Icon style={{ width: '24px' }} className="navbar__btn--icon" path={mdiGithub} />

<Link href="https://github.com/MichalPorag/pull-request-community#adding-your-profile">
<a className="navbar__btn">
<BasicButton>
<span>{addMeTranslate}</span>{' '}
<Icon style={{ width: '24px' }} className="navbar__btn--icon" path={mdiGithub} />
</BasicButton>
</a>
</BasicButton>
</Link>

<Link passHref href="/videos">
<a className="navbar__btn">
<BasicButton>
<span>Videos</span>{' '}
<Icon
style={{ width: '24px' }}
className="navbar__btn--icon"
path={mdiAudioVideo}
/>
</BasicButton>
</a>
</Link>
</div>

<Link shallow href="/">
<a className={className}>
<Img layout="fill" className="inner-logo" src="/images/logo-2.0.svg" />
Expand Down
20 changes: 20 additions & 0 deletions pages/videos.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from 'react';
import { AppProps } from 'next/dist/shared/lib/router/router';
import Layout from '../components/layout/layout';
import styles from '../styles/Videos.module.scss';
import Head from 'next/head';

export default function videos({ Component, pageProps }: AppProps) {
const description = <>הרצאות של חברי פול-ריקוסט</>;

return (
<>
<Head>
<title>Videos</title>
</Head>
<Layout descriptionText={description}>
<div className={styles.container}></div>
</Layout>
</>
);
}
15 changes: 15 additions & 0 deletions styles/Videos.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@import "media";

.container {
width: 80%;
}

@media screen and (max-width: 600px) {
.container {
width: 100%;

.cards__wrapper {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
}
}