Skip to content

Commit

Permalink
Merge pull request #246 from linea-it/241-new-card-for-pz-compute
Browse files Browse the repository at this point in the history
241 new card for pz compute
  • Loading branch information
gschwend committed May 3, 2024
2 parents 319de78 + f677a9f commit f517a09
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 6 deletions.
38 changes: 38 additions & 0 deletions frontend/components/PzCompute.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import * as React from 'react'
import Box from '@mui/material/Box'
import Card from '@mui/material/Card'
import CardContent from '@mui/material/CardContent'
import CardMedia from '@mui/material/CardMedia'
import Typography from '@mui/material/Typography'
import Link from './Link'

function PzCompute() {
return (
<Link href="/pz_compute">
<Card
elevation={3}
sx={{
display: 'flex'
}}
>
<CardMedia
component="img"
sx={{ width: 350, height: 231 }}
image="../interfaces/telescope.jpg"
alt="PhotozCompute"
/>
<Box>
<CardContent m={2} sx={{ maxWidth: 500 }}>
<Typography variant="h5">Photo-z Compute</Typography>
<Typography variant="body1" color="text.secondary">
A high-performance computing pipeline to estimate photo-zs using
the Brazilian IDAC resources.
</Typography>
</CardContent>
</Box>
</Card>
</Link>
)
}

export default PzCompute
2 changes: 1 addition & 1 deletion frontend/components/SpeczCatalogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function SpeczCatalogs() {
>
<CardMedia
component="img"
sx={{ width: 350 }}
sx={{ width: 350, height: 231 }}
image="../interfaces/milkyway.jpg"
alt="Spec-z Catalogs"
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/TrainingSetMaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function TrainingSetMaker() {
>
<CardMedia
component="img"
sx={{ width: 350 }}
sx={{ width: 350, height: 231 }}
image="../interfaces/lsst_summit.jpg"
alt="Training Set Maker"
/>
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ export default function MyApp(props) {
<ThemeProvider theme={darkMode ? darkTheme : lightTheme}>
<CssBaseline />
<Box
style={{
sx={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
minHeight: '100vh',
overflowY: scrollNeeded ? 'auto' : 'hidden'
overflowY: scrollNeeded ? 'hidden' : 'hidden'
}}
>
<AuthProvider>
Expand Down
49 changes: 49 additions & 0 deletions frontend/pages/pz_compute.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from 'react'
import { Typography, Box } from '@mui/material'
import Breadcrumbs from '@mui/material/Breadcrumbs'
import Link from '@mui/material/Link'
import Grid from '@mui/material/Grid'
import IconButton from '@mui/material/IconButton'
import InfoIcon from '@mui/icons-material/Info'
import ArrowBackIos from '@mui/icons-material/ArrowBackIos'

function PhotozCumpute() {
return (
<Grid flexGrow={1} mt={3}>
<Breadcrumbs aria-label="breadcrumb" ml={1}>
<Link color="inherit" href="/">
Home
</Link>
<Link color="inherit" href="pz_pipelines">
Pipelines
</Link>
<Typography color="textPrimary">Photo-z Compute</Typography>
</Breadcrumbs>
<Grid>
<Typography variant="h5" textAlign={'left'} ml={1} mt={1}>
<IconButton
color="primary"
aria-label="Go back"
onClick={() => window.history.back()}
>
<ArrowBackIos />
</IconButton>
Photo-z Compute
<IconButton
color="primary"
aria-label="info"
title="A high-performance computing pipeline to estimate
photo-zs using the Brazilian IDAC resources."
>
<InfoIcon />
</IconButton>
</Typography>
</Grid>
<Box textAlign={'center'} mt={30}>
<Typography variant="h4">Coming soon...</Typography>
</Box>
</Grid>
)
}

export default PhotozCumpute
8 changes: 6 additions & 2 deletions frontend/pages/pz_pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import IconButton from '@mui/material/IconButton'
import React from 'react'
import SpeczCatalogs from '../components/SpeczCatalogs'
import TrainingSetMaker from '../components/TrainingSetMaker'
import PzCompute from '../components/PzCompute'

function PZPipelines() {
return (
Expand Down Expand Up @@ -35,12 +36,15 @@ function PZPipelines() {
Photo-z Server Pipelines
</Typography>

<Grid item mb={5}>
<Grid item xs={12} mb={5}>
<SpeczCatalogs />
</Grid>
<Grid item>
<Grid item xs={12} mb={5}>
<TrainingSetMaker />
</Grid>
<Grid item xs={12}>
<PzCompute />
</Grid>
</Grid>
)
}
Expand Down
Binary file added frontend/public/interfaces/telescope.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f517a09

Please sign in to comment.