Skip to content

Commit

Permalink
adapt
Browse files Browse the repository at this point in the history
1 h
  • Loading branch information
beliberda committed May 29, 2022
1 parent 50ebc46 commit d76901a
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 306 deletions.
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import PageLand from "./pages/page_land";
import PageUpload from "./pages/page_upload";



function App() {
return (

<BrowserRouter>
<Routes>
<Route path="/" element={<PageUpload />} />
<Route path="/land" element={<PageLand />} />
{/* <Route path="/reg" element={<PageReg />} />
<Route path="/land" element={<PageLand />} /> */}
</Routes>
Expand Down
1 change: 1 addition & 0 deletions src/components/Community/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
justify-content: space-between;
padding-right: 78px;
margin-top: 88px;
gap: 40px;
}

.community-left {
Expand Down
6 changes: 6 additions & 0 deletions src/components/CoubBackground/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ z-index: 4;
left: 771.44px;
top: 512.38px;
}

@media (max-width: 1024px) {
.background {
min-height: 540%;
}
}
1 change: 1 addition & 0 deletions src/components/Footer/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
padding-bottom: 56px;
display: flex;
justify-content: space-between;
gap: 20px;
}
.footer p {
font-weight: 400;
Expand Down
2 changes: 2 additions & 0 deletions src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function Header() {
<img src={DeCast_logo} alt="" className="footer-logo" />
<p>DeCast</p>
</a>
{/* <label for="menu-checkbox" class="toggle-button" data-open="Menu" data-close="Close" onclick></label> */}
<nav className='nav'>
<div className='nav__item'>Menu1</div>
<div className='nav__item'>Menu1</div>
Expand All @@ -23,6 +24,7 @@ function Header() {
{/* <img className='authorize__mask white-fox' src={white_fox} alt='' /> */}
<p className='authorize__text'>Authorize</p>
</button>

</nav>
</div>
);
Expand Down
40 changes: 37 additions & 3 deletions src/components/Header/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
.header {
border-bottom: 1px solid white;

margin: 0;
padding: 20px 0px;

display: flex;
justify-content: space-between;
gap: 20px;
}
.header__logo-block {
font-weight: 700;
Expand All @@ -19,7 +18,6 @@
.nav {
display: flex;
gap: 24px;

align-items: center;
}

Expand Down Expand Up @@ -57,3 +55,39 @@
line-height: 20px;
background: none;
}

#menu-checkbox {
/* чекбокс скрыт */
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
}

.toggle-button {
text-align: center;
display: block;
/* не забываем явно указать каким должен быть курсор */
cursor: pointer;
background-color: #333;
color: #fff;
}
.toggle-button:after {
/* получаем данные из атрибута data-open в html */
content: attr(data-open);
display: block;
margin: 10px 0;
padding: 10px 30px;
}
#menu-checkbox:checked + nav[role="navigation"] .main-menu {
/* когда чекбокс активен меню становится видимым */
position: static;
}
#menu-checkbox:checked + nav[role="navigation"] .toggle-button:after {
content: attr(data-close);
}
@media screen and (min-width: 640px) {
.toggle-button {
/* label скрыт */
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
}
}
93 changes: 0 additions & 93 deletions src/components/Main-land-82/index.jsx

This file was deleted.

152 changes: 0 additions & 152 deletions src/components/Main-land-82/style.css

This file was deleted.

6 changes: 5 additions & 1 deletion src/components/Main-land/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ a,a:visited {
/* background: #3a86ff; */
color: #ffffff;
}

@media (max-width:768px) {
.content {
padding: 0 5%;
}
}
Loading

0 comments on commit d76901a

Please sign in to comment.