Skip to content

Commit

Permalink
feat: a first ugly and not responsive front page
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Sep 26, 2023
1 parent 2571fa3 commit 215ac97
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 34 deletions.
Binary file added public/showcase1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/showcase2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/components/DiracLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function DiracLogo() {
return (
<>
<NextLink href="/">
<Image src="/DIRAC-logo.png" alt="DIRAC logo" width={200} height={70} />
<Image src="/DIRAC-logo.png" alt="DIRAC logo" width={150} height={55} />
</NextLink>
</>
);
Expand Down
58 changes: 26 additions & 32 deletions src/app/components/ShowcaseAppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DiracLogo } from "./DiracLogo";
import { LoginButton } from "./LoginButton";
import { Stack } from "@mui/material";
import { DashboardButton } from "./DashboardButton";
import Image from "next/image";

/**
* Controls the response due to a scrolling
Expand All @@ -37,10 +38,8 @@ function ElevationScroll(props: Props) {
*/
export default function ShowcaseAppBar(props: Props) {
const Item = styled(Paper)(({ theme }) => ({
backgroundColor: theme.palette.mode === "dark" ? "#1A2027" : "#fff",
...theme.typography.body2,
padding: theme.spacing(1),
color: theme.palette.text.secondary,
padding: theme.spacing(6),
elevation: 0,
}));

return (
Expand Down Expand Up @@ -69,40 +68,35 @@ export default function ShowcaseAppBar(props: Props) {
</ElevationScroll>
<Toolbar />
<Grid container spacing={2} sx={{ my: 2 }}>
<Grid item xs={6} md={8}>
<Grid item xs={6} md={4}>
<Item>
Cras mattis consectetur purus sit amet fermentum. Cras justo odio,
dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta
ac consectetur ac, vestibulum at eros. Praesent commodo cursus
magna, vel scelerisque nisl consectetur et. Cras mattis consectetur
purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in,
egestas eget quam. Morbi leo risus, porta ac consectetur ac,
vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
nisl consectetur et. Cras mattis consectetur purus sit amet
fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
The DIRAC interware is a software framework that enables communities
to interact with distributed computing resources. DIRAC forms a
layer between users and resources, hiding diversities across
computing and storage resources.
</Item>
</Grid>
<Grid item xs={6} md={4}>
<Item>Image</Item>
<Grid item xs={6} md={6}>
<Image
src="/showcase1.png"
alt="DIRAC logo"
width={400}
height={400}
/>
</Grid>
<Grid item xs={6} md={4}>
<Item>Image</Item>
<Grid item xs={6} md={6}>
<Image
src="/showcase2.png"
alt="DIRAC logo"
width={400}
height={400}
/>
</Grid>
<Grid item xs={6} md={8}>
<Grid item xs={6} md={4}>
<Item>
Cras mattis consectetur purus sit amet fermentum. Cras justo odio,
dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta
ac consectetur ac, vestibulum at eros. Praesent commodo cursus
magna, vel scelerisque nisl consectetur et. Cras mattis consectetur
purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in,
egestas eget quam. Morbi leo risus, porta ac consectetur ac,
vestibulum at eros. Praesent commodo cursus magna, vel scelerisque
nisl consectetur et. Cras mattis consectetur purus sit amet
fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget
quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
DIRAC has been adopted by several HEP and non-HEP experiments
communities, with different goals, intents, resources and workflows:
it is experiment agnostic, extensible, and flexible.
</Item>
</Grid>
</Grid>
Expand Down
11 changes: 10 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import ShowcaseAppBar from "./components/ShowcaseAppBar";

const containerStyles = {
marginLeft: "30%",
marginRight: "30%",
};

export default function Page() {
return <ShowcaseAppBar></ShowcaseAppBar>;
return (
<div style={containerStyles}>
<ShowcaseAppBar />
</div>
);
}

0 comments on commit 215ac97

Please sign in to comment.