Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding QR to the front page #1367

Open
karak1974 opened this issue Oct 11, 2024 · 2 comments
Open

Adding QR to the front page #1367

karak1974 opened this issue Oct 11, 2024 · 2 comments

Comments

@karak1974
Copy link

This isn't really an issue just saving time for others.
I've setup an instance, but I wanted a QR on the front page so here is what i did.
I copied the server address, in the app generated a QR code and on the server moved it to /var/opt/simplex/www/invite.png.
Then added a few lines to /var/opt/simplex/www/index.html at line 216.

<div class="flex flex-col lg:flex_row gap-50 justify-between w-full mb-[50px]">
  <h2 class="text-[30px] mb-[20px] leading-[28px] text-[#606C71] dark:text-white font-bold max-w-[475px]">
    Invite
  </h2>
  <img src="invite.png" style="height: 200px; width:200px">
</div>
@Korolev3377
Copy link

I think to add some "items-center" for beauty.

It would also be nice to add
<p class="text-grey-black dark:text-white text-base">Server Link: <a href="smp://...">open address</a></p>
under qr so that it would be possible to copy the link.
Or embed link in qr but it's not obvious for users.

@karak1974
Copy link
Author

Sounds good, thanks!
I'm not sure if that would be obvious for users, but good idea.
If I have time I'll try to implement qr generation and add these few lines,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants