Skip to content

Commit

Permalink
Merge pull request #149 from siesgstarena/alphaissue
Browse files Browse the repository at this point in the history
Made the title responsive
  • Loading branch information
RaulLit authored Dec 25, 2023
2 parents 75cd87b + b7a38f9 commit 2129835
Show file tree
Hide file tree
Showing 24 changed files with 339 additions and 295 deletions.
1 change: 1 addition & 0 deletions src/Components/auth/signin/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import useRedirectLoggedInUser from '../../../customHooks/useRedirectLoggedInUse
import useLoggedInUser from '../../../customHooks/useLoggedInUser';

const SignIn = () => {
document.title = 'SIESGSTarena | Sign In';
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [messageType, setMessageType] = useState('');
Expand Down
1 change: 1 addition & 0 deletions src/Components/auth/signup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import PasswordField from '../../common/PasswordField/index';
import useRedirectLoggedInUser from '../../../customHooks/useRedirectLoggedInUser';

const SignUp = () => {
document.title = 'SIESGSTarena | Sign Up';
const [name, setName] = useState('');
const [username, setUsername] = useState('');
const [email, setEmail] = useState('');
Expand Down
1 change: 1 addition & 0 deletions src/Components/common/Editor/global/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import '../Style.css';
import initialState from '../defaults/initialState';

const Index = () => {
document.title = 'SIESGSTarena | Editor';
const isMobile = window.innerWidth <= 768;
const [editorConfig, setEditorConfig] = useState(
initialState({ code: languageDefaults.Java, fontSize: isMobile ? 15 : 20 })
Expand Down
2 changes: 2 additions & 0 deletions src/Components/common/TimePicker/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import DateFnsUtils from '@date-io/date-fns';
import { MuiPickersUtilsProvider, KeyboardTimePicker } from '@material-ui/pickers';
import AccessTime from '@material-ui/icons/AccessTime';

const MaterialUITimePicker = (props) => {
const { label, id, value, onChangeFunction } = props;
Expand All @@ -19,6 +20,7 @@ const MaterialUITimePicker = (props) => {
KeyboardButtonProps={{
'aria-label': 'change time',
}}
keyboardIcon={<AccessTime />}
/>
</MuiPickersUtilsProvider>
);
Expand Down
1 change: 1 addition & 0 deletions src/Components/drawer/Api/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'swagger-ui-react/swagger-ui.css';
import doc from './ApiDocs.json';

const Index = () => {
document.title = 'SIESGSTArena | API';
return <SwaggerUI spec={doc} />;
};

Expand Down
1 change: 1 addition & 0 deletions src/Components/drawer/ICPC/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import NavButtons from './common/NavButtons';
import './Style.css';

const Index = () => {
document.title = 'SIESGSTarena | ICPC';
return (
<Container className="container-center">
<Typography variant="h4" className="purple" align="left">
Expand Down
2 changes: 2 additions & 0 deletions src/Components/drawer/blogs/blogPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import useSentry from '../../../../customHooks/useSentry';
import BlogLoadingScreen from './BlogLoadingScreen';

const BlogPage = () => {
document.title = 'SIESGSTArena | Blogs';

const { redirectOnSessionExpiredBeforeRender, isSessionExpired } = useSessionExpired();
const { blogId } = useParams();
const { loading, error, data } = useQuery(GET_BLOG_BY_BLOG_ID, {
Expand Down
1 change: 1 addition & 0 deletions src/Components/drawer/blogs/blogsList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import BlogsArray from '../../../user/myBlogs/BlogsArray';
import { allBlogsLimit } from '../../../../utils/constants';

const AllBlogsPageContainer = ({ isSuperuserRoute = false }) => {
document.title = 'SIESGSTArena | Blogs';
const { redirectOnSessionExpiredBeforeRender, isSessionExpired } = useSessionExpired();
const limit = allBlogsLimit;
const activePageNumber = useActivePageState();
Expand Down
15 changes: 9 additions & 6 deletions src/Components/drawer/contests/dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import React from 'react';
import SubmissionDetails from './SubmissionDetails';
import DashboardContainer from './DashboardContainer';

const DashboardPage = () => (
<div>
<DashboardContainer />
<SubmissionDetails />
</div>
);
const DashboardPage = () => {
document.title = 'SIESGSTArena | Dashboard';
return (
<div>
<DashboardContainer />
<SubmissionDetails />
</div>
);
};

export default DashboardPage;
1 change: 1 addition & 0 deletions src/Components/drawer/contests/schedule/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import LoadingTable from '../../../common/LoadingTable/index';
import ContestsTable from './ContestsTable';

const ContestScheduleContainer = () => {
document.title = 'SIESGSTArena | Contest';
const { redirectOnSessionExpiredBeforeRender, isSessionExpired } = useSessionExpired();
const { loading, error, data } = useQuery(GET_CONTEST_HOMEPAGE_DETAILS);

Expand Down
63 changes: 33 additions & 30 deletions src/Components/drawer/goodies/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,40 @@ import tshirt from './assets/tshirt.jpg';
import GoodiesCard from './GoodiesCard';
import 'tachyons';

const Goodies = () => (
<Grid className="mw7">
{/* The following row represents the heading of the route */}
<Row>
<Cell>
<Headline4 className="purple"> Goodies </Headline4>
</Cell>
</Row>

<div className="pa3 br4 mb3 bg-washed-red">
<Row style={{ display: 'flex', justifyContent: 'center' }}>
<img src={gift} alt="gift" />
</Row>
<Row style={{ display: 'flex', justifyContent: 'center' }}>
<Body1>Special goodies for winners and top performers</Body1>
const Goodies = () => {
document.title = 'SIESGSTArena | Goodies';
return (
<Grid className="mw7">
{/* The following row represents the heading of the route */}
<Row>
<Cell>
<Headline4 className="purple"> Goodies </Headline4>
</Cell>
</Row>
</div>

{/* The following row shows all the goodies */}
<Row>
<Cell phoneColumns={2}>
<GoodiesCard goodiesImage={bag} goodiesName="Wildcraft Bags" />
</Cell>
<Cell phoneColumns={2}>
<GoodiesCard goodiesImage={tshirt} goodiesName="T-shirts" />
</Cell>
<Cell phoneColumns={2}>
<GoodiesCard goodiesImage={tshirt} goodiesName="T-shirts" />
</Cell>
</Row>
</Grid>
);
<div className="pa3 br4 mb3 bg-washed-red">
<Row style={{ display: 'flex', justifyContent: 'center' }}>
<img src={gift} alt="gift" />
</Row>
<Row style={{ display: 'flex', justifyContent: 'center' }}>
<Body1>Special goodies for winners and top performers</Body1>
</Row>
</div>

{/* The following row shows all the goodies */}
<Row>
<Cell phoneColumns={2}>
<GoodiesCard goodiesImage={bag} goodiesName="Wildcraft Bags" />
</Cell>
<Cell phoneColumns={2}>
<GoodiesCard goodiesImage={tshirt} goodiesName="T-shirts" />
</Cell>
<Cell phoneColumns={2}>
<GoodiesCard goodiesImage={tshirt} goodiesName="T-shirts" />
</Cell>
</Row>
</Grid>
);
};

export default Goodies;
1 change: 1 addition & 0 deletions src/Components/drawer/lab/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import './Style.css';
import DownloadLink from 'react-download-link';

const Index = () => {
document.title = 'SIESGSTArena | Lab';
const getDataFromURL = (url) =>
new Promise((resolve) => {
setTimeout(() => {
Expand Down
1 change: 1 addition & 0 deletions src/Components/drawer/learn/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import './styles.scss';
import LearnCard from './LearnCard';

const LearnContainer = () => {
document.title = 'SIESGSTarena | Learn';
const [activeIndex, setActiveIndex] = useState(0);
const handleActiveIndexUpdate = (updatedActiveIndex) => {
setActiveIndex(updatedActiveIndex);
Expand Down
1 change: 1 addition & 0 deletions src/Components/drawer/playlists/homePage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import welcomeImage from '../welcomePage/assets/mbri-add-submenu.svg';
import './index.scss';

const WelcomePage = () => {
document.title = 'SIESGSTarena | Playlists';
const topicsArray = topics.map((topic) => (
<Link
key={topic.id}
Expand Down
15 changes: 9 additions & 6 deletions src/Components/drawer/ratings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import React from 'react';
import { Headline4 } from '@material/react-typography';
import RatingsContainer from './RatingsContainer';

const RatingsPage = () => (
<div className="mw7 center pa2">
<Headline4 className="purple mb2 mt2">Ratings</Headline4>
<RatingsContainer />
</div>
);
const RatingsPage = () => {
document.title = 'SIESGSTArena | Ratings';
return (
<div className="mw7 center pa2">
<Headline4 className="purple mb2 mt2">Ratings</Headline4>
<RatingsContainer />
</div>
);
};

export default RatingsPage;
13 changes: 8 additions & 5 deletions src/Components/footerPages/about/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react';
import AboutTabBar from './AboutTabBar';

const About = () => (
<div>
<AboutTabBar />
</div>
);
const About = () => {
document.title = 'SIESGSTArena | About';
return (
<div>
<AboutTabBar />
</div>
);
};

export default About;
Loading

0 comments on commit 2129835

Please sign in to comment.