-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update demo site home pages and login
- Loading branch information
1 parent
1234327
commit 062c0e6
Showing
13 changed files
with
219 additions
and
180 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
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 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 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 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 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 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,7 +1,14 @@ | ||
import { ServicesInstallationSections } from './overridden/frontsite/Home/Sections/ServicesInstallationSections'; | ||
import { SectionDocsAndUsage } from './overridden/frontsite/Home/Sections/SectionDocsAndUsage'; | ||
import { | ||
RightMenuItem, | ||
RightMenuItemMobile, | ||
} from './overridden/components/Menu'; | ||
import { LoginDocs } from './overridden/authentication/Login'; | ||
import { FeaturesRoute } from './overridden/routes/FrontsiteUrls'; | ||
|
||
export const overriddenCmps = { | ||
'SectionsWrapper.servicesInstallationSections': ServicesInstallationSections, | ||
'SectionInstallation.layout': SectionDocsAndUsage, | ||
'SectionsWrapper.servicesInstallationSections': () => null, | ||
'ILSMenu.RightMenuItems': RightMenuItem, | ||
'ILSMenu.RightMenuItemsMobile': RightMenuItemMobile, | ||
'Login.layout.extras': LoginDocs, | ||
'FrontSite.CustomRoute': FeaturesRoute, | ||
}; |
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,60 @@ | ||
import React from 'react'; | ||
import { Header, Label, List, Grid, Card, Divider } from 'semantic-ui-react'; | ||
|
||
export const LoginDocs = () => { | ||
return ( | ||
<> | ||
<Divider /> | ||
<Header size="medium" textAlign="center"> | ||
<Label circular size="huge" color="orange"> | ||
? | ||
</Label> | ||
{' '} | ||
Test ILS demo instance | ||
</Header> | ||
<Grid centered> | ||
<Grid.Row columns={2}> | ||
<Grid.Column width={8}> | ||
<Card fluid color="orange" className="install-card"> | ||
<Card.Content> | ||
<Card.Header>As a Patron by logging in with</Card.Header> | ||
<List> | ||
<List.Item> | ||
<List.Header>email: [email protected]</List.Header> | ||
</List.Item> | ||
<List.Item> | ||
<List.Header>password: 123456</List.Header> | ||
</List.Item> | ||
</List> | ||
</Card.Content> | ||
</Card> | ||
</Grid.Column> | ||
<Grid.Column width={8}> | ||
<Card fluid color="orange" className="install-card"> | ||
<Card.Content> | ||
<Card.Header>As a Librarian by logging in with</Card.Header> | ||
<List> | ||
<List.Item> | ||
<List.Header>email: [email protected]</List.Header> | ||
</List.Item> | ||
<List.Item> | ||
<List.Header>password: 123456</List.Header> | ||
</List.Item> | ||
</List> | ||
</Card.Content> | ||
</Card> | ||
</Grid.Column> | ||
</Grid.Row> | ||
<Grid.Row> | ||
<List> | ||
<List.Header>Note:</List.Header> | ||
<List.Item> | ||
Email sending functionality is disabled for the demo instance. | ||
</List.Item> | ||
<List.Item>The demo data will be recreated periodically.</List.Item> | ||
</List> | ||
</Grid.Row> | ||
</Grid> | ||
</> | ||
); | ||
}; |
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,47 @@ | ||
import { Media } from '@inveniosoftware/react-invenio-app-ils'; | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { Dropdown, Menu } from 'semantic-ui-react'; | ||
import { DemoFrontSiteRoutes } from '../routes/FrontsiteUrls'; | ||
|
||
export const RightMenuItem = () => { | ||
return ( | ||
<> | ||
<Menu.Item> | ||
<Link to={DemoFrontSiteRoutes.features}>Features</Link> | ||
</Menu.Item> | ||
<Menu.Item> | ||
<Link | ||
to={{ pathname: 'https://invenioils.docs.cern.ch' }} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Documentation | ||
</Link> | ||
</Menu.Item> | ||
</> | ||
); | ||
}; | ||
|
||
export const RightMenuItemMobile = () => { | ||
return ( | ||
<Media lessThan="computer"> | ||
<Dropdown item icon="help"> | ||
<Dropdown.Menu> | ||
<Dropdown.Item as={Link} to={DemoFrontSiteRoutes.features}> | ||
Features | ||
</Dropdown.Item> | ||
<Dropdown.Divider /> | ||
<Dropdown.Item | ||
as={Link} | ||
to={{ pathname: 'https://invenioils.docs.cern.ch' }} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Documentation | ||
</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</Media> | ||
); | ||
}; |
Oops, something went wrong.