JSFiddle - React, Tailwind, and code Playground
by Brewal Renault
HTML
<div class="warp agenda">
<h2>Agenda</h2>
<div>
<ol>
<li>
<strong>7 février 2014</strong>
<p>ahepohfaopehf : <br/>aoifhaoiezfhaoezigbaeoifhoaifhjaoiz</p>
</li>
<li>
<strong>6 février 2014</strong>
<p>ahepohfaopehf : <br/>aoifhaoiezfhaoezigbaeoifhoaifhjaoiz</p>
</li>
</ol>
<p><a href="#">Lire le calendrier</a></p>
</div>
</div>
CSS
* {
margin: 0;
padding: 0;
}
div.warp {
width: 250px;
background: #33AACC;
color: white;
text-align: center;
padding: 5px 50px 35px 50px;
position: relative;
border-radius: 30px 0 30px 0;
overflow: hidden;
}
a {
color: inherit;
text-decoration: none;
}
div.warp h2 {
font-weight: normal;
padding: 15px 0;
position: relative;
margin-bottom: 10px;
}
div.warp h2:after {
content: ' ';
width: 118px;
height: 1px;
background: white;
display: block;
position: absolute;
left: 0;
bottom: 0;
}
div.warp h2:before {
content: ' ';
width: 118px;
height: 1px;
background: white;
display: block;
position: absolute;
right: 0;
bottom: 0;
}
div.warp:before {
content: ' ';
position: absolute;
height: 26px;
width: 80px;
top: -15px;
left: 50%;
margin-left: -40px;
background: white;
border-radius: 40px / 13px;
}
ol {
list-style: none
}
div.warp>div>p {
position: relative;
padding: 20px 0 60px 0;
}
div.warp>div>p:before {
content: ' ';
position: absolute;
width: 100px;
left: 0;
bottom: 0;
background: white;
height: 1px;
display: block;
}
div.warp>div>p:after {
content: ' ';
position: absolute;
width: 100px;
right: 0;
bottom: 0;
background: white;
height: 1px;
display: block;
}
div.warp:after {
content: ' ';
width: 49px;
display: block;
position: absolute;
bottom: 10px;
left: 50%;
margin-left: -25px;
height: 50px;
}
div.agenda:after {
content: ' ';
border: 1px solid white;
}
div.agenda>div>ol>li {
margin-bottom: 15px;
}