Skip to content

Commit

Permalink
feat: update title
Browse files Browse the repository at this point in the history
  • Loading branch information
ridhoperdana-wartek committed Dec 17, 2024
1 parent ade0685 commit 16c1b4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions src/AnimalFacts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ const AnimalFacts = ({ IsMenuOpen }) => {
className={`w-5/6 max-w-lg p-8 bg-white border-4 flex flex-col items-center mb-4 rounded-xl shadow-lg ${isOver ? 'border-green-300' : 'border-white-200'}`}
>
<div className="mb-4">
<h3 className="font-semibold text-blue-600">Fakta:</h3>
<ul>
{animal.facts.map((fact, index) => (
<li key={index} className="mb-2 text-gray-700">{fact}</li>
Expand Down Expand Up @@ -434,13 +433,19 @@ const AnimalFacts = ({ IsMenuOpen }) => {
backgroundRepeat: 'repeat',
backgroundSize: 'auto',
}} className={`flex flex-col items-center min-h-screen bg-blue-50`}>
<div className='p-8 place-self-start'>
<h2 className="text-2xl font-bold mb-4">Fakta Hewan</h2>
<p className="text-gray-700">
Ayo temukan gambar hewan sesuai faktanya!
</p>
</div>
<ToastContainer />
<CustomDragLayer />

{/* Animal Placeholder */}
<div
id="book-content"
className="flex flex-col items-center w-full mt-8"
className="flex flex-col items-center w-full mb-8"
style={{ paddingBottom: '160px' }} // Adjusted bottom padding for the floating section height
>
{randomizedImageUploader.map((animal) => (
Expand Down
4 changes: 2 additions & 2 deletions src/AnimalStory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const AnimalStory = () => {
backgroundRepeat: 'repeat',
backgroundSize: 'auto',
}} className="p-8">
<h2 className="text-2xl font-bold mb-4">Animal Story</h2>
<h2 className="text-2xl font-bold mb-4">Cerita Hewan</h2>
<p className="text-gray-700">
Here you can add your animal stories. This is a placeholder for the animal story content.
Yuk baca cerita hewan yang terus update setiap hari!
</p>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ const App = () => {
<Link to="/" className={`block py-2 px-4 ${
location.pathname === "/" ? "bg-gray-800 text-white" : "text-gray-400"
}`}>
Animal Facts
Fakta Hewan
</Link>
<Link to="/story" className={`block py-2 px-4 ${
location.pathname === "/story" ? "bg-gray-800 text-white" : "text-gray-400"
}`}>
Animal Story
Cerita Hewan
</Link>
</div>
</div>
Expand Down

0 comments on commit 16c1b4a

Please sign in to comment.