mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
add styling to blog
This commit is contained in:
@@ -5,9 +5,61 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=\, initial-scale=1.0">
|
||||
<title>{{ title }}</title>
|
||||
<link rel="stylesheet" href="/css/blog.css">
|
||||
<link href="/css/tailwind.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/css/blogs.css">
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{{ content | safe }}
|
||||
<body class="bg-gray-100">
|
||||
<header>
|
||||
<nav class="container">
|
||||
<a href="/">
|
||||
<img alt="simplex logo" class="logo" src="/img/simplex.svg" />
|
||||
</a>
|
||||
|
||||
<div class="nav__buttons">
|
||||
<div class="github">
|
||||
<a
|
||||
class="github-button"
|
||||
href="https://github.com/simplex-chat/simplex-chat"
|
||||
data-size="large"
|
||||
data-show-count="true"
|
||||
aria-label="Star simplex-chat on GitHub"
|
||||
>Star</a>
|
||||
</div>
|
||||
|
||||
<div class="donate d-none-576">
|
||||
<a href="https://opencollective.com/simplex-chat" target="_blank">
|
||||
<span class="button">Donate</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="container">
|
||||
<div class="bg-white py-12 px-6 sm:px-8 md:px-12 lg:px-16">
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<img alt="simplex logo" class="logo d-none-992" src="/img/simplex.svg" />
|
||||
<p class="copyright">© 2020-22 SimpleX | Open-Source Project <span class="d-none-576">|</span>
|
||||
<a class="d-none-576" href="https://github.com/simplex-chat" target="_blank"><img
|
||||
src="/img/icons/github.svg"></a>
|
||||
<a class="d-none-576" href="https://www.reddit.com/r/SimpleXChat/" target="_blank"><img
|
||||
src="/img/icons/reddit.svg"></a>
|
||||
<a class="d-none-576" href="https://twitter.com/simplexchat" target="_blank"><img
|
||||
src="/img/icons/twitter.svg"></a>
|
||||
<a class="d-none-576" href="https://www.linkedin.com/company/simplex-chat/" target="_blank"><img
|
||||
src="/img/icons/linkedin.svg"></a>
|
||||
<a class="d-none-576" href="mailto:chat@simplex.chat" target="_blank"><img src="/img/icons/email.svg"></a>
|
||||
</p>
|
||||
<div class="github d-none-992">
|
||||
<a class="github-button" href="https://github.com/simplex-chat/protocol" data-size="large"
|
||||
data-show-count="true" aria-label="Star simplex-chat on GitHub">Star</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
+58
-6
@@ -4,13 +4,65 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="/css/tailwind.css" rel="stylesheet" />
|
||||
<link href="/css/blogs.css" rel="stylesheet" />
|
||||
<title>Blogs</title>
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% for blog in collections.blogs %}
|
||||
<h1>{{ blog.title }}</h1>
|
||||
<a href="{{ blog.url }}">{{ blog.data.title }}</a>
|
||||
<br>
|
||||
{% endfor %}
|
||||
<body class="bg-gray-100">
|
||||
<header>
|
||||
<nav class="container">
|
||||
<a href="/">
|
||||
<img alt="simplex logo" class="logo" src="/img/simplex.svg" />
|
||||
</a>
|
||||
|
||||
<div class="nav__buttons">
|
||||
<div class="github">
|
||||
<a
|
||||
class="github-button"
|
||||
href="https://github.com/simplex-chat/simplex-chat"
|
||||
data-size="large"
|
||||
data-show-count="true"
|
||||
aria-label="Star simplex-chat on GitHub"
|
||||
>Star</a>
|
||||
</div>
|
||||
|
||||
<div class="donate d-none-576">
|
||||
<a href="https://opencollective.com/simplex-chat" target="_blank">
|
||||
<span class="button">Donate</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<section class="container">
|
||||
{% for blog in collections.blogs %}
|
||||
<article class="bg-white my-3 py-8 px-6 sm:px-8 md:px-12 lg:px-16 rounded-lg hover:shadow-md ">
|
||||
<h1 class="text-xl font-medium">{{ blog.data.title }}</h1>
|
||||
<p class="text-sm">{{ blog.data.date.toUTCString().split(' ').slice(0, 4).join(' ') }}</p>
|
||||
<a class="inline-block mt-5" href="{{ blog.url }}">{{ blog.data.title }}</a>
|
||||
<br>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</section>
|
||||
<footer>
|
||||
<div class="container">
|
||||
<img alt="simplex logo" class="logo d-none-992" src="/img/simplex.svg" />
|
||||
<p class="copyright">© 2020-22 SimpleX | Open-Source Project <span class="d-none-576">|</span>
|
||||
<a class="d-none-576" href="https://github.com/simplex-chat" target="_blank"><img
|
||||
src="/img/icons/github.svg"></a>
|
||||
<a class="d-none-576" href="https://www.reddit.com/r/SimpleXChat/" target="_blank"><img
|
||||
src="/img/icons/reddit.svg"></a>
|
||||
<a class="d-none-576" href="https://twitter.com/simplexchat" target="_blank"><img
|
||||
src="/img/icons/twitter.svg"></a>
|
||||
<a class="d-none-576" href="https://www.linkedin.com/company/simplex-chat/" target="_blank"><img
|
||||
src="/img/icons/linkedin.svg"></a>
|
||||
<a class="d-none-576" href="mailto:chat@simplex.chat" target="_blank"><img src="/img/icons/email.svg"></a>
|
||||
</p>
|
||||
<div class="github d-none-992">
|
||||
<a class="github-button" href="https://github.com/simplex-chat/protocol" data-size="large"
|
||||
data-show-count="true" aria-label="Star simplex-chat on GitHub">Star</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,208 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
font-family: Raleway, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
color: #062d56;
|
||||
}
|
||||
h2 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
@media (max-width: 576px) {
|
||||
h2 {
|
||||
font-size: 1.9rem;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
p {
|
||||
font-size: 1.1rem;
|
||||
letter-spacing: 0.6px;
|
||||
line-height: 30px;
|
||||
}
|
||||
a {
|
||||
color: tomato;
|
||||
font-size: 1.1rem;
|
||||
letter-spacing: 0.6px;
|
||||
text-decoration: none;
|
||||
}
|
||||
input,
|
||||
button,
|
||||
span.button {
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 0.8rem 1.5rem;
|
||||
font-size: 1rem;
|
||||
letter-spacing: 1px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
input {
|
||||
color: #062d56;
|
||||
font-family: Raleway, Arial, Helvetica, sans-serif;
|
||||
background-color: #f1f1f1;
|
||||
width: 280px;
|
||||
}
|
||||
button,
|
||||
span.button {
|
||||
display: inline-block;
|
||||
background-color: #07b4b9;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:active,
|
||||
button:hover,
|
||||
span.button:active,
|
||||
span.button:hover {
|
||||
filter: saturate(125%);
|
||||
}
|
||||
header {
|
||||
background-color: #fbd561;
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
nav .nav__buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row-reverse;
|
||||
gap: 1rem;
|
||||
}
|
||||
nav .nav__buttons .button {
|
||||
padding: 0.4rem 1.5rem;
|
||||
}
|
||||
nav .logo {
|
||||
padding: 0.6rem 0rem;
|
||||
}
|
||||
button,
|
||||
span.button {
|
||||
display: inline-block;
|
||||
background-color: #07b4b9;
|
||||
color: #fff;
|
||||
font-family: Raleway;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:active,
|
||||
span.button:active {
|
||||
filter: saturate(125%);
|
||||
}
|
||||
.github-button {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 1rem 0rem;
|
||||
background-color: #f8f8f6;
|
||||
}
|
||||
footer > div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
footer > div {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
footer p {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
@media (max-width: 576px) {
|
||||
footer p {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
footer .copyright img {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
footer a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Raleway;
|
||||
src: url(./Raleway-Regular.woff2);
|
||||
font-weight: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Raleway;
|
||||
src: url(./Raleway-Medium.woff2);
|
||||
font-weight: 500;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Raleway;
|
||||
src: url(./Raleway-Bold.woff2);
|
||||
font-weight: bold;
|
||||
}
|
||||
.container {
|
||||
max-width: 1320px;
|
||||
margin: auto;
|
||||
padding: 0rem 2rem;
|
||||
}
|
||||
@media (max-width: 1200px) {
|
||||
.container {
|
||||
max-width: 1140px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
.container {
|
||||
max-width: 960px;
|
||||
}
|
||||
.d-none-992 {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
max-width: 720px;
|
||||
}
|
||||
.d-none-768 {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media (max-width: 576px) {
|
||||
.container {
|
||||
max-width: 100%;
|
||||
padding: 0rem 1rem;
|
||||
}
|
||||
.d-none-576 {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) {
|
||||
.d-none-on-mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@media (max-width: 890px) {
|
||||
.d-none-890 {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
@tailwind base;
|
||||
/* @tailwind base; */
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
Reference in New Issue
Block a user