mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 16:06:15 +02:00
feat: bootstrap docs layout & sidebar
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import React from "react"
|
||||
import { SidebarTitle } from "./style"
|
||||
|
||||
export interface DocsSidebarSectionProps {
|
||||
readonly title: string
|
||||
}
|
||||
|
||||
const DocsSidebarSection = ({
|
||||
title,
|
||||
children,
|
||||
}: React.PropsWithChildren<DocsSidebarSectionProps>) => {
|
||||
return (
|
||||
<div>
|
||||
<SidebarTitle>{title}</SidebarTitle>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default DocsSidebarSection
|
||||
@@ -0,0 +1,5 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const SidebarTitle = styled.h3`
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
Reference in New Issue
Block a user