diff --git a/docs/index.mdx b/docs/index.mdx index d83094c5c2..75b582d741 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -12,7 +12,7 @@ SCS is built, backed, and operated by an active open-source community worldwide. ## Architectual Overview - + ## Use Cases and Deployment Examples @@ -63,6 +63,7 @@ While the SCS project tracks the efforts across the released epics and user stor - OSISM and others. All code not pushed upstream can be found in the [SCS Github organization](https://github.com/SovereignCloudStack). + ### Issues and Bugs If you can identify the affected component, raise the issue against the relevant repository in the SovereignCloudStack or OSISM space. Otherwise, you can use the [issues repository](https://github.com/SovereignCloudStack/issues). We appreciate PRs as well as issues; please don't forget to sign off your contributions see [contributor guide](https://docs.scs.community/community). @@ -77,4 +78,4 @@ See our Release Notes [here](https://docs.scs.community/docs/category/releases) ## Standards, Conformity and Certification -How to get compliant? With what am I compliant then? What are the benefits? What does it involve? What to expect in the future? Learn more in the [standards section](https://docs.scs.community/standards). +How to get compliant? What do I need to be compliant? What are the benefits? What does it involve? What to expect in the future? Learn more in the [standards section](https://docs.scs.community/standards). diff --git a/src/components/ArchitecturalModel.tsx b/src/components/ArchitecturalModel.tsx index 017996b1e2..4cf0c68194 100644 --- a/src/components/ArchitecturalModel.tsx +++ b/src/components/ArchitecturalModel.tsx @@ -7,21 +7,25 @@ interface ArchitecturalLayerItem { body: string url: string buttonText: string + components?: [] } interface ArchitecturalLayerData { - left: ArchitecturalLayerItem[] - center: ArchitecturalLayerItem[] - right: ArchitecturalLayerItem[] + ops: ArchitecturalLayerItem[] + container: ArchitecturalLayerItem[] + iaas: ArchitecturalLayerItem[] + iam: ArchitecturalLayerItem[] } interface ArchitecturalModelProps { jsonFilePath: string + topLayers?: boolean } -const ArchitecturalModel: React.FunctionComponent = ({ - jsonFilePath -}) => { +const ArchitecturalModel: React.FunctionComponent = ( + props +) => { + const { jsonFilePath, topLayers } = props const [data, setData] = useState(null) const [isLoading, setIsLoading] = useState(true) const [error, setError] = useState(null) @@ -58,41 +62,67 @@ const ArchitecturalModel: React.FunctionComponent = ({ } return ( -
-
- {data.left.map((item) => ( +
+
+ {data.ops.map((layer) => ( ))}
-
- {data.center.map((item) => ( +
+ {data.container.map((layer) => (
+
+ ))} + {data.iaas.map((layer) => ( +
+
))}
-
- {data.right.map((item) => ( +
+ {data.iam.map((layer) => ( ))}
diff --git a/src/components/ContentCard.tsx b/src/components/ContentCard.tsx index 24d090e400..c1eb6beac1 100644 --- a/src/components/ContentCard.tsx +++ b/src/components/ContentCard.tsx @@ -1,31 +1,63 @@ import React, { CSSProperties } from 'react' import styles from './contentcard.module.css' import Link from '@docusaurus/Link' +import { useLocation } from '@docusaurus/router' + +interface LayerComponent { + title: string + url: string +} interface ContentCardProps { + style?: React.CSSProperties title: string body: string url: string buttonText: string - maxHeight?: boolean + small?: boolean + components?: LayerComponent[] } const ContentCard: React.FunctionComponent = (props) => { - const { title, body, url, buttonText, maxHeight } = props + const { title, body, url, buttonText, style, small, components } = props + + const location = useLocation() + console.log(location.pathname) return ( -
+
-

{title}

+ {small ?
{title}
:

{title}

}

{body}

-
- - {buttonText} - +
+ {components && + components.map((component) => ( + +
+ {component.title} +
+ + ))}
+ {buttonText && ( +
+ + {buttonText} + +
+ )}
) } diff --git a/src/components/architecturalmodel.module.css b/src/components/architecturalmodel.module.css index 28ef023f60..7cad75e66b 100644 --- a/src/components/architecturalmodel.module.css +++ b/src/components/architecturalmodel.module.css @@ -1,11 +1,20 @@ .gradient { background: linear-gradient( 180deg, - #0061ff 0%, - rgba(80, 195, 165, 0) 50%, - #50c3a5 100% + rgb(0, 97, 255, 0.2) 20%, + rgba(80, 195, 165, 10) 50%, + #50c3a5 80% ); border-radius: 16px; - margin: 16px; - padding: 16px; + margin: 4px; +} + +.border { + border: rgba(0, 97, 255, 1) solid 4px; + border-radius: 16px; + margin: 4px; +} + +.bottom { + margin-bottom: 16px; } diff --git a/src/components/contentcard.module.css b/src/components/contentcard.module.css index 4dcb7cf81d..c007a5e098 100644 --- a/src/components/contentcard.module.css +++ b/src/components/contentcard.module.css @@ -26,6 +26,23 @@ } } -.card { - margin-bottom: 1rem; +.contentCard { + border: solid #666 2px; + box-shadow: 2px 2px 4px 4px rgba(10, 10, 10, 0.1); +} + +.layerComponent { + border-radius: 4px; + background: #eee; + width: 80px; + height: 80px; + margin: 0 0 16px 16px; + padding: 8px; + font-size: 10px; + text-decoration: none; + color: black; + &&:hover { + color: blue; + text-decoration: none; + } } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 768727c7ce..c51a2f7eff 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -65,7 +65,6 @@ export default function Home(): JSX.Element { {featureContent.map((card, index) => (

Architectural Layers

- +
+ +
@@ -89,7 +93,6 @@ export default function Home(): JSX.Element { {additionalResources.map((card, index) => (