mirror of
https://github.com/GuerillaStudio/vanillalist.git
synced 2024-12-21 08:31:55 +00:00
Website: Add a banner for the announcement about the project's state
This commit is contained in:
parent
8b1f547656
commit
73e09e19be
6 changed files with 53 additions and 6 deletions
5
src/_includes/ico-info.svg
Normal file
5
src/_includes/ico-info.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<svg width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 13V15"/>
|
||||
<circle cx="12" cy="9" r="1" fill="currentColor"/>
|
||||
<circle cx="12" cy="12" r="7.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/>
|
||||
</svg>
|
After Width: | Height: | Size: 375 B |
|
@ -20,6 +20,9 @@
|
|||
<body>
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
{# Announcements #}
|
||||
<div class="notif notif--info notif--small txtcenter inline-block mb1">{% include 'ico-info.svg' %}<time datetime="2024-10-09">09/10/2024</time>: An update about the state of the project <a href="https://github.com/GuerillaStudio/vanillalist/discussions/49" target="_blank">have been published</a></div>
|
||||
{# Logo #}
|
||||
<a class="header__homeLink" href="{{ '/' | absoluteUrl(site.baseUrl) }}">
|
||||
<div class="header__picto">{% include 'picto.svg' %}</div>
|
||||
{% if page.fileSlug === '' %}
|
||||
|
@ -32,7 +35,7 @@
|
|||
<h1 class="visually-hidden">{{ title }}</h1>
|
||||
{% endif %}
|
||||
<p class="header__slogan">Because lighter plugins mean lighter sites</p>
|
||||
|
||||
{# Search #}
|
||||
<form class="header__search" action="/search" method="GET" data-search="form">
|
||||
<label class="visually-hidden" for="search_input">Search plugins</label>
|
||||
<input type="search" id="search_input" name="s" placeholder="slider, animation, etc…" data-search="input">
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
// -----------------------------------------------------------
|
||||
// == alignment
|
||||
// -----------------------------------------------------------// block
|
||||
// -----------------------------------------------------------
|
||||
|
||||
// block
|
||||
// --------------------------------------------------------------
|
||||
|
||||
.inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.left {
|
||||
float: left;
|
||||
}
|
||||
|
|
|
@ -7,8 +7,40 @@ $notif-warning: #ffdd57;
|
|||
$notif-error: #ff3860;
|
||||
|
||||
.notif {
|
||||
padding: 1em;
|
||||
border-radius: 4px;
|
||||
padding: .6em 1em;
|
||||
border-radius: .3em;
|
||||
}
|
||||
|
||||
.notif a,
|
||||
.notif a:is(:visited,:hover,:active,:focus) {
|
||||
color: currentcolor;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.notif svg {
|
||||
width: 1.5em;
|
||||
width: 2cap;
|
||||
height: 1.5em;
|
||||
height: 2cap;
|
||||
vertical-align: -.35em;
|
||||
}
|
||||
|
||||
.notif a[href*="//"]::after {
|
||||
font-size: .9em;
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
vertical-align: 6%;
|
||||
content: "↗";
|
||||
content: "↗" / "";
|
||||
}
|
||||
|
||||
.notif--small {
|
||||
font-size: .85em;
|
||||
}
|
||||
|
||||
.notif--info {
|
||||
color: darken($color-info, 20);
|
||||
background-color: lighten($color-info, 42);
|
||||
border: .1rem solid lighten($color-info, 20);
|
||||
}
|
||||
|
||||
.notif--success {
|
||||
|
|
|
@ -43,5 +43,5 @@
|
|||
// --------------------------------------------------------------
|
||||
|
||||
.header__search {
|
||||
margin-top: 6rem;
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
@import "3-components/_pagination";
|
||||
// @import '3-components/_tables';
|
||||
// @import '3-components/_tooltips';
|
||||
// @import '3-components/_notifications';
|
||||
@import "3-components/_notifications";
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// == base */
|
||||
|
@ -86,4 +86,5 @@
|
|||
// @import '8-rwd/_rwd-medium';
|
||||
// @import '8-rwd/_rwd-small';
|
||||
@import "8-rwd/_rwd-xsmall";
|
||||
|
||||
// @import '8-rwd/_rwd';
|
||||
|
|
Loading…
Reference in a new issue