Skip to content

Commit

Permalink
web: improve server info page design (#1166)
Browse files Browse the repository at this point in the history
* web: improve server info page design

* web: fix font errors & some tags

* web: improve contact & invitation page layout and header

* update

* remove unused files/css

* cleanup

* fix link page

* remove unused font links

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
  • Loading branch information
MSarmadQadeer and epoberezkin committed May 26, 2024
1 parent 5ee167a commit 551c6a6
Show file tree
Hide file tree
Showing 14 changed files with 278 additions and 1,203 deletions.
332 changes: 164 additions & 168 deletions apps/smp-server/static/index.html

Large diffs are not rendered by default.

30 changes: 21 additions & 9 deletions apps/smp-server/static/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>SimpleX Chat - Invitation</title>
<meta name="description" content="">
<meta name="Content-Type" content="text/html;charset=utf-8">
<link rel="icon" type="image/png" sizes="96x96" href="/media/favicon.ico">
<link rel="stylesheet" href="/media/swiper-bundle.min.css">
<link href="/media/tailwind.css" rel="stylesheet">
<link rel="stylesheet" href="/media/tailwind.css">
<link rel="stylesheet" href="/media/style.css">
</head>

Expand Down Expand Up @@ -140,8 +139,8 @@
</section>

<section
class="pt-[106px] py-[90px] hidden xl:block bg-white dark:bg-gradient-radial-mobile dark:lg:bg-gradient-radial">
<div class="container m-auto flex items-center justify-between px-5">
class="hidden xl:block h-screen pt-[66px] bg-white dark:bg-gradient-radial-mobile dark:lg:bg-gradient-radial">
<div class="container m-auto h-full flex items-center justify-between px-5">
<div class="flex flex-col items-start justify-center w-full">
<h1 class="text-[38px] leading-[43px] font-bold max-w-[500px] mb-[30px] primary-header-contact">You received a
1-time link to connect on SimpleX Chat</h1>
Expand Down Expand Up @@ -180,6 +179,7 @@ <h1 class="text-[38px] leading-[43px] font-bold max-w-[500px] mb-[30px] primary-
</div>
</div>
</section>

<section
class="block xl:hidden pt-[106px] py-[90px] bg-white dark:bg-gradient-radial-mobile dark:lg:bg-gradient-radial">
<div class="container m-auto px-5">
Expand Down Expand Up @@ -229,7 +229,8 @@ <h1 class="text-[28px] font-bold text-center max-w-[602px] mb-[40px] primary-hea
</div>
</div>
</section>
<section id="join-simplex" class="bg-primary-bg-light dark:bg-primary-bg-dark py-[90px] px-5">

<section class="hidden md:block bg-secondary-bg-light dark:bg-secondary-bg-dark py-[20px]">
<div class="container px-5">
<div class="text-grey-black dark:text-white">
<div class="hidden md:block xl:hidden for-tablet">
Expand Down Expand Up @@ -307,6 +308,7 @@ <h2 class="text-xl font-bold">If you already installed SimpleX Chat for the term
</div>
</div>
</section>

<section id="join-simplex" class="bg-primary-bg-light dark:bg-primary-bg-dark py-[90px] px-5">
<div class="container flex flex-col items-center">
<h2
Expand Down Expand Up @@ -338,7 +340,6 @@ <h2 class="text-xl font-bold">If you already installed SimpleX Chat for the term
class="h-[40px] w-auto" src="/media/apk_icon.png"></a></div>
</div>
</section>
<script>document.querySelectorAll('.d-none-if-js-disabled').forEach(el => el.classList.remove('d-none-if-js-disabled'));</script>
<section class="bg-[#D9E7ED] dark:bg-[#0E2B57] py-[50px]">
<div class="container">
<div class="flex flex-col lg:flex-row justify-between">
Expand Down Expand Up @@ -501,15 +502,26 @@ <h2 class="text-xl font-bold">If you already installed SimpleX Chat for the term
2020-2024 SimpleX | Open-Source Project</a>
</div>
</section>
<script>
const url = window.location.href
const messageElements = document.getElementsByClassName('primary-header-contact')

if (url.includes('/invitation')) {
for (let element of messageElements) {
element.textContent = 'You received a 1-time link to connect on SimpleX Chat'
}
} else {
for (let element of messageElements) {
element.textContent = 'You received an address to connect on SimpleX Chat'
}
}
</script>

<script src="/media/flag-anchor.js"></script>
<script src="/media/qrcode.js"></script>
<script async="" defer="" src="/media/contact.js"></script>
<script>document.querySelectorAll('.d-none-if-js-disabled').forEach(el => el.classList.remove('d-none-if-js-disabled'));</script>
<script src="/media/animation.js"></script>
<script src="/media/swiper-bundle.min.js"></script>
<script src="/media/script.js"></script>

</body>

</html>
Binary file added apps/smp-server/static/media/GilroyBold.woff2
Binary file not shown.
Binary file added apps/smp-server/static/media/GilroyLight.woff2
Binary file not shown.
Binary file added apps/smp-server/static/media/GilroyMedium.woff2
Binary file not shown.
Binary file added apps/smp-server/static/media/GilroyRegular.woff2
Binary file not shown.
Binary file not shown.
130 changes: 0 additions & 130 deletions apps/smp-server/static/media/animation.js

This file was deleted.

Binary file added apps/smp-server/static/media/favicon.ico
Binary file not shown.
9 changes: 0 additions & 9 deletions apps/smp-server/static/media/flag-anchor.js

This file was deleted.

Loading

0 comments on commit 551c6a6

Please sign in to comment.