Browse Source

First commit

master
Luc Juggery 4 years ago
commit
54f221b5ac
  1. 3
      README.txt
  2. 216
      css/style.css
  3. BIN
      images/.DS_Store
  4. BIN
      images/cncf.png
  5. BIN
      images/docker.png
  6. BIN
      images/hashicorp.png
  7. BIN
      images/telecomvalley.png
  8. 91
      index.html
  9. 51
      js/index.js
  10. 12
      license.txt
  11. 288
      scss/style.scss

3
README.txt

@ -0,0 +1,3 @@
A Pen created at CodePen.io. You can find this one at http://codepen.io/savalazic/pen/QKwERN.

216
css/style.css

@ -0,0 +1,216 @@
section {
padding: 100px 0;
}
html, body {
overflow-x: hidden;
}
body {
font-family: 'Roboto';
font-size: 17px;
font-weight: 400;
background-color: #eee;
}
h1 {
font-size: 200%;
text-transform: uppercase;
letter-spacing: 3px;
font-weight: 400;
}
header {
background: #3F51B5;
color: #FFFFFF;
padding: 150px 0;
}
header p {
font-family: 'Allura';
color: rgba(255, 255, 255, 0.2);
margin-bottom: 0;
font-size: 60px;
margin-top: -30px;
}
.timeline {
position: relative;
}
.timeline::before {
content: '';
background: #C5CAE9;
width: 5px;
height: 95%;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.timeline-item {
width: 100%;
margin-bottom: 70px;
}
.timeline-item:nth-child(even) .timeline-content {
float: right;
padding: 40px 30px 10px 30px;
}
.timeline-item:nth-child(even) .timeline-content .date {
right: auto;
left: 0;
}
.timeline-item:nth-child(even) .timeline-content::after {
content: '';
position: absolute;
border-style: solid;
width: 0;
height: 0;
top: 30px;
left: -15px;
border-width: 10px 15px 10px 0;
border-color: transparent #f5f5f5 transparent transparent;
}
.timeline-item::after {
content: '';
display: block;
clear: both;
}
.timeline-content {
position: relative;
width: 45%;
padding: 10px 30px;
border-radius: 4px;
background: #f5f5f5;
box-shadow: 0 20px 25px -15px rgba(0, 0, 0, 0.3);
}
.timeline-content::after {
content: '';
position: absolute;
border-style: solid;
width: 0;
height: 0;
top: 30px;
right: -15px;
border-width: 10px 0 10px 15px;
border-color: transparent transparent transparent #f5f5f5;
}
.timeline-img {
width: 30px;
height: 30px;
background: #3F51B5;
border-radius: 50%;
position: absolute;
left: 50%;
margin-top: 25px;
margin-left: -15px;
}
a {
background: #3F51B5;
color: #FFFFFF;
padding: 8px 20px;
text-transform: uppercase;
font-size: 14px;
margin-bottom: 20px;
margin-top: 10px;
display: inline-block;
border-radius: 2px;
box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.6);
}
a:hover, a:active, a:focus {
background: #32408f;
color: #FFFFFF;
text-decoration: none;
}
.timeline-card {
padding: 0 !important;
}
.timeline-card p {
padding: 0 20px;
}
.timeline-card a {
margin-left: 20px;
}
.timeline-item:nth-child(2) .timeline-img-header {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)), url("https://hd.unsplash.com/photo-1458530970867-aaa3700e966d") center center no-repeat;
background-size: cover;
}
.timeline-item:nth-child(5) .timeline-img-header {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)), url("https://hd.unsplash.com/photo-1444093826349-9ce8c622f4f3") center center no-repeat;
background-size: cover;
}
.timeline-item:nth-child(6) .timeline-img-header {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)), url("https://hd.unsplash.com/photo-1471479917193-f00955256257") center center no-repeat;
background-size: cover;
}
.timeline-item:nth-child(8) .timeline-img-header {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)), url("https://hd.unsplash.com/photo-1466840787022-48e0ec048c8a") center center no-repeat;
background-size: cover;
}
.timeline-item:nth-child(10) .timeline-img-header {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)), url("https://hd.unsplash.com/photo-1447639703758-f525f36456bf") center center no-repeat;
background-size: cover;
}
.timeline-item:nth-child(11) .timeline-img-header {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)), url("https://hd.unsplash.com/photo-1469429978400-082eec725ad5") center center no-repeat;
background-size: cover;
}
.timeline-img-header {
height: 200px;
position: relative;
margin-bottom: 20px;
}
.timeline-img-header h2 {
color: #FFFFFF;
position: absolute;
bottom: 5px;
left: 20px;
}
blockquote {
margin-top: 30px;
color: #757575;
border-left-color: #3F51B5;
padding: 0 20px;
}
.date {
background: #FF4081;
display: inline-block;
color: #FFFFFF;
padding: 10px;
position: absolute;
top: 0;
right: 0;
}
@media screen and (max-width: 768px) {
.timeline::before {
left: 50px;
}
.timeline .timeline-img {
left: 50px;
}
.timeline .timeline-content {
max-width: 100%;
width: auto;
margin-left: 70px;
}
.timeline .timeline-item:nth-child(even) .timeline-content {
float: none;
}
.timeline .timeline-item:nth-child(odd) .timeline-content::after {
content: '';
position: absolute;
border-style: solid;
width: 0;
height: 0;
top: 30px;
left: -15px;
border-width: 10px 15px 10px 0;
border-color: transparent #f5f5f5 transparent transparent;
}
}

BIN
images/.DS_Store

Binary file not shown.

BIN
images/cncf.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
images/docker.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
images/hashicorp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
images/telecomvalley.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

91
index.html

@ -0,0 +1,91 @@
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Vertical Timeline</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100i,300,400,500,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Allura" rel="stylesheet">
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<div class="container text-center">
<h1>Upcoming technical events in Sophia-Antipolis</h1>
</div>
</header>
<section class="timeline">
<div class="container">
<div class="timeline-item">
<div class="timeline-img"></div>
<div class="timeline-content timeline-card js--fadeInRight">
<div class="timeline-img-header">
<h2>Meetup Docker / RivieraJug</h2>
<img src="./images/docker.png"/>
</div>
<div class="date">18 janvier 2018</div>
<p>Gérez vos environnements Docker en toute simplicité avec Portainer</p>
<a class="bnt-more" href="https://www.meetup.com/fr-FR/Docker-Nice/events/245650434/">More</a>
</div>
</div>
<div class="timeline-item">
<div class="timeline-img"></div>
<div class="timeline-content js--fadeInLeft">
<h2>Meetup Hashicorp</h2>
<img src="./images/hashicorp.png"/>
<div class="date">23 janvier 2018</div>
<p>Introduction à Terraform et Vault.</p>
<a class="bnt-more" href="https://www.meetup.com/fr-FR/Sophia-Antipolis-HashiCorp-User-Group/events/246742297/">More</a>
</div>
</div>
<div class="timeline-item">
<div class="timeline-img"></div>
<div class="timeline-content timeline-card js--fadeInRight">
<div class="timeline-img-header">
<h2>Commission open source</h2>
<img src="./images/telecomvalley.png"/>
</div>
<div class="date">25 janvier 2018</div>
<p>Retour d'expérience sur l'utilisation de Kafka par Sébastien Alegret de GreenCom Network.</p>
<a class="bnt-more" href="http://www.telecom-valley.fr/25-janvier-commission-open-source/">More</a>
</div>
</div>
<div class="timeline-item">
<div class="timeline-img"></div>
<div class="timeline-content js--fadeInLeft">
<h2>Meetup CNCF</h2>
<img src="./images/cncf.png"/>
<div class="date">29 janvier 2018</div>
<p>Monitorer votre système et vos applications avec Prometheus</p>
<a class="bnt-more" href="https://www.meetup.com/fr-FR/CNCF-Cloud-Native-Computing-Sophia-Antipolis/events/246424155/">More</a>
</div>
</div>
<!--
<div class="timeline-item">
<div class="timeline-img"></div>
<div class="timeline-content js--fadeInRight">
<div class="date">A venir</div>
<h2>...</h2>
<blockquote>...</blockquote>
</div>
</div>
// -->
</div>
</section>
<script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='https://cdn.jsdelivr.net/scrollreveal.js/3.3.1/scrollreveal.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>

51
js/index.js

@ -0,0 +1,51 @@
$(function(){
window.sr = ScrollReveal();
if ($(window).width() < 768) {
if ($('.timeline-content').hasClass('js--fadeInLeft')) {
$('.timeline-content').removeClass('js--fadeInLeft').addClass('js--fadeInRight');
}
sr.reveal('.js--fadeInRight', {
origin: 'right',
distance: '300px',
easing: 'ease-in-out',
duration: 800,
});
} else {
sr.reveal('.js--fadeInLeft', {
origin: 'left',
distance: '300px',
easing: 'ease-in-out',
duration: 800,
});
sr.reveal('.js--fadeInRight', {
origin: 'right',
distance: '300px',
easing: 'ease-in-out',
duration: 800,
});
}
sr.reveal('.js--fadeInLeft', {
origin: 'left',
distance: '300px',
easing: 'ease-in-out',
duration: 800,
});
sr.reveal('.js--fadeInRight', {
origin: 'right',
distance: '300px',
easing: 'ease-in-out',
duration: 800,
});
});

12
license.txt

@ -0,0 +1,12 @@
<!--
Copyright (c) 2017 by Sava Lazic (http://codepen.io/savalazic/pen/QKwERN)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->

288
scss/style.scss

@ -0,0 +1,288 @@
$primary: #3F51B5;
$dark-primary: #303F9F;
$light-primary: #C5CAE9;
$text: #FFFFFF;
$primary-text: #212121;
$secondary-text: #757575;
$accent: #FF4081;
section {
padding: 100px 0;
}
html, body {
overflow-x: hidden;
}
body {
font-family: 'Roboto';
font-size: 17px;
font-weight: 400;
background-color: #eee;
}
h1 {
font-size: 200%;
text-transform: uppercase;
letter-spacing: 3px;
font-weight: 400;
}
header {
background: $primary;
color: $text;
padding: 150px 0;
p {
font-family: 'Allura';
color: rgba(255, 255, 255, .2);
margin-bottom: 0;
font-size: 60px;
margin-top: -30px;
}
}
.timeline {
position: relative;
&::before {
content: '';
background: $light-primary;
width: 5px;
height: 95%;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
}
.timeline-item {
width: 100%;
margin-bottom: 70px;
&:nth-child(even) {
.timeline-content {
float: right;
padding: 40px 30px 10px 30px;
.date {
right: auto;
left: 0;
}
&::after {
content: '';
position: absolute;
border-style: solid;
width: 0;
height: 0;
top: 30px;
left: -15px;
border-width: 10px 15px 10px 0;
border-color: transparent #f5f5f5 transparent transparent;
}
}
}
&::after {
content: '';
display: block;
clear: both;
}
}
.timeline-content {
position: relative;
width: 45%;
padding: 10px 30px;
border-radius: 4px;
background: #f5f5f5;
box-shadow: 0 20px 25px -15px rgba(0, 0, 0, .3);
&::after {
content: '';
position: absolute;
border-style: solid;
width: 0;
height: 0;
top: 30px;
right: -15px;
border-width: 10px 0 10px 15px;
border-color: transparent transparent transparent #f5f5f5;
}
}
.timeline-img {
width: 30px;
height: 30px;
background: $primary;
border-radius: 50%;
position: absolute;
left: 50%;
margin-top: 25px;
margin-left: -15px;
}
a {
background: $primary;
color: $text;
padding: 8px 20px;
text-transform: uppercase;
font-size: 14px;
margin-bottom: 20px;
margin-top: 10px;
display: inline-block;
border-radius: 2px;
box-shadow: 0 1px 3px -1px rgba(0, 0, 0, .6);
&:hover, &:active, &:focus {
background: darken($primary, 10%);
color: $text;
text-decoration: none;
}
}
.timeline-card {
padding: 0!important;
p {
padding: 0 20px;
}
a {
margin-left: 20px;
}
}
.timeline-item {
&:nth-child(2) {
.timeline-img-header {
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0, .4)), url('https://hd.unsplash.com/photo-1458530970867-aaa3700e966d') center center no-repeat;
background-size: cover;
}
}
&:nth-child(5) {
.timeline-img-header {
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0, .4)), url('https://hd.unsplash.com/photo-1444093826349-9ce8c622f4f3') center center no-repeat;
background-size: cover;
}
}
&:nth-child(6) {
.timeline-img-header {
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0, .4)), url('https://hd.unsplash.com/photo-1471479917193-f00955256257') center center no-repeat;
background-size: cover;
}
}
&:nth-child(8) {
.timeline-img-header {
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0, .4)), url('https://hd.unsplash.com/photo-1466840787022-48e0ec048c8a') center center no-repeat;
background-size: cover;
}
}
&:nth-child(10) {
.timeline-img-header {
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0, .4)), url('https://hd.unsplash.com/photo-1447639703758-f525f36456bf') center center no-repeat;
background-size: cover;
}
}
&:nth-child(11) {
.timeline-img-header {
background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0, .4)), url('https://hd.unsplash.com/photo-1469429978400-082eec725ad5') center center no-repeat;
background-size: cover;
}
}
}
.timeline-img-header {
height: 200px;
position: relative;
margin-bottom: 20px;
h2 {
color: $text;
position: absolute;
bottom: 5px;
left: 20px;
}
}
blockquote {
margin-top: 30px;
color: $secondary-text;
border-left-color: $primary;
padding: 0 20px;
}
.date {
background: $accent;
display: inline-block;
color: $text;
padding: 10px;
position: absolute;
top: 0;
right: 0;
}
@media screen and (max-width: 768px) {
.timeline {
&::before {
left: 50px;
}
.timeline-img {
left: 50px;
}
.timeline-content {
max-width: 100%;
width: auto;
margin-left: 70px;
}
.timeline-item {
&:nth-child(even) {
.timeline-content {
float: none;
}
}
&:nth-child(odd) {
.timeline-content {
&::after {
content: '';
position: absolute;
border-style: solid;
width: 0;
height: 0;
top: 30px;
left: -15px;
border-width: 10px 15px 10px 0;
border-color: transparent #f5f5f5 transparent transparent;
}
}
}
}
}
}
Loading…
Cancel
Save