Skip to content

Commit

Permalink
Add team page (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonmestevao authored Aug 13, 2020
1 parent 2bcfe24 commit 9195bd2
Show file tree
Hide file tree
Showing 52 changed files with 425 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Opal

[![Build Status](https://travis-ci.org/cesium/opal-node.svg?branch=master)](https://travis-ci.org/cesium/opal-node)
[![Build Status](https://travis-ci.org/cesium/opal.svg?branch=master)](https://travis-ci.org/cesium/opal)

NextJS Web App for the Badge Platform for CeSIUM's Computer Engineering Week
event.
Expand Down
6 changes: 3 additions & 3 deletions components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Copyright = () => (
<ColoredTypography variant="body2" color={theme.palette.text.title}>
{' by '}
<Link color={theme.palette.text.title} href="https://cesium.di.uminho.pt">
CeSIUM
<>CeSIUM</>
</Link>
.
</ColoredTypography>
Expand Down Expand Up @@ -75,13 +75,13 @@ const Footer = ({
color={theme.palette.text.title}
href="/docs/survival-guide.pdf"
>
Survival Guide
<>Survival Guide</>
</Link>
</Typography>
<span>&#160;&#160;&#160;&#160;</span>
<Typography variant="body2">
<Link color={theme.palette.text.title} href="/codeofconduct">
Code of Conduct
<>Code of Conduct</>
</Link>
</Typography>
</Wrapper>
Expand Down
2 changes: 1 addition & 1 deletion components/SEO.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SEO = ({ event, social }) => (
<meta name="twitter:title" content={`${event.name} ${event.year}`} />
<meta name="twitter:description" content={event.description} />
<meta property="twitter:url" content={event.url} />
<meta name="twitter:creator" content={`@{social.twitter}`} />
<meta name="twitter:creator" content={`@${social.twitter}`} />
<meta name="twitter:site" content={`@${social.twitter}`} />
<meta property="twitter:image" content={event.cover} />
</>
Expand Down
4 changes: 2 additions & 2 deletions components/Speaker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState } from 'react';
import { styled } from '@material-ui/core/styles';
import {
Card,
Expand Down Expand Up @@ -76,7 +76,7 @@ function Speaker({
title,
shortbio,
}) {
const [expanded, setExpanded] = React.useState(false);
const [expanded, setExpanded] = useState(false);

const handleExpandClick = () => {
setExpanded(!expanded);
Expand Down
4 changes: 2 additions & 2 deletions components/homepage/About.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState } from 'react';
import { styled } from '@material-ui/core/styles';
import IconButton from '@material-ui/core/IconButton';
import VolumeOffRoundedIcon from '@material-ui/icons/VolumeOffRounded';
Expand Down Expand Up @@ -29,7 +29,7 @@ const StyledIconButton = styled(IconButton)(({ hover }) => ({
}));

function About({ url, thumbnail }) {
const [muted, setMuted] = React.useState(true);
const [muted, setMuted] = useState(true);
const handleButton = () => {
if (muted) setMuted(false);
else setMuted(true);
Expand Down
4 changes: 2 additions & 2 deletions components/homepage/HowToGetHere.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState } from 'react';
import { styled } from '@material-ui/core/styles';
import {
Grid,
Expand Down Expand Up @@ -61,7 +61,7 @@ const MeanHeader = styled(Grid)({
});

function Mean({ title, desc }) {
const [expanded, setExpanded] = React.useState(false);
const [expanded, setExpanded] = useState(false);

const handleExpandClick = () => {
setExpanded(!expanded);
Expand Down
8 changes: 4 additions & 4 deletions components/homepage/TextAbout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState, useEffect } from 'react';
import { styled } from '@material-ui/core/styles';
import { Typography, Paper } from '@material-ui/core';
import PropTypes from 'prop-types';
Expand All @@ -24,18 +24,18 @@ const MessageTypography = styled(Typography)(({ color }) => ({
}));

function TextAbout({ messages, messageColor, backgroundColor, paperColor }) {
const [ticks, setTicks] = React.useState(0);
const [ticks, setTicks] = useState(0);
const message = messages[ticks];

React.useEffect(() => {
useEffect(() => {
const interval = setInterval(() => {
setTicks((t) => (t + 1) % messages.length);
}, 2000);

return () => {
clearInterval(interval);
};
}, []);
}, [messages.length]);

return (
<TopSection
Expand Down
4 changes: 2 additions & 2 deletions components/moonstone/AttendeeProfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Router from 'next/router';
import fetch from 'isomorphic-unfetch';
Expand All @@ -7,7 +7,7 @@ import AttendeeInfo from './profile/AttendeeInfo';
import Badges from './profile/Badges';
import CenteredCircularProgress from '../CenteredCircularProgress';

class AttendeeProfile extends React.Component {
class AttendeeProfile extends Component {
constructor(props) {
super(props);
this.updateState = this.updateState.bind(this);
Expand Down
4 changes: 2 additions & 2 deletions components/moonstone/CompanyProfile.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Router from 'next/router';
import fetch from 'isomorphic-unfetch';
import MoonstoneLayout from './MoonstoneLayout';
import CompanyInfo from './profile/CompanyInfo';
import CenteredCircularProgress from '../CenteredCircularProgress';

class CompanyProfile extends React.Component {
class CompanyProfile extends Component {
constructor(props) {
super(props);
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion components/moonstone/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ FormGrid.propTypes = {
children: PropTypes.node.isRequired,
isLoading: PropTypes.bool.isRequired,
errorMessage: PropTypes.string.isRequired,
successMessage: PropTypes.string.isRequired,
successMessage: PropTypes.string,
handleSubmit: PropTypes.func.isRequired,
noPadding: PropTypes.bool,
signup: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion components/moonstone/profile/AttendeeInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function AttendeeInfo({ data, allowEdits, handleUpdateData }) {

const handleNicknameClose = useCallback(() => {
setModalNickname(false);
});
}, []);

return (
<>
Expand Down
6 changes: 3 additions & 3 deletions components/navbar/BurgerButton.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState } from 'react';
import {
Box,
Drawer,
Expand Down Expand Up @@ -60,7 +60,7 @@ const MoonstoneOptions = () => {

function BurgerButton() {
const classes = useStyles();
const [open, setOpen] = React.useState(false);
const [open, setOpen] = useState(false);

const handleClick = () => {
if (open) {
Expand All @@ -80,7 +80,7 @@ function BurgerButton() {
<Spacer />
<List>
{global.navbar.pages.map((page) => (
<Link href={page.link}>
<Link href={page.link} key={page.name}>
<ListItem button key={page.name}>
<Item primary={page.name} />
</ListItem>
Expand Down
2 changes: 1 addition & 1 deletion components/navbar/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function ButtonAppBar() {
<MoonstoneOptions />
{global.navbar.pages
.map((page) => (
<Grid item>
<Grid item key={page.name}>
<Link href={page.link}>
<Entry color="inherit">{page.name}</Entry>
</Link>
Expand Down
1 change: 1 addition & 0 deletions data/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{ "name": "Agenda", "link": "/agenda" },
{ "name": "Oradores", "link": "/speakers" },
{ "name": "Desafios e Prémios", "link": "/challenges" },
{ "name": "Equipa", "link": "/team" },
{ "name": "Embaixadores", "link": "/ambassadors" },
{ "name": "Candidaturas", "link": "/applications" },
{ "name": "FAQs", "link": "/faqs" },
Expand Down
Loading

0 comments on commit 9195bd2

Please sign in to comment.