mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix styling
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ export default function App() {
|
|||||||
<Route path='post' element={<Catalog />} />
|
<Route path='post' element={<Catalog />} />
|
||||||
<Route path='settings' element={<Catalog />} />
|
<Route path='settings' element={<Catalog />} />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path='*' element={<NotFound />} />
|
<Route path='*' element={<NotFound setBodyStyle={setBodyStyle} />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
<StyledContainer />
|
<StyledContainer />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,9 +1,21 @@
|
|||||||
import React from 'react';
|
import React, { useEffect } from 'react';
|
||||||
|
import useBoardStore from '../useBoardStore';
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { Container, Header, Logo, Page, Boards, BoardsTitle } from './styles/Home.styled';
|
import { Container, Header, Logo, Page, Boards, BoardsTitle } from './styles/Home.styled';
|
||||||
|
|
||||||
|
|
||||||
const NotFound = () => {
|
const NotFound = ({ setBodyStyle }) => {
|
||||||
|
|
||||||
|
const { setSelectedStyle } = useBoardStore(state => state);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setBodyStyle({
|
||||||
|
background: "#ffe url(/assets/fade.png) top repeat-x",
|
||||||
|
color: "maroon",
|
||||||
|
fontFamily: "Helvetica, Arial, sans-serif"
|
||||||
|
});
|
||||||
|
setSelectedStyle("Yotsuba");
|
||||||
|
}, [setBodyStyle, setSelectedStyle]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ const StyledModal = styled(Modal)`
|
|||||||
outline: medium none;
|
outline: medium none;
|
||||||
width: 298px;
|
width: 298px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
margin-bottom: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
@@ -56,6 +57,7 @@ const StyledModal = styled(Modal)`
|
|||||||
float: left;
|
float: left;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
margin-top: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#captcha-container {
|
#captcha-container {
|
||||||
@@ -269,14 +271,16 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div id="form">
|
<div id="form">
|
||||||
<div>
|
<div>
|
||||||
<input id="name" type="text" placeholder="Name" disabled></input>
|
<input id="name" type="text" placeholder="Name"></input>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<textarea rows="4" placeholder="Comment" wrap="soft" disabled></textarea>
|
<input id="name" type="text" placeholder="Embed link"></input>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>Challenge 1 of 3</span>
|
<textarea rows="4" placeholder="Comment" wrap="soft"></textarea>
|
||||||
<button id="next">Next</button>
|
</div>
|
||||||
|
<div>
|
||||||
|
<button id="next">Post</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user