Skip to content

Commit 20c6292

Browse files
committed
made enhancement and fixed bugs
1 parent b17536e commit 20c6292

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

frontend/src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ body{
127127
}
128128

129129
.history{
130-
height: 55%;
130+
height: 70%;
131131
width: 100%;
132132
position: absolute;
133133
bottom: 0%;

frontend/src/components/Main.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export default function Main(props) {
6363
]);
6464
};
6565
useEffect(() => {
66-
setTimeout(() => {
66+
setInterval(() => {
6767
setUtils("");
68-
}, 5000);
68+
}, 20000);
6969
}, []);
7070
return (
7171
<>
@@ -111,7 +111,14 @@ export default function Main(props) {
111111
<button onClick={rotateLeft}>left</button>
112112
</div>
113113
) : (
114-
<h1></h1>
114+
<>
115+
<h1 style={{ textAlign: "center" }}>ImageCraft</h1>
116+
<img
117+
style={{ objectFit: "cover", height: "100%", width: "100%" }}
118+
src="https://static-gcp.freepikcompany.com/web-app/media/wepik-2-2000.webp"
119+
alt=""
120+
/>
121+
</>
115122
)}
116123
</div>
117124
<div className="history">

0 commit comments

Comments
 (0)