-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add link directory to make pages accessible
- Loading branch information
1 parent
8a3878c
commit 1541a6b
Showing
4 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import * as React from 'react'; | ||
import { RouteComponentProps } from 'react-router'; | ||
import { Link } from 'react-router-dom'; | ||
import { getLinkForPage, LINK_PAGE } from '../../util/approutes'; | ||
import { LinkDirectory } from './support/LinkDirectory'; | ||
import { Divider } from '@material-ui/core'; | ||
|
||
export interface HomePageProps extends RouteComponentProps { } | ||
export interface HomePageProps extends RouteComponentProps {} | ||
|
||
export const HomePage = (props: HomePageProps) => ( | ||
<div> | ||
This page is under construction | ||
<br /> | ||
<ul> | ||
<li> | ||
<Link to={getLinkForPage(LINK_PAGE)}>Collection of Useful Links</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
); | ||
<> | ||
<h1>Main Page</h1> | ||
Elite Sexyz is currently under construction. See discord main channel for more information | ||
<Divider /> | ||
<LinkDirectory /> | ||
</> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import { List } from '@material-ui/core'; | ||
import { Divider, List } from '@material-ui/core'; | ||
import * as React from 'react'; | ||
import { RouteComponentProps } from 'react-router'; | ||
import { LinkListItem } from '../general/LinkListItem'; | ||
import { LinkDirectory } from './support/LinkDirectory'; | ||
|
||
export interface LinkPageProps extends RouteComponentProps { } | ||
export interface LinkPageProps extends RouteComponentProps {} | ||
|
||
export const LinkPage = (props: LinkPageProps) => ( | ||
<List> | ||
<LinkListItem href={"https://elite-se.informatik.uni-augsburg.de"} title={"Main Webpage"} /> | ||
<LinkListItem href={"https://github.com/elite-se/elite-se.protokolle"} title={"Exam Protocols"} /> | ||
</List> | ||
); | ||
<> | ||
<h1>Useful Links List</h1> | ||
<List> | ||
<LinkListItem href={'https://elite-se.informatik.uni-augsburg.de'} title={'Main Webpage'} /> | ||
<LinkListItem href={'https://github.com/elite-se/elite-se.protokolle'} title={'Exam Protocols'} /> | ||
</List> | ||
|
||
<Divider /> | ||
|
||
<LinkDirectory /> | ||
</> | ||
); |
13 changes: 13 additions & 0 deletions
13
packages/frontend/src/components/pages/support/LinkDirectory.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { APP_ROUTES, getLinkDisplayNameForPage, getLinkForPage } from '../../../util/approutes'; | ||
|
||
export const LinkDirectory = () => ( | ||
<ul> | ||
{APP_ROUTES.map((route, index) => ( | ||
<li key={index}> | ||
<Link to={getLinkForPage(route)}>{getLinkDisplayNameForPage(route)}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters