-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbanner.js
More file actions
40 lines (33 loc) · 944 Bytes
/
banner.js
File metadata and controls
40 lines (33 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React from "react"
import PropTypes from "prop-types"
//images
import { WorkshopCard } from "./cards"
const darkBg =
"https://res.cloudinary.com/kingisaac95/image/upload/v1581518763/unstack_assets/dark-blue-wave-tile.png"
const Banner = ({ title }) => (
<>
<section className="w-full relative bg-primary px-6 py-4">
<article className="md:w-6/12 md:px-24 text-center">
<h2 className="text-white mt-5 md:mt-24">{title}</h2>
</article>
<WorkshopCard />
</section>
<section className="w-full">
<figure>
<img
className="w-full -mt-1"
src={darkBg}
alt="Dark background for styling only"
/>
</figure>
</section>
</>
)
Banner.prototype = {
title: PropTypes.string,
}
Banner.defaultProps = {
title:
"An open-source conference for every engineer focused on hands-on workshops and world-class talks.",
}
export default Banner