add preview cards
This commit is contained in:
parent
7ac767b100
commit
1c1262fc02
3 changed files with 340 additions and 0 deletions
|
@ -270,3 +270,101 @@ a.list-group-item:hover {
|
|||
.reagir {
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
/* ------------------ PREVIEWS ------------------- */
|
||||
|
||||
.card-preview {
|
||||
width:242px;
|
||||
margin:1em;
|
||||
box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.3), inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.preview-link:hover {
|
||||
text-decoration:none!important;
|
||||
}
|
||||
|
||||
.preview-item {
|
||||
display: flex;
|
||||
height:200px;
|
||||
overflow:hidden;
|
||||
font-size:0.9em;
|
||||
line-height: 1.5em !important;
|
||||
padding:0.2em;
|
||||
text-align:justify;
|
||||
background-color:rgba(0,0,0,0.05);
|
||||
color:rgba(0,0,0,0.4);
|
||||
position: relative;
|
||||
-ms-flex-align: center !important;
|
||||
align-items: center !important;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.preview-content {
|
||||
max-height:200px;
|
||||
}
|
||||
|
||||
.preview-content > p {
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.preview-content > p > img {
|
||||
width:100%;
|
||||
height:auto;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
.preview-item h1, .preview-item h2, .preview-item h3, .preview-item h4, .preview-item h5, .preview-item h6, .preview-item h7 {
|
||||
margin-bottom:0px;
|
||||
max-width:100%;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.preview-item h1 {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.preview-overlay {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
transition: opacity .5s;
|
||||
color: #FFF;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.preview-overlay h1 {
|
||||
max-width:100%;
|
||||
padding-top:0.3em;
|
||||
margin:auto;
|
||||
margin-bottom:0px;
|
||||
text-align:center;
|
||||
display:block;
|
||||
font-size:2em;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.preview-overlay h1,.preview-overlay h2,.preview-overlay h3,.preview-overlay h4,.preview-overlay h5,.preview-overlay h6,.preview-overlay h7,.preview-overlay h8,.preview-overlay h9,.preview-overlay h10 {
|
||||
color:white;
|
||||
text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
.preview-item:hover .preview-overlay {
|
||||
opacity: .9;
|
||||
transition: opacity .5s;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.comment-text {
|
||||
margin-top:0.8em;
|
||||
}
|
||||
|
||||
.card-preview time {
|
||||
margin-bottom:0.4em;
|
||||
display:block;
|
||||
}
|
||||
|
|
BIN
img/wmap.png
Normal file
BIN
img/wmap.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
242
preview.html
Normal file
242
preview.html
Normal file
|
@ -0,0 +1,242 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Kazhnuz Space</title>
|
||||
|
||||
<!-- meta -->
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- mon icon -->
|
||||
<link rel="shortcut icon" href="img/favicon.png">
|
||||
|
||||
<!-- framework utilisés -->
|
||||
<link href="css/bootstrap.css" rel="stylesheet">
|
||||
<link href="css/fork-awesome.css" rel="stylesheet">
|
||||
<link href="css/clear-typography.css" rel="stylesheet">
|
||||
|
||||
<link href="css/palette.css" rel="stylesheet">
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
|
||||
<a class="navbar-brand" href="#">kazhnuz.space</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="#">Accueil</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Ma philosophie</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Galleries
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="#">Truc 1</a>
|
||||
<a class="dropdown-item" href="#">Truc 2</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#">Voir gallerie entière</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<header class="container">
|
||||
<div class="row">
|
||||
<h1 style="margin:auto;text-align:center;">Previews</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="container">
|
||||
<div class="row">
|
||||
|
||||
<aside class="sidebar col-md-3">
|
||||
|
||||
<section class="card card-info" style="margin-bottom:2em;">
|
||||
<div class="card-header">
|
||||
<i class="fa fa-fw fa-info"></i> #Inktober2017
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p>Toutes les publications contenant le mot-clé « <a href="">Inktober2017</a> »</p>
|
||||
|
||||
<p>Un mot-clé peut servir à désigner soit l'univers dans laquelle la création se déroule, soit l'objectif dans lequel a été fait la publication (tel que le 100 Thème Challenge)</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card card-green" style="margin-bottom:2em;">
|
||||
<div class="card-header">
|
||||
<i class="fa fa-fw fa-feed"></i> Dernières publications
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
#Inktober2017 - Test
|
||||
</a>
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
#Inktober2017 - Test
|
||||
</a>
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
#Inktober2017 - Test
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card card-secondary" style="margin-bottom:2em;">
|
||||
<div class="card-header">
|
||||
<i class="fa fa-fw fa-folder-open"></i> Catégories
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
Cras justo odio
|
||||
<span class="badge badge-primary badge-pill">14</span>
|
||||
</a>
|
||||
<a href="#" class="list-group-item list-group-item-action">Images</a>
|
||||
<a href="#" class="list-group-item list-group-item-action">Canard</a>
|
||||
<a href="#" class="list-group-item list-group-item-action">Test</a>
|
||||
<a href="#" class="list-group-item list-group-item-action">Fak u garon</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card card-orange" style="margin-bottom:2em;">
|
||||
<div class="card-header">
|
||||
<i class="fa fa-fw fa-calendar-o"></i> Archive
|
||||
</div>
|
||||
<div class="list-group list-group-flush">
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
2017
|
||||
<span class="badge badge-primary badge-pill">14</span>
|
||||
</a>
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
2016
|
||||
<span class="badge badge-primary badge-pill">2</span>
|
||||
</a>
|
||||
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
||||
2015
|
||||
<span class="badge badge-primary badge-pill">3</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</aside>
|
||||
|
||||
|
||||
<div class="col-md-9">
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="#"><i class="fa fa-fw fa-home"></i> Accueil</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Catégorie</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="d-flex flex-wrap flex-justify">
|
||||
<div>
|
||||
<article class="card card-preview">
|
||||
<a href="#" class="preview-link">
|
||||
<div class="preview-item">
|
||||
<div class="preview-content"><p><img src="img/wmap.png" alt="Card image cap"></p></div>
|
||||
<div class="preview-overlay"><h1>#Inktober2017 - Day 27. Deep</h1></div>
|
||||
</div>
|
||||
</a>
|
||||
<aside class="card-body">
|
||||
<div class="align-right"><time><small>Le 27/02/2017</small></time></div>
|
||||
<div class="align-left"><i class="fa fa-tags"></i> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> </div>
|
||||
<div class="align-center comment-text"><a href="#">3 commentaires</a></div>
|
||||
</aside>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<article class="card card-preview">
|
||||
<a href="#" class="preview-link">
|
||||
<div class="preview-item">
|
||||
<div class="preview-content"><p><img src="img/wmap.png" alt="Card image cap"></p></div>
|
||||
<div class="preview-overlay"><h1>#Inktober2017 - Day 27. Deep</h1></div>
|
||||
</div>
|
||||
</a>
|
||||
<aside class="card-body">
|
||||
<div class="align-right"><time><small>Le 27/02/2017</small></time></div>
|
||||
<div class="align-left"><i class="fa fa-tags"></i> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> </div>
|
||||
<div class="align-center comment-text"><a href="#">3 commentaires</a></div>
|
||||
</aside>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<article class="card card-preview">
|
||||
<a href="#" class="preview-link">
|
||||
<div class="preview-item">
|
||||
<div class="preview-content"><p>Édeline regardait le gouffre qui se trouvait devant elle. Un trou béant dans le sol. Une crevasse dont le fond n’était pas visible. Des kilomètres de diamètres, et une profondeur inconnue. Une brume emplissait le gigantesque cratère, rendant impossible toute mesure. Seule l’ombre, l’obscurité la plus totale semblait se trouver au bout de la chute. Les bords étaient abrupts et impossibles à escalader, dans un sens comme dans l’autre, et même avec une corde ou un appareil volant, les vents violents qui s’engouffraient feraient se percuter violemment contre les murs quelqu’un qui tenterait une descente.</p>
|
||||
|
||||
<p>Personne ne savait ce qui se trouvait au fond de ce gouffre, derrière toute cette brume.</p></div>
|
||||
<div class="preview-overlay"><h1>#Inktober2017 - Day 27. Deep</h1></div>
|
||||
</div>
|
||||
</a>
|
||||
<aside class="card-body">
|
||||
<div class="align-right"><time><small>Le 27/02/2017</small></time></div>
|
||||
<div class="align-left"><i class="fa fa-tags"></i> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-primary">categorie</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> <a href="" class="badge badge-info">mot-clef</a> </div>
|
||||
<div class="align-center comment-text"><a href="#">3 commentaires</a></div>
|
||||
</aside>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="container">
|
||||
|
||||
<ul class="social">
|
||||
<li class="social-li"><a class="social-link" href="https://twitter.com/kazhnuz" alt="Twitter"><i class="fa fa-fw fa-twitter"></i></a></li>
|
||||
<li class="social-li"><a class="social-link" href="https://octodon.social/users/kazhnuz" alt="Mastodon"><i class="fa fa-fw fa-mastodon"></i></a></li>
|
||||
<li class="social-li"><a class="social-link" href="#" alt="Diaspora"><i class="fa fa-fw fa-diaspora"></i></a></li>
|
||||
<li class="social-li"><a class="social-link" href="#" alt="DeviantART"><i class="fa fa-fw fa-deviantart"></i></a></li>
|
||||
<li class="social-li"><a class="social-link" href="#" alt="Github"><i class="fa fa-fw fa-github"></i></a></li>
|
||||
<li class="social-li"><a class="social-link" href="#" alt="Gitlab"><i class="fa fa-fw fa-gitlab"></i></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<p>Ce theme est diffusé sous licence <strong>Creative Common Attribution - Partage à l'Identique 4.0</strong> - hors mention contraire.</p>
|
||||
<p>Cette licence vous autorise à partager et copier mes travaux, tant que vous me citiez en source, et que vous autorisez la même chose pour les travaux qui en seraient dérivés. N'hésitez pas à partager ! <i style="color:#FF0000" class="fa fa-heart"></i></p>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<p>Theme réalisé avec le quadriciel <a href="https://getbootstrap.com/">Bootstrap4</a> et la banque d'icone <a href="https://forkawesome.github.io/Fork-Awesome/">Fork-Awesome</a>.</p>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<p>Lorem Ipsum.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in a new issue