diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 61c7fbf..156e1b5 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -14,6 +14,10 @@ const url=`http://localhost:3000/room/?id=${id}`; window.location.href = url; } + + const plcType = ['Лабораторная работа', 'Лаба', 'Практическая работа', 'Практика', 'Лабораторная', 'Доклад']; + const plcSubj = ['физике', 'химии', 'философии']; + const plcName = `${plcType[Math.floor(Math.random()*plcType.length)]} по ${plcSubj[Math.floor(Math.random()*plcSubj.length)]} № ${Math.floor(Math.random()*12)+1}`; @@ -37,7 +41,7 @@
Название работы:
- +
@@ -75,8 +79,8 @@ } .inputWrap > input { - display:table-cell; - width:100%; + display: table-cell; + width: 100%; } .btn { @@ -123,7 +127,7 @@ .inputs { display: flex; - height: 75%; + height: 70%; margin-left: 5%; margin-right: 5%; flex-direction: column; @@ -177,11 +181,11 @@ } input:checked + .slider { - background-color: #f57323; + background-color: #3fc53b; } input:focus + .slider { - box-shadow: 0 0 1px #f57323; + box-shadow: 0 0 1px #3fc53b; } input:checked + .slider:before { diff --git a/src/routes/room.svelte b/src/routes/room.svelte index 7af7818..f45d0ec 100644 --- a/src/routes/room.svelte +++ b/src/routes/room.svelte @@ -142,7 +142,7 @@ padding: 0px; height: 2em; margin-bottom: 10px; - overflow: scroll; + white-space: nowrap; } .name { @@ -158,6 +158,7 @@ padding: 0px; border: none; height: 2em; + width: 100%; } .nameInput:focus {