Skip to content

Commit

Permalink
Style/loding page (#68)
Browse files Browse the repository at this point in the history
* [feature] Develop event create page and load mappin page

* [fix] Add react-swipeable to project dependencies

* [fix] Add classnames to project dependencies

* [Style] loding page

* [fix] Updated button styles and layout adjustments

* [Style] loding page

* [fix] Updated button styles and layout adjustments
  • Loading branch information
karnelll authored Nov 24, 2024
1 parent b06a3af commit 491b03f
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 587 deletions.
12 changes: 4 additions & 8 deletions fe/public/svg/loding2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
271 changes: 5 additions & 266 deletions fe/public/svg/loding3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
288 changes: 8 additions & 280 deletions fe/public/svg/loding4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions fe/public/svg/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,21 @@ export default function LinkEditPage() {
</div>

{/* ํ•˜๋‹จ ์ €์žฅ ๋ฒ„ํŠผ */}
<div className="w-full px-[16px] bg-white sticky bottom-0 border-t border-[#f0f0f0]">
<div
className="w-full px-[16px] bg-white fixed bottom-0 left-0 border-t border-[#f0f0f0]"
style={{ zIndex: 50 }}
>
<Button
label="์ €์žฅ"
className="w-fix h-[60px] py-[17px] rounded-lg bg-black text-white disabled:bg-[#e0e0e0]"
className={`w-fixl h-[60px] py-[17px] rounded-lg text-base font-medium text-white ${
isSaveButtonEnabled ? "bg-black" : "bg-[#e0e0e0] cursor-not-allowed"
}`}
onClick={handleSubmit}
disabled={!isSaveButtonEnabled}
/>
</div>

{/* Exit Modal */}
{showExitModal && (
<ExitModal onCancel={handleCancel} onExit={handleExit} />
)}
Expand Down
13 changes: 8 additions & 5 deletions fe/src/app/event-maps/[id]/load-mappin/forms/links/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import React, { useState, useEffect } from "react";
import { useRouter, useParams } from "next/navigation"; // Moved to the correct order
import { useRouter, useParams } from "next/navigation"; // Correct order
import Navigation from "@/app/components/common/Navigation";
import Button from "@/app/components/common/Button";
import LinkField from "./components/LinkField";
Expand Down Expand Up @@ -84,7 +84,7 @@ export default function LinksPage() {
<div className="w-[360px] h-screen bg-white mx-auto flex flex-col">
<Navigation onBack={handleBack} />
{/* Scrollable Content */}
<div className="flex-1 mt-[16px] px-[16px] pt-[72px] w-full overflow-y-auto pb-[80px]">
<div className="flex-1 mt-[16px] px-[16px] pt-[72px] w-full overflow-y-auto pb-[100px]">
<div className="text-[#2c2c2c] text-[22px] font-semibold leading-[30px] font-['Pretendard']">
๋งˆ์Œ์— ์™ ๋“  ๊ณต๊ฐ„์„ ๋ถˆ๋Ÿฌ์™€์š”
</div>
Expand All @@ -109,7 +109,7 @@ export default function LinksPage() {
/>

{/* CheckBox Section */}
<div className="flex items-center mt-[83px] mb-[18px] w-full">
<div className="flex items-center mb-[18px] w-full">
<CheckBox isChecked={isChecked} onChange={handleCheckboxChange} />
<span className="ml-2 text-[#8e8e8e] text-xs font-medium font-['Pretendard'] leading-none">
๋‚ด ๊ณต๊ฐ„ ์ •๋ณด๋ฅผ ๋ชจํ•‘์—์„œ ํ™œ์šฉํ•˜๋Š” ๊ฒƒ์— ๋™์˜ํ•ฉ๋‹ˆ๋‹ค
Expand All @@ -118,8 +118,11 @@ export default function LinksPage() {
</form>
</div>

{/* Sticky Save Button */}
<div className="w-full px-[16px] bg-white sticky bottom-0 border-t border-[#f0f0f0]">
{/* Fixed Save Button */}
<div
className="w-full px-[16px] bg-white fixed bottom-0 left-0 border-t border-[#f0f0f0]"
style={{ zIndex: 50 }}
>
<Button
label="์ €์žฅ"
onClick={handleSubmit}
Expand Down
20 changes: 11 additions & 9 deletions fe/src/app/event-maps/[id]/load-mappin/forms/tooltip/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ToolTipPage() {
<Navigation />

{/* Title Section */}
<div className="w-[328px] mt-16 mb-[48px]">
<div className="w-full px-4 mt-16 mb-[48px]">
<h1 className="text-[#2c2c2c] text-[22px] font-semibold font-['Pretendard'] leading-[30px]">
์ด๋ ‡๊ฒŒ ๊ณต์œ  ๋ฒ„ํŠผ์ด ์•ˆ ๋ณด์ด๋‚˜์š”?
<br />
Expand All @@ -78,7 +78,7 @@ export default function ToolTipPage() {
</div>

{/* Slide Content */}
<div className="w-[328px] h-[406px] mb-[20px]">
<div className="w-full px-4 mb-[20px]">
<div className="bg-[#F8F8F8] rounded-xl border border-[#F0F0F0] p-[20px]">
{slides[currentSlide].step && (
<div className="flex items-center gap-2 mb-2">
Expand Down Expand Up @@ -123,13 +123,15 @@ export default function ToolTipPage() {
</div>

{/* Button Section */}
<Button
label="๋„ค์ด๋ฒ„ ์ง€๋„ ๋ฐ”๋กœ ์—ด๊ธฐ"
onClick={() => {
window.location.href = "https://m.map.naver.com/";
}}
className="w-[328px] h-[60px] text-lg font-medium font-['Pretendard'] rounded-lg flex justify-center items-center"
/>
<div className="w-full px-4">
<Button
label="๋„ค์ด๋ฒ„ ์ง€๋„ ๋ฐ”๋กœ ์—ด๊ธฐ"
onClick={() => {
window.location.href = "https://m.map.naver.com/";
}}
className="w-full h-[60px] text-lg font-medium font-['Pretendard'] rounded-lg flex justify-center items-center"
/>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion fe/src/app/eventcreate-page/components/EventNameInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function EventNameInput({
value,
}: EventNameInputProps) {
const [hasUserEdited, setHasUserEdited] = useState(false);
const [isTyping, setIsTyping] = useState(false); // ํƒ€์ดํ•‘ ์ƒํƒœ ์ถ”๊ฐ€
const [isTyping, setIsTyping] = useState(false);
const showWarning = hasUserEdited && value.trim().length < 1;

useEffect(() => {
Expand Down
69 changes: 53 additions & 16 deletions fe/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,68 @@ function LoadingPage() {
};

return (
<div className="w-full h-screen bg-[#1d1d1d] flex flex-col items-center relative">
{/* ์ค‘์•™ ๋กœ๊ณ  */}
<div className="flex flex-col items-center absolute inset-x-0 top-[152px]">
<div className="flex flex-col items-center min-h-screen bg-black text-white px-[14.17px]">
{/* ์ƒ๋‹จ ์—ฌ๋ฐฑ */}
<div className="mt-[32px]" />

{/* ์œ„ ์„  */}
<div className="w-full h-[0px] border-t-[1px] border-white mb-[16px]" />

{/* ๋กœ๊ณ  */}
<div className="w-full flex">
<Image
src="/images/mopinglogo.svg"
src="/svg/logo.svg"
alt="Moping Logo"
width={150}
height={169}
className="object-cover"
priority
width={170}
height={24}
className="h-auto"
/>
</div>

{/* ์•„๋ž˜ ์„  */}
<div className="w-full h-[0px] border-t-[1px] border-white mt-[16px] mb-[32px]" />

{/* MOPING ํ…์ŠคํŠธ */}
<div className="mt-[27px]">
{/* ์•„์ด์ฝ˜๋“ค */}
<div className="grid grid-cols-2 gap-y-[28.69px] gap-x-[28.69px] mb-auto">
<div className="flex items-center justify-center">
<Image
src="/svg/loding1.svg"
alt="Loading Icon 1"
width={169}
height={169}
className="h-auto"
/>
</div>
<div className="flex items-center justify-center">
<Image
src="/svg/loding2.svg"
alt="Loading Icon 2"
width={169}
height={169}
className="h-auto"
/>
</div>
<div className="flex items-center justify-center">
<Image
src="/svg/loding3.svg"
alt="Loading Icon 3"
width={169}
height={169}
className="h-auto"
/>
</div>
<div className="flex items-center justify-center">
<Image
src="/images/MOPING.svg"
alt="Moping Text"
width={193}
height={27}
className="object-cover"
src="/svg/loding4.svg"
alt="Loading Icon 4"
width={169}
height={169}
className="h-auto"
/>
</div>
</div>

{/* ์‹œ์ž‘ํ•˜๊ธฐ ๋ฒ„ํŠผ */}
{/* ๋ชจํ•‘ ์‹œ์ž‘ํ•˜๊ธฐ ๋ฒ„ํŠผ */}
<div className="fixed bottom-[45px] w-full flex justify-center px-4">
<Button
label="๋ชจํ•‘ ์‹œ์ž‘ํ•˜๊ธฐ"
Expand Down

0 comments on commit 491b03f

Please sign in to comment.