Skip to content

Commit

Permalink
style:게시판 ui 자잘한 부분 수정
Browse files Browse the repository at this point in the history
- 갤러리 최대 폭 설정
- 글쓰기 버튼 위치 조정
- 아이콘 미세 조정

#109
  • Loading branch information
amaran-th committed Mar 20, 2022
1 parent 2d00e51 commit 4d0ccec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/page/Board/BoardMain.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const Board = () => {
return (
<>
<AuthUser>
<div className="w-full flex justify-center">
<div className="flex justify-center min-h-screen dark:bg-mainBlack max-w-[70rem]">
<div className="w-full flex justify-center dark:bg-mainBlack">
<div className="flex justify-center min-h-screen max-w-[70rem]">
<div className="inline-block m-5 w-[90vw]">
<Info />
<Boards categoryId={categoryId} />
Expand Down
4 changes: 2 additions & 2 deletions src/page/Board/BoardView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ const BoardView = (props) => {
</div>
) : (
<AuthUser>
<div className="w-full flex justify-center">
<div className="w-full flex justify-center dark:bg-mainBlack">
<div className="max-w-[70vw]">
<ScrollToTop />
<div className="flex justify-center dark:bg-mainBlack">
<div className="flex justify-center">
<div className="inline-block m-5 w-[90vw]">
<Info />
{board?.id && prevBoard.id !== board.id ? (
Expand Down
4 changes: 2 additions & 2 deletions src/page/Board/BoardWrite.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const BoardWrite = () => {
const redirectData = useLocation();
return (
<AuthUser>
<div className="w-full flex justify-center">
<div className="flex justify-center max-w-[70rem] dark:bg-mainBlack">
<div className="w-full flex justify-center dark:bg-mainBlack">
<div className="flex justify-center max-w-[70rem]">
<div className="m-5 w-[90vw]">
<Info isWrite={true} />
<div>
Expand Down
8 changes: 4 additions & 4 deletions src/page/Board/Components/Gallary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Gallary = ({ notices, boards, linkHandler, state }) => {
const [thumbnails, setThumbnails] = [];
useEffect(() => {}, []);
return (
<div className=" max-w-2xl mx-auto py-8 px-4 sm:py-8 sm:px-6 lg:max-w-7xl lg:px-8">
<div className=" max-w-[70vw] mx-auto py-8 px-4 sm:py-8 sm:px-6 lg:px-8">
{notices.length != 0 ? (
<div className="block mb-5 bg-gray-100 px-2 rounded-xl dark:bg-gray-800">
<div name="공지사항" className="relative my-3 mt-5 py-2">
Expand Down Expand Up @@ -78,7 +78,7 @@ const Gallary = ({ notices, boards, linkHandler, state }) => {
)}
</div>
{isNewPost(board.registerTime) ? (
<strong className="inline-block absolute top-[-20px] right-[-20px] rounded-full shadow-md shadow-red-500/50 m-1 w-7 h-7 align-middle text-center text-base bg-red-500 border-2 text-mainWhite dark:text-mainBlack">
<strong className="inline-block absolute top-[-20px] right-[-20px] rounded-full shadow-md shadow-red-500/50 m-1 w-7 h-7 align-middle text-center text-base bg-red-500 border-2 text-mainWhite">
N
</strong>
) : (
Expand All @@ -87,7 +87,7 @@ const Gallary = ({ notices, boards, linkHandler, state }) => {

<div className="relative mt-4">
<div className="flex items-center">
<div className="max-w-[75%] inline-block">
<div className="max-w-[70vw] inline-block">
<h3 className="text-sm font-medium truncate bold text-gray-900 dark:text-mainWhite">
{board.title}
</h3>
Expand Down Expand Up @@ -179,7 +179,7 @@ const Gallary = ({ notices, boards, linkHandler, state }) => {
)}
</div>
{isNewPost(board.registerTime) ? (
<strong className="inline-block absolute top-[-20px] right-[-20px] rounded-full shadow-md shadow-red-500/50 m-1 w-7 h-7 align-middle text-center text-base bg-red-500 border-2 text-mainWhite dark:text-mainBlack">
<strong className="inline-block absolute top-[-20px] right-[-20px] rounded-full shadow-md shadow-red-500/50 m-1 w-7 h-7 align-middle text-center text-base bg-red-500 border-2 text-mainWhite ">
N
</strong>
) : (
Expand Down
3 changes: 1 addition & 2 deletions src/page/Board/Components/Info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const Info = ({ isWrite, state }) => {

useEffect(() => {}, [categoryId]);


return (
<div className="flex">
<div className="dark:text-mainWhite w-full mx-3">
Expand All @@ -39,7 +38,7 @@ const Info = ({ isWrite, state }) => {
)}
</div>
</div>
{props.isWrite ? (
{isWrite ? (
''
) : (
<div
Expand Down
8 changes: 4 additions & 4 deletions src/page/Board/Components/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const Table = ({
''
)}
{isNewPost(board.registerTime) ? (
<strong className="inline-block rounded-full w-5 h-5 align-middle text-center text-xs m-1 bg-red-500 shadow-lg border-2 border-red-200 text-mainWhite dark:text-mainBlack">
n
<strong className="inline-block rounded-full w-5 h-5 align-middle text-center text-xs m-1 pb-1 bg-red-500 shadow-lg border-2 border-red-200 text-mainWhite dark:text-mainBlack">
N
</strong>
) : (
''
Expand Down Expand Up @@ -189,8 +189,8 @@ const Table = ({
''
)}
{isNewPost(board.registerTime) ? (
<strong className="inline-block rounded-full w-5 h-5 align-middle text-center text-xs m-1 bg-red-500 shadow-lg border-2 border-red-200 text-mainWhite">
n
<strong className="inline-block rounded-full w-5 h-5 align-middle text-center text-xs m-1 pb-1 bg-red-500 shadow-lg border-2 border-red-200 text-mainWhite">
N
</strong>
) : (
''
Expand Down

0 comments on commit 4d0ccec

Please sign in to comment.