1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-28 19:04:18 +00:00
This commit is contained in:
Steffo 2021-03-25 18:05:49 +01:00
parent 65f78106e2
commit 1f113267d7
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 21 additions and 15 deletions

View file

@ -1,13 +1,15 @@
import React from "react"
import { Split as BluelibSplit, Title } from "bluelib/lib/components"
import PropTypes from "prop-types"
import classNames from "classnames"
import Style from "./Split.module.css"
export default function Split({ children, title, ...props }) {
export default function Split({ children, className, titleClassName, title, ...props }) {
return (
<div {...props}>
<div className={classNames(Style.Split, className)} {...props}>
{title ?
<Title size={"xl"}>
<Title className={classNames(Style.SplitTitle, titleClassName)} size={"xl"}>
{title}
</Title>
: null}
@ -17,9 +19,3 @@ export default function Split({ children, title, ...props }) {
</div>
)
}
Split.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
title: PropTypes.node,
}

View file

@ -0,0 +1,11 @@
.Split {
}
.SplitTitle {
}
.Split:first-child .SplitTitle {
}

View file

@ -48,12 +48,11 @@ export default function Sistemioperativi() {
</P>
</Box>
</Split>
<Separator style={{marginBottom: "12px", marginTop: "64px"}}/>
<article>
<Title size={"xxl"}>
Arzigogolo #5 del 2019
</Title>
<Split title={"Prerequisiti"}>
<Split title={"Prerequisiti"} major={true}>
<Ex title={"Premessa"}>
<P>
Tutti gli esercizi devono essere svolti su un sistema guest <B>Arch Linux</B> testuale.
@ -75,7 +74,7 @@ export default function Sistemioperativi() {
</P>
</Box>
</Split>
<Split title={"Parte 1"}>
<Split title={"Parte 1"} major={true}>
<Ex title={"Consegna"}>
<P>
Si scarichi e si installi il software cscope per lindicizzazione di alberi sorgenti. Si indicizzino gli alberi sorgenti dei seguenti software: