Add a top bar on each page to show the beta status.

This commit is contained in:
Juliette Cougnoux 2018-08-08 10:50:24 +02:00
parent 33ab0804c5
commit a473fc86a0
5 changed files with 35 additions and 1 deletions

View File

@ -149,3 +149,27 @@ a.navbar-item.navbar-link {
border: 1px solid map-get($theme-colors, secondary);
}
}
/*
* === BETA BANNER ===
*/
.beta-banner {
background-color: #be0c04;
}
.beta-banner P {
margin-bottom: 0;
padding: 5px 20px 5px 20px;
color: #ffffff;
text-align: center;
font-size: 13px;
}
.beta-banner a {
color: #ffffff;
text-decoration: underline;
}
.beta-banner a:hover {
color: #d6b20e;
}

View File

@ -12,6 +12,7 @@
</head>
<body>
<%= render 'shared/beta_banner' %>
<%= render "shared/navbar" %>
<% if params[:action] == 'home' %>
<%= render 'shared/home_header' %>

View File

@ -0,0 +1,4 @@
<div class="container-fluid beta-banner">
<p><%= t(".beta_info")%> <%= t(".issue_link")%> <%= link_to(("https://github.com/Evolix/chexpire/issues/new"), "https://github.com/Evolix/chexpire/issues/new")%>
</p>
</div>

View File

@ -75,7 +75,9 @@ en:
home_header:
welcome: "Chexpire"
intro: "Never forget to renew a domain name or SSL certificate."
beta_banner:
beta_info: "Chexpire is now in \"beta\" release. Limitation: only major TLD (.com/.net/.org/.fr) are supported for domain name checks."
issue_link: "Please report issues to "
pages:

View File

@ -107,6 +107,9 @@ fr:
home_header:
welcome: "Chexpire"
intro: "vous n'oublierez plus jamais de renouveler un nom de domaine ou un certificat SSL."
beta_banner:
beta_info: "Chexpire est en version \"beta\". Limitation : seul les TLD principaux (.com/.net/.org/.fr) sont supportés pour les vérifications de nom de domaine."
issue_link: "Merci de reporter les bugs et suggestions via "
pages: