-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,080 additions
and
3,117 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
import React from 'react'; | ||
import {Flex, Heading, MenuTrigger, ActionButton, Menu, Item} from '@adobe/react-spectrum'; | ||
|
||
const TopNavBar: React.FC = () => { | ||
return ( | ||
<Flex margin="auto" justifyContent="space-between" alignItems="center" width="95%" height="100%"> | ||
<Heading level={1}>Metroll</Heading> | ||
<MenuTrigger> | ||
<ActionButton>☰</ActionButton> | ||
<Menu onAction={(key) => alert(key)}> | ||
<Item key="auth">Login/Sign In</Item> | ||
<Item key="home">Home</Item> | ||
<Item key="about">About</Item> | ||
</Menu> | ||
</MenuTrigger> | ||
</Flex> | ||
); | ||
} | ||
|
||
export default TopNavBar; |
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,17 @@ | ||
import React from 'react'; | ||
import {Flex, Heading, MenuTrigger, ActionButton, Menu, Item, ActionGroup} from '@adobe/react-spectrum'; | ||
|
||
const TransitBar: React.FC = () => { | ||
return ( | ||
<Flex margin="auto" alignItems="center" justifyContent="center" height="100%"> | ||
<ActionGroup selectionMode="single" width="fit-content" defaultSelectedKeys={['planner']}> | ||
<Item key="departures">Departures</Item> | ||
<Item key="planner">Trip Planner</Item> | ||
<Item key="routes">Routes</Item> | ||
</ActionGroup> | ||
|
||
</Flex> | ||
); | ||
} | ||
|
||
export default TransitBar; |
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,35 @@ | ||
import React from 'react'; | ||
import TopNavBar from './Components/TopNavBar'; | ||
import {Provider, defaultTheme, Grid, View} from "@adobe/react-spectrum"; | ||
import TransitBar from "./Components/TransitBar"; | ||
|
||
function Home() { | ||
return ( | ||
<Provider theme={defaultTheme}> | ||
<Grid | ||
areas={[ | ||
'header header', | ||
'subheader subheader', | ||
'sidebar content', | ||
'footer footer' | ||
]} | ||
columns={['1fr', '2fr']} | ||
rows={['size-1000', "size-1000", '1fr', 'size-1000']} | ||
height="100vh" | ||
gap="size-0" | ||
> | ||
<View colorVersion={6} borderWidth="thin" backgroundColor="orange-500" gridArea="header"> | ||
<TopNavBar /> | ||
</View> | ||
<View colorVersion={6} borderWidth="thin" backgroundColor="orange-500" gridArea="subheader"> | ||
<TransitBar /> | ||
</View> | ||
<View colorVersion={6} borderWidth="thin" backgroundColor="orange-500" gridArea="sidebar" /> | ||
<View colorVersion={6} borderWidth="thin" backgroundColor="orange-500" gridArea="content" /> | ||
<View colorVersion={6} borderWidth="thin" backgroundColor="orange-500" gridArea="footer" /> | ||
</Grid> | ||
</Provider> | ||
); | ||
} | ||
|
||
export default Home; |
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