Skip to content

Commit d0f6252

Browse files
committed
chore: rebrand app to phasetheday
1 parent d5550c4 commit d0f6252

File tree

5 files changed

+18
-27
lines changed

5 files changed

+18
-27
lines changed

β€Žindex.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>todo</title>
7+
<title>PhaseTheDay</title>
88
</head>
99
<body>
1010
<div id="root"></div>

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "todo-frontend",
2+
"name": "phasetheday",
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",

β€Žsrc/pages/LoginPage.jsxβ€Ž

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useState } from 'react';
22
import { useNavigate } from 'react-router-dom';
33
import { useDispatch } from 'react-redux';
44
import { setCredentials } from '../store/authSlice';
5+
import axiosInstance from '../api/axios';
56
import './LoginPage.css';
67

78
export function LoginPage() {
@@ -20,22 +21,12 @@ export function LoginPage() {
2021

2122
try {
2223
// Backend Login API call
23-
const response = await fetch('http://localhost:8080/api/v1/auth/login', {
24-
method: 'POST',
25-
headers: {
26-
'Content-Type': 'application/json'
27-
},
28-
body: JSON.stringify({
29-
email: email,
30-
password: password
31-
})
24+
const response = await axiosInstance.post('/auth/login', {
25+
email: email,
26+
password: password
3227
});
3328

34-
if (!response.ok) {
35-
throw new Error('Login failed.');
36-
}
37-
38-
const data = await response.json();
29+
const data = response.data;
3930

4031
// Store token and user info in Redux
4132
dispatch(setCredentials({
@@ -69,7 +60,7 @@ export function LoginPage() {
6960
<span className="icon-emoji">⏰</span>
7061
</div>
7162
</div>
72-
<h1 className="title">Productivity App</h1>
63+
<h1 className="title">PhaseTheDay</h1>
7364
<p className="subtitle">
7465
Focus with the Pomodoro technique and manage your tasks
7566
</p>

β€Žsrc/pages/SignupPage.jsxβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios from 'axios'
1+
import axiosInstance from '../api/axios';
22
import { useState } from 'react';
33
import { useNavigate } from 'react-router-dom';
44
import { Mail, Lock, User, Timer } from 'lucide-react';
@@ -24,7 +24,7 @@ export function SignupPage() {
2424

2525
try {
2626
// Backend Signup API request
27-
await axios.post('http://localhost:8080/api/v1/auth/signup', {
27+
await axiosInstance.post('/auth/signup', {
2828
email,
2929
nickname,
3030
password
@@ -58,7 +58,7 @@ export function SignupPage() {
5858
<Timer className="icon" />
5959
</div>
6060
</div>
61-
<h1 className="title">Productivity App</h1>
61+
<h1 className="title">PhaseTheDay</h1>
6262
<p className="subtitle">
6363
Get started right now
6464
</p>

β€Žsrc/pages/TodoPage.jsxβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export function TodoPage() {
2222

2323
// 4 Quadrants Definition
2424
const quadrants = [
25-
{ id: 1, name: 'Urgent & Important', color: '#ef4444', emoji: 'πŸ”₯', priority: 'CRITICAL' },
26-
{ id: 2, name: 'Important but Not Urgent', color: '#3b82f6', emoji: '⭐', priority: 'HIGH' },
27-
{ id: 3, name: 'Urgent but Not Important', color: '#f59e0b', emoji: '⚑', priority: 'MEDIUM' },
28-
{ id: 4, name: 'Not Urgent & Not Important', color: '#6b7280', emoji: 'πŸ“', priority: 'LOW' }
25+
{ id: 1, name: 'Urgent & Important', color: '#ef4444', emoji: 'πŸŒ•', priority: 'CRITICAL' },
26+
{ id: 2, name: 'Important but Not Urgent', color: '#3b82f6', emoji: 'πŸŒ”', priority: 'HIGH' },
27+
{ id: 3, name: 'Urgent but Not Important', color: '#f59e0b', emoji: 'πŸŒ“', priority: 'MEDIUM' },
28+
{ id: 4, name: 'Not Urgent & Not Important', color: '#6b7280', emoji: 'πŸŒ’', priority: 'LOW' }
2929
];
3030

3131
// Convert Priority to Quadrant
@@ -111,7 +111,7 @@ export function TodoPage() {
111111
setTitle('');
112112
setSelectedQuadrant(null);
113113
setShowAddModal(false);
114-
alert('Todo added successfully! βœ…');
114+
alert('Todo added successfully! πŸŒ™');
115115
} catch (error) {
116116
console.error('Error adding todo:', error);
117117
alert('Error adding todo.');
@@ -147,7 +147,7 @@ export function TodoPage() {
147147
try {
148148
await axiosInstance.delete(`/todos/${id}`);
149149
setTodos(todos.filter(todo => todo.id !== id));
150-
alert('Todo deleted! πŸ—‘οΈ');
150+
alert('Todo deleted! πŸŒ‘');
151151
} catch (error) {
152152
console.error('Error deleting todo:', error);
153153
alert('Error deleting todo.');
@@ -294,7 +294,7 @@ export function TodoPage() {
294294
<div className="todo-page">
295295
{/* Header */}
296296
<div className="todo-header">
297-
<h1>πŸ“‹ Todo Management</h1>
297+
<h1>πŸ“‹ PhaseTheDay</h1>
298298
<div className="header-actions">
299299
<button className="add-todo-btn" onClick={() => setShowAddModal(true)}>
300300
βž• Add Todo

0 commit comments

Comments
Β (0)