Skip to content

Commit

Permalink
chore: del folders, files,
Browse files Browse the repository at this point in the history
  • Loading branch information
alex karpovich committed Oct 8, 2024
1 parent e70f064 commit 207b8c5
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 54 deletions.
11 changes: 0 additions & 11 deletions frontend/src/App.js

This file was deleted.

29 changes: 0 additions & 29 deletions frontend/src/App.scss

This file was deleted.

8 changes: 0 additions & 8 deletions frontend/src/App.test.js

This file was deleted.

Empty file.
41 changes: 38 additions & 3 deletions frontend/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,41 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Unbounded:wght@200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

// app file start ========
.App {
text-align: center;
&-logo {
height: 40vmin;
pointer-events: none;
}
&-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
&-link {
color: #61dafb;
}
}
//TODO: ругается здесь
//media (prefers-reduced-motion: no-preference) {
// animation: App-logo-spin infinite 20s linear;
//}
//keyframes App-logo-spin {
// transform: rotate(0deg);
//}
//to {
// transform: rotate(360deg);
//}
// app file end ========



html {
height: 100%;
}
Expand Down Expand Up @@ -105,7 +140,7 @@ header .exit-btn {
}

header #rectangle {
padding: 0px 12px;
padding: 0 12px;
margin: 22px 120px;
width: 534px;
height: 106px;
Expand Down Expand Up @@ -385,7 +420,7 @@ header #rectangle {
background: #F46386;
border-radius: 6px;
color: #fff;
font-family: "Roboto" sans-serif;
font-family: "Roboto", sans-serif;
font-weight: 700;
font-size: 13px;
transition: color 0.3s linear;
Expand All @@ -406,7 +441,7 @@ header #rectangle {
background-color: #fff;
border: 2px solid #F46386;
border-radius: 6px;
font-family: "Roboto" sans-serif;
font-family: "Roboto", sans-serif;
font-weight: 700;
font-size: 13px;
transition: color 0.3s linear;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/CalendarRoute.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useContext, useEffect, useState} from "react";
import { getNetologyCourse, bulkEvents } from "../services/api/login";
import { getNetologyCourse, bulkEvents } from "../services/api";
import {AuthContext} from "../context/AuthContext"; // Импортируем API функции

const CalendarRoute = () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/LoginRoute.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useContext, useState} from "react";
import { useNavigate } from "react-router-dom";
import {AuthContext} from "../context/AuthContext";
import {loginModeus, searchModeus} from "../services/api/login";
import {loginModeus, searchModeus} from "../services/api";

const LoginRoute = () => {
const { setAuthData } = useContext(AuthContext); // Достаем setAuthData из контекста
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import { BACKEND_URL } from '../../variables';
import { BACKEND_URL } from '../variables';


export function getTokenFromLocalStorage() {
Expand Down

0 comments on commit 207b8c5

Please sign in to comment.