Skip to content

Commit

Permalink
Com
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaBestFullCoder committed Oct 9, 2023
1 parent dabd20a commit 9ef1b42
Show file tree
Hide file tree
Showing 26 changed files with 276 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions index.html

This file was deleted.

2 changes: 1 addition & 1 deletion keyboard.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aiogram import types

buttons = [[types.InlineKeyboardButton(text='Open Lotery', web_app=types.WebAppInfo(url='https://github.com/JavaBestFullCoder/TelegramLoteryBot/blob/ddcb74986b8bf2db3e18b31fd90de20d00563091/index.html'))]]
buttons = [[types.InlineKeyboardButton(text='Open Lotery', web_app=types.WebAppInfo(url='https://github.com/c418f853-b820-46a7-b9cc-df72bb98c4b6'))]]

markup = types.InlineKeyboardMarkup(inline_keyboard=buttons)
5 changes: 5 additions & 0 deletions site/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions site/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions site/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions site/.idea/site.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions site/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions site/.idea/watcherTasks.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added site/assets/fonts/Roboto-Black.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-BlackItalic.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-Italic.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-Light.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-LightItalic.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-Medium.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-Thin.ttf
Binary file not shown.
Binary file added site/assets/fonts/Roboto-ThinItalic.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions site/assets/images/AGG.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/assets/images/image.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<section class="page">
<div class="header">
<figure class="top-left-image">
<img src="./assets/images/AGG.svg" alt="Image" class="image">
</figure>
<div class="title-block">
<h1 class="title-first">Lottery Big WIN</h1>
<p class="title-second">1.000.000$</p>
</div>
</div>
<div class="main">
<h1 class="title">Your Number</h1>
<label>
<input type="text" class="input" disabled>
</label>
<div class="generate">Generate</div>
</div>
</section>
</body>
<script src="./scripts/script.js"></script>
</html>
10 changes: 10 additions & 0 deletions site/scripts/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let input = document.querySelector(".input");
let btn = document.querySelector(".generate");

btn.addEventListener("click", () => {
input.value = getRandomInt(1000000) + 1;
});

function getRandomInt(max) {
return Math.floor(Math.random() * max);
}
187 changes: 187 additions & 0 deletions site/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
@charset "UTF-8";
/* Указываем box sizing */
*,
*::before,
*::after {
box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
min-height: 100vh;
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
list-style: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
-webkit-text-decoration-skip: ink;
text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
max-width: 100%;
display: block;
}

/* Указываем понятную периодичность в потоке данных у article*/
article > * + * {
margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
font: inherit;
}

/* Удаляем все анимации и переходы для людей, которые предпочитай их не использовать */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
@font-face {
font-family: "Roboto";
src: url("./assets/fonts/Roboto-Regular.ttf");
}
@font-face {
font-family: "RobotoBlack";
src: url("./assets/fonts/Roboto-Black.ttf");
}
.page {
font-family: "Roboto";
width: 100%;
min-height: 100vh;
height: 100%;
background: url("./assets/images/image.jpg") no-repeat;
background-size: cover;
position: relative;
}
.page .header {
font-family: "RobotoBlack";
display: flex;
gap: 40px;
padding-top: 1rem;
}
.page .header .top-left-image {
margin-left: 1rem;
height: 228px;
width: 228px;
}
.page .header .top-left-image .image {
width: 100%;
height: auto;
-o-object-fit: cover;
object-fit: cover;
}
.page .header .title-block {
font-weight: 700;
}
.page .header .title-block .title-first {
font-weight: 700;
font-size: 48px;
margin-bottom: 20px;
}
.page .header .title-block .title-second {
font-size: 36px;
text-align: center;
}
.page .main {
max-width: 420px;
margin: 0 auto;
margin-top: 20px;
width: 100%;
padding-right: 1rem;
padding-left: 1rem;
padding-bottom: 100px;
}
.page .main .title {
font-family: "RobotoBlack";
font-size: 46px;
text-align: center;
}
.page .main .input {
width: 100%;
background: rgba(168, 167, 167, 0.7);
border: 0;
border-radius: 0%;
outline: none;
height: 70px;
font-size: 46px;
margin-top: 50px;
text-align: center;
color: #000;
}
.page .main .generate {
cursor: pointer;
font-size: 36px;
background: gray;
width: 200px;
text-align: center;
margin: 0 auto;
margin-top: 50px;
}

@media screen and (max-width: 768px) {
.page .header {
flex-direction: column;
gap: 20px;
}
.page .header .top-left-image {
margin: 0 auto;
}
.page .header .title-block {
text-align: center;
max-width: 100%;
width: 100%;
padding-left: 1rem;
padding-right: 1rem;
}
.page .main {
margin-top: 60px;
}
.page .main .input {
margin-top: 20px;
}
.page .main .generate {
margin-top: 20px;
}
}/*# sourceMappingURL=style.css.map */

0 comments on commit 9ef1b42

Please sign in to comment.