-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fc39f9
commit 5d4a0ad
Showing
25 changed files
with
294 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Telesim Mini App [@telesimbot](http://t.me/telesimbot). | ||
|
||
Built with Svelte and Telebot, deployed at Vercel with serverless functions. | ||
|
||
## Usage | ||
|
||
|
||
1. Put `TOKEN` and `DEV_WEBHOOK_URL` in your `.env.local` file | ||
2. Run | ||
``` | ||
pip -r requirements.txt | ||
npm install | ||
vercel dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script> | ||
import faqIcon from "../../assets/icon/faq.svg"; | ||
import devicesIcon from "../../assets/icon/devices.svg"; | ||
import supportIcon from "../../assets/icon/support.svg"; | ||
import InfoButton from "./InfoButton.svelte"; | ||
</script> | ||
|
||
<div class="info"> | ||
<InfoButton link="faq" icon={faqIcon} text="FAQ" /> | ||
<InfoButton link="devices" icon={devicesIcon} text="eSIM Devices" /> | ||
<InfoButton link="support" icon={supportIcon} text="Support" /> | ||
</div> | ||
|
||
<style> | ||
.info { | ||
display: flex; | ||
margin-top: 2em; | ||
flex-wrap: wrap; | ||
color: var(--tg-theme-button-text-color); | ||
gap: 9px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script> | ||
export let link; | ||
export let icon; | ||
export let text; | ||
// TODO: Button action | ||
</script> | ||
|
||
<button class="button" {link}> | ||
<img src={icon} class="icon" alt="" /> | ||
<div>{text}</div> | ||
</button> | ||
|
||
<style> | ||
.button { | ||
display: inline-flex; | ||
height: 36px; | ||
padding: 0px 24px 0px 12px; | ||
align-items: center; | ||
flex-shrink: 0; | ||
font-weight: 590; | ||
line-height: 100%; | ||
vertical-align: middle; | ||
background: var(--tg-theme-button-color); | ||
border-radius: 12px; | ||
gap: 6px; | ||
} | ||
.icon { | ||
width: 24px; | ||
height: 24px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
<script></script> | ||
<script> | ||
import telesimLogo from "../assets/telesim-logo.png"; | ||
</script> | ||
|
||
<main>Logo</main> | ||
<div class="logo"> | ||
<img src={telesimLogo} alt="" /> | ||
<span class="title">Telesim</span> | ||
<span class="subheadline">Your SIM-card across the world</span> | ||
</div> | ||
|
||
<style></style> | ||
<style> | ||
.logo { | ||
display: flex; | ||
height: 162px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
</style> |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script> | ||
import PlanRegions from "./Regions/Regions.svelte"; | ||
import PlanLimits from "./Limits.svelte"; | ||
</script> | ||
|
||
<div class="plans"> | ||
<PlanRegions /> | ||
<PlanLimits /> | ||
</div> | ||
|
||
<style> | ||
.plans { | ||
margin-top: 2em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<script> | ||
export let double = false; | ||
export let selector = false; | ||
</script> | ||
|
||
<div> | ||
{#if !selector} | ||
{#if double} | ||
<div class="region region-double"> | ||
<div class="body-semibold"><slot /></div> | ||
</div> | ||
{:else} | ||
<div class="region"> | ||
<div class="body-semibold"><slot /></div> | ||
</div> | ||
{/if} | ||
{:else} | ||
<div class="region region-selector"> | ||
<div class="body-semibold"><slot /></div> | ||
</div> | ||
{/if} | ||
</div> | ||
|
||
<style> | ||
.region { | ||
--W: calc(var(--vw) - 2em); | ||
--g: 9px; | ||
--w: calc((var(--W) - 2 * var(--g)) / 3); | ||
display: flex; | ||
width: var(--w); | ||
height: var(--w); | ||
padding: 8px 12px; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
align-items: flex-start; | ||
flex-shrink: 0; | ||
background: var(--bg-color); | ||
color: #fff; | ||
border-radius: 12px; | ||
} | ||
.region-double { | ||
--u: calc(var(--W) - var(--w) - var(--g)); | ||
width: var(--u); | ||
} | ||
.region-selector { | ||
background: var(--tg-theme-hint-color); | ||
} | ||
</style> |
Oops, something went wrong.