diff --git a/src/components/header-logo.js b/src/components/header-logo.js index fcf842b..b8de01f 100644 --- a/src/components/header-logo.js +++ b/src/components/header-logo.js @@ -84,7 +84,9 @@ export default function HeaderLogo({ transition }) { Abc Project Design Ltd - Easy as ABC + + Easy as ABC + diff --git a/src/components/text.js b/src/components/text.js index 13cc203..cd9e23b 100644 --- a/src/components/text.js +++ b/src/components/text.js @@ -3,12 +3,17 @@ import styled from "@emotion/styled"; import { css } from "@emotion/react"; const StyledText = styled.p` - margin-bottom: var(--spacing-y-xs); + margin: ${props => (props.noMargin ? 0 : `0 0 var(--spacing-y-md)`)}; ${props => props.textStyle && css` font-style: ${props.textStyle}; `} + ${props => + props.align && + css` + text-align: ${props.align}; + `} font-size: ${props => `var(--font-size-${props.size})`}; color: ${props => `var(--theme-color-${props.color})`}; `;