Skip to content
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
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/gallium
18
File renamed without changes.
17 changes: 4 additions & 13 deletions components/Coaches/Info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ const Info = () => {
<td>
<p className="c-package__price">
Discover our <br />
<Link href="/partners">
<a>partner deals</a>
</Link>{' '}
<Link href="/partners">partner deals</Link>{' '}
</p>
</td>
</tr>
Expand Down Expand Up @@ -180,11 +178,7 @@ const Info = () => {
Partner coach
<br />
<span className="c-package__price">
Discover our{' '}
<Link href="/partners">
<a>partner deals</a>
</Link>{' '}
.
Discover our <Link href="/partners">partner deals</Link> .
</span>
</h2>
<p className="c-package__info">
Expand All @@ -206,15 +200,12 @@ const Info = () => {
<p>
Want to discover more about what the coaching job entails? Visit our{' '}
<Link href="https://help.osoc.be/global/coaches/the-coaching-job/soft-skills-and-expectations">
<a>wiki</a>
wiki
</Link>{' '}
.
</p>
<p>
<Link href="/practical">
<a>Visit our FAQ</a>
</Link>{' '}
to learn more, or send us{' '}
<Link href="/practical">Visit our FAQ</Link> to learn more, or send us{' '}
<a href="mailto:[email protected]?subject=Regarding osoc Coaching" title="Coach at osoc">
a message
</a>
Expand Down
4 changes: 2 additions & 2 deletions components/Common/ApplyLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const ApplyLink = () => {
);

const invalidCountryButton = (
<Link href="/non-eu-warning">
<a className="button">{buttonContent}</a>
<Link href="/non-eu-warning" className="button">
{buttonContent}
</Link>
);

Expand Down
40 changes: 10 additions & 30 deletions components/Common/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,13 @@ const Footer = () => {
<div className="small-4 medium-4 cell">
<ul className="inline-list">
<li>
<Link href="/students">
<a>Students</a>
</Link>
<Link href="/students">Students</Link>
</li>
<li>
<Link href="/partners">
<a>Partners</a>
</Link>
<Link href="/partners">Partners</Link>
</li>
<li>
<Link href="/coaches">
<a>Coaches</a>
</Link>
<Link href="/coaches">Coaches</Link>
</li>
</ul>
</div>
Expand All @@ -102,14 +96,10 @@ const Footer = () => {
</DemoDayLink>
</li>
<li>
<Link href="/practical">
<a>Practical</a>
</Link>
<Link href="/practical">Practical</Link>
</li>
<li>
<Link href="/editions#2024">
<a>2024</a>
</Link>
<Link href="/editions#2024">2024</Link>
</li>
</ul>
</div>
Expand Down Expand Up @@ -172,37 +162,27 @@ const Footer = () => {
</div>
<div className="small-2 medium-auto cell">
<Link href="/editions#2019">
<a>
<img src={W2019} alt="2019 osoc logo" />
</a>
<img src={W2019} alt="2019 osoc logo" />
</Link>
</div>
<div className="small-2 medium-auto cell">
<Link href="/editions#2020">
<a>
<img src={W2020} alt="2020 osoc logo" />
</a>
<img src={W2020} alt="2020 osoc logo" />
</Link>
</div>
<div className="small-2 medium-auto cell">
<Link href="/editions#2021">
<a>
<img src={W2021} alt="2021 osoc logo" />
</a>
<img src={W2021} alt="2021 osoc logo" />
</Link>
</div>{' '}
<div className="small-2 medium-auto cell">
<Link href="/editions#2022">
<a>
<img src={W2022} alt="2022 osoc logo" />
</a>
<img src={W2022} alt="2022 osoc logo" />
</Link>
</div>{' '}
<div className="small-2 medium-auto cell">
<Link href="/editions#2024">
<a>
<img src={W2024} alt="2024 osoc logo" />
</a>
<img src={W2024} alt="2024 osoc logo" />
</Link>
</div>
</div>
Expand Down
6 changes: 1 addition & 5 deletions components/Common/Navigation/Logo/ImgLogo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import Img from '../../../UI/Img';

const ImgLogo = ({ handleLoad }) => {
const ImgLogo = ({ handleLoad = null }) => {
return (
<Img
onLoad={handleLoad}
Expand All @@ -12,10 +12,6 @@ const ImgLogo = ({ handleLoad }) => {
);
};

ImgLogo.defaultProps = {
handleLoad: null,
};

ImgLogo.propTypes = {
handleLoad: PropTypes.func,
};
Expand Down
10 changes: 3 additions & 7 deletions components/Common/Navigation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ const Navigation = () => {
id="nav-menu"
>
<div className="top-bar-left show-for-large">
<Link href="/">
<a className="logo" data-hide-for="medium">
<ImgLogo />
</a>
<Link href="/" className="logo" data-hide-for="medium">
<ImgLogo />
</Link>
</div>
<div className="top-bar-right">
Expand Down Expand Up @@ -117,11 +115,9 @@ const Navigation = () => {
</li>

{/* <li>
<Link href="/editions/[year]" as="/editions/2020">
<a className="button">
<Link href="/editions/[year]" as="/editions/2020" className="button">
Discover all osoc20 projects
<span className="button__info" />
</a>
</Link>
</li> */}
</ul>
Expand Down
7 changes: 1 addition & 6 deletions components/Common/Tab.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';

const Tab = ({ activeTab, label, onClick, style, className }) => {
const Tab = ({ activeTab, label, onClick, style = {}, className = '' }) => {
function handleClick() {
onClick(label);
}
Expand Down Expand Up @@ -34,11 +34,6 @@ const Tab = ({ activeTab, label, onClick, style, className }) => {
);
};

Tab.defaultProps = {
style: {},
className: '',
};

Tab.propTypes = {
activeTab: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
Expand Down
7 changes: 1 addition & 6 deletions components/Editions/Gallery.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';

const Gallery = ({ className, children, modifier }) => {
const Gallery = ({ className = '', children, modifier = '' }) => {
const classNames = ['u-padding-x-large--tb', className].join(' ');
return (
<div className={classNames}>
Expand All @@ -9,11 +9,6 @@ const Gallery = ({ className, children, modifier }) => {
);
};

Gallery.defaultProps = {
className: '',
modifier: '',
};

Gallery.propTypes = {
className: PropTypes.string,
children: PropTypes.node.isRequired,
Expand Down
7 changes: 1 addition & 6 deletions components/Editions/Headshot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import Image from 'next/image';
import ExternalLink from '../UI/ExternalLink';

const HeadShot = ({ data, socials, picture, roleShown }) => {
const HeadShot = ({ data, socials = {}, picture, roleShown = true }) => {
const { name, isCoach } = data;
const { twitter, linkedin, github, behance, instagram, mastodon, photos } = socials;

Expand Down Expand Up @@ -54,11 +54,6 @@ const HeadShot = ({ data, socials, picture, roleShown }) => {
);
};

HeadShot.defaultProps = {
socials: {},
roleShown: true,
};

HeadShot.propTypes = {
data: PropTypes.shape({
name: PropTypes.string,
Expand Down
38 changes: 21 additions & 17 deletions components/Editions/Project.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,32 @@ const Project = ({ edition, project }) => {

return (
// ${isDemoDay ? 'on-demo-day' : ''}
<div className="c-projects-project">
<Link href="/editions/[year]/[project]" as={`/editions/${edition}/${id ?? slug}`}>
<a className="c-projects-image">
<>
<div className="c-projects-project">
<Link
href="/editions/[year]/[project]"
as={`/editions/${edition}/${id ?? slug}`}
className="c-projects-image"
>
<img
src={logo ?? `/editions/${edition}/projects/${slug}.svg`}
alt={`Crest of the ${name} project`}
/>
</a>
</Link>
<h2 className="c-projects__title h5">
<Link href="/editions/[year]/[project]" as={`/editions/${edition}/${id ?? slug}`}>
<a>{name}</a>
</Link>
</h2>
<p>{description}</p>
{/* // isDemoDay && ( */}
{false && (
<ButtonLink disabled={buttonDisabled} isExternal href={project.breakout.room}>
{$buttonContent}
</ButtonLink>
)}
</div>
<h2 className="c-projects__title h5">
<Link href="/editions/[year]/[project]" as={`/editions/${edition}/${id ?? slug}`}>
{name}
</Link>
</h2>
<p>{description}</p>
{/* // isDemoDay && ( */}
{false && (
<ButtonLink disabled={buttonDisabled} isExternal href={project.breakout.room}>
{$buttonContent}
</ButtonLink>
)}
</div>
</>
);
};

Expand Down
4 changes: 1 addition & 3 deletions components/Home/HeroLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ const HeroLink = ({ href, name }) => {
return (
<div className="small-12 medium-4 large-4 cell">
<h2 className="h3">
<Link href={href}>
<a>{name}</a>
</Link>
<Link href={href}>{name}</Link>
</h2>
</div>
);
Expand Down
17 changes: 4 additions & 13 deletions components/Partners/Info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ const Info = () => {
<p className="c-package__info--small u-text-align-center">
Not ready to partner up with a team? Check out our other{' '}
<Link href="#support-partners">
<strong>
<a>partner deals</a>
</strong>
<strong>partner deals</strong>
</Link>{' '}
.
</p>
Expand Down Expand Up @@ -278,9 +276,7 @@ const Info = () => {
<p className="c-package__info--small">
Not ready to partner up with a team? Check out our other{' '}
<Link href="#support-partners">
<strong>
<a>partner deals</a>
</strong>
<strong>partner deals</strong>
</Link>{' '}
.
</p>
Expand Down Expand Up @@ -383,9 +379,7 @@ const Info = () => {
<td colSpan="4">
<p className="u-text-align-center">
<Link href="#benefits">
<strong>
<a>Discover all benefits &darr;</a>
</strong>
<strong>Discover all benefits &darr;</strong>
</Link>{' '}
<br />
All partners are welcome and encouraged to come meet our teams!
Expand Down Expand Up @@ -652,10 +646,7 @@ const Info = () => {
<p><small>Brainstorming hard for Leuven Leest at open summer of code 2016</small></p></div> --> */}
<div className="medium-8 large-5 large-offset-1 cell">
<p>
<Link href="/practical">
<a>Visit our FAQ</a>
</Link>{' '}
if you have any questions, or send us{' '}
<Link href="/practical">Visit our FAQ</Link> if you have any questions, or send us{' '}
<a
href="mailto:[email protected]?subject=Regarding osoc Partnership"
title="Partnership at osoc"
Expand Down
6 changes: 1 addition & 5 deletions components/Partners/Partners/Partner.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import ExternalLink from '../../UI/ExternalLink';

const Partner = ({ partner, className }) => {
const Partner = ({ partner, className = '' }) => {
const { logo, name, url } = partner;
const classNames = ['small-3 medium-2 cell', className].join(' ');
return (
Expand All @@ -13,10 +13,6 @@ const Partner = ({ partner, className }) => {
);
};

Partner.defaultProps = {
className: '',
};

Partner.propTypes = {
partner: PropTypes.shape({
id: PropTypes.string.isRequired,
Expand Down
4 changes: 2 additions & 2 deletions components/Practical/StudentApplications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const StudentApplication = () => {
Over the last few years, students have got the opportunity to work on open innovation
projects in different fields such as mobility, education, health, sports and
biodiversity. Check out{' '}
<Link href="/editions/[year]" as="/editions/2022">
<a target="_blank">last edition</a>
<Link href="/editions/[year]" as="/editions/2022" target="_blank">
last edition
</Link>{' '}
to see what kind of projects have been built by osoc students at the latest edition.
</p>
Expand Down
Loading