Skip to content

Commit

Permalink
Merge pull request #59 from damla/dev
Browse files Browse the repository at this point in the history
[#48] feat: add title
  • Loading branch information
damla authored Jan 14, 2021
2 parents f2e155b + 2b19258 commit 5555933
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
11 changes: 6 additions & 5 deletions components/section/section.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ export default function Section ({
): ReactElement {
return (
<section
className={classNames(
styles.container,
banner !== undefined && styles.container__banner,
relative !== undefined && styles.relative
)}
className={
classNames(
styles.container,
banner !== undefined && styles.container__banner,
relative !== undefined && styles.relative
)}
id={id}
>
{children}
Expand Down
12 changes: 12 additions & 0 deletions pages/about-us/about-us.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.h1 {
font-family: "Zaph Humanist", sans-serif;
margin-left: 1.5rem;
font-size: 3rem;
position: absolute;
bottom: 0;
left: 0;
z-index: 2;
text-transform: uppercase;
color: white;
}
// TODO: media query for mobile
5 changes: 3 additions & 2 deletions pages/about-us/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ImageBox from '../../components/image-box/image-box.component'

import { getData } from '../../lib'
import { CommonModel, AboutUsModel } from '../../interfaces/index'
import styles from './about-us.module.scss'

interface Props {
common: CommonModel
Expand Down Expand Up @@ -37,7 +38,7 @@ export default function AboutUs ({
<title>{title}</title>
</Head>
<Layout data={common} navbarBg>
<Section banner>
<Section banner relative>
<ImageBox
src="/assets/images/about_us_hero.png"
alt="banner-image"
Expand All @@ -46,12 +47,12 @@ export default function AboutUs ({
hero
placeholderColor="#404040"
/>
<h1 className={styles.h1}>{title}</h1>
</Section>
<Section relative>
<div style={{
minHeight: '100vh'
}}>
<p>test</p>
</div>
</Section>
</Layout>
Expand Down

1 comment on commit 5555933

@vercel
Copy link

@vercel vercel bot commented on 5555933 Jan 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.