Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
o6ez9na committed Nov 29, 2024
1 parent f596fb7 commit e36b548
Show file tree
Hide file tree
Showing 4 changed files with 499 additions and 504 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./App.css";
import MainPage from "./components/main-page/MainPage";
import MainPage from "./components/main-page/LandingPage/MainPage";
import AuthForm from "./components/auth/login/auth";
import { Routes, Route } from "react-router-dom";
import Header from "./components/header/Header";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from "react";
import "./style.css";
import LoginBtn from "./ui/login-btn/LoginBtn";
import RegisterBtn from "./ui/register-btn/RegisterBtn";
import "./main.css";
import LoginBtn from "../ui/login-btn/LoginBtn";
import RegisterBtn from "../ui/register-btn/RegisterBtn";

export default function MainPage() {
const [loaded, setLoaded] = useState(false);
Expand Down Expand Up @@ -29,9 +29,7 @@ export default function MainPage() {
onLoad={handleLoad}
className={loaded ? "loaded" : ""}
/>
<div className="text-overlay">
TAMPROG by BGTUTeam
</div>
<div className="text-overlay">TAMPROG by BGTUTeam</div>
</div>
<h1 className="custom-text">Мы команда инженеров!</h1>
<div className="image-container">
Expand Down
97 changes: 97 additions & 0 deletions frontend/src/components/main-page/LandingPage/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
.header-for-landing {
position: fixed;
display: flex;
align-items: center;
justify-content: space-around;
top: 0;
left: 0;
width: 100%;
height: 100px;
z-index: 1000;
background-color: rgba(40, 37, 40, 0.5);
}

.landing-buttons {
display: flex;
align-items: center;
gap: 10px;
}

.landing-page {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
}

.landing {
width: 300vh;
min-height: 100vh;
background-color: whitesmoke;
}

.image-container {
position: relative;
width: 100%;
height: 100vh;
}

.text-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 24px;
text-align: center;
background-color: rgba(0, 0, 0, 0.5);
padding: 10px;
}

.custom-text {
padding: 0;
margin: 0;
width: 100%;
background-color: cornsilk;
position: relative;
z-index: 10;
text-align: center;
}

.landing img {
width: 100%;
height: auto;
object-fit: cover;
display: block;
margin: 0;
padding: 0;
opacity: 0;
transition: opacity 2s ease-out;
}

.landing img.loaded {
opacity: 1;
}

.landing-register-btn {
transition: 0.3s ease;
cursor: pointer;
}

.landing-register-btn:hover {
transform: scale(1.05);
}

.landing-login-btn a {
font-weight: 500;
align-items: center;
}

.landing-login-btn {
display: flex;
align-items: center;
gap: 5px;
transition: 0.3s ease;
cursor: pointer;
}
Loading

0 comments on commit e36b548

Please sign in to comment.