Skip to content

Commit

Permalink
поправил шрифты для форм и остального
Browse files Browse the repository at this point in the history
  • Loading branch information
semant1cs committed Dec 18, 2023
1 parent 251cedd commit 622c324
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
}

.progressPercent {
font-family: Montserrat, sans-serif;
font-weight: 600;
position: absolute;
left: 50%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,15 @@ const ModalLevelBody: React.FC<IModalLevelProps> = ({level}) => {
for (let i = 0; i < menuItems.length; i++) {
for (let j = 0; j < menuItems[i].length; j++) {
index++
taskBlocks.push(<MenuItem indexType={i} index={index} key={index} indexSelectedItem={levelIndex}
setLevelIndex={setLevelIndex}/>)

taskBlocks.push(
<MenuItem
indexType={i}
index={index}
key={index}
indexSelectedItem={levelIndex}
setLevelIndex={setLevelIndex}
/>
)
}
}
return taskBlocks
Expand Down Expand Up @@ -131,7 +137,6 @@ const ModalLevelBody: React.FC<IModalLevelProps> = ({level}) => {
<div className="question" key={question.id}>
<div className="question-title">{question.question}</div>
<TaskOpenQuestionEditor
text={textOpenQuestion}
setText={setTextOpenQuestion}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import {convertToRaw, EditorState} from "draft-js";
import {EditorState} from "draft-js";
import React, {useState} from "react";
import {Editor} from "react-draft-wysiwyg";
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";

interface ITaskOpenQuestionEditor {
text: string,
setText: (text: string) => void
}

const TaskOpenQuestionEditor: React.FC<ITaskOpenQuestionEditor> = ({text, setText}) => {
const TaskOpenQuestionEditor: React.FC<ITaskOpenQuestionEditor> = ({setText}) => {
const [editorState, setEditorState] = useState(EditorState.createEmpty());
const onEditorStateChange = function (editorState: EditorState) {
setEditorState(editorState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

.level-title {
color: #2B2A29;
font-family: Golos, sans-serif;
font-size: 1.75rem;
font-style: normal;
font-weight: 700;
Expand All @@ -43,7 +42,6 @@
.level-name {
color: #F5F5F5;
text-align: center;
font-family: Golos, sans-serif;
font-size: 1.5rem;
font-style: normal;
font-weight: 700;
Expand All @@ -53,7 +51,6 @@

.level-body {
color: #000;
font-family: Golos, sans-serif;
font-size: 1.125rem;
font-style: normal;
font-weight: 700;
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
background-color: black;
font-family: Golos, serif;
font-family: Montserrat, sans-serif;
font-size: 12px;
font-weight: 400;
line-height: 14px;
Expand All @@ -24,15 +24,13 @@ body {
}

h1 {
font-family: Golos, sans-serif;
font-size: 26px;
font-weight: 700;
line-height: 31px;
letter-spacing: 0.2em;
}

h2 {
font-family: Golos, sans-serif;
font-size: 18px;
font-weight: 600;
line-height: 22px;
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/styles/mapMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
color: #F5F5F5;
text-align: center;
text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
font-family: Golos, sans-serif;
font-size: 1.125rem;
font-style: normal;
font-weight: 700;
Expand Down Expand Up @@ -186,3 +185,7 @@
top: 5%;
}

.editorClassName {
border: 1px solid #F1F1F1;
letter-spacing: 0;
}

0 comments on commit 622c324

Please sign in to comment.