Skip to content

Commit

Permalink
minor app name update
Browse files Browse the repository at this point in the history
  • Loading branch information
erujs committed Mar 5, 2024
1 parent ed6f044 commit 64dbd38
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Canes Feles</title>
<title>Feles et Canes</title>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "canes-feles",
"name": "feles-et-canes",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
8 changes: 8 additions & 0 deletions src/pages/animal-list/animalList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ const AnimalList = () => {
const service = new AnimalService();
const { animal } = useParams();

useEffect(() => {
document.title = animal === 'dog' ? 'Feles' : 'Canes';

return () => {
document.title = 'Feles et Canes';
};
}, []);

useEffect(() => {
service
.getList(animal)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const HomeView = () => {
<Eru />
<TechStack />
<div className="container text-white">
<h1 className="text-4xl text-center font-bold py-5">Welcome to Canes Feles!</h1>
<h1 className="text-4xl text-center font-bold py-5">Welcome to Feles et Canes!</h1>
<div className='flex flex-col items-center'>
<p className='pb-2'>Discover adorable dogs and cats, each with delightful descriptions.</p>
<p className='pb-2'>Experience blazing speed – no ruff days here! Faster than a cat chasing a laser pointer!</p>
Expand Down

0 comments on commit 64dbd38

Please sign in to comment.