-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
project-15-to-dos-zustand-vite #39
Open
erikamolsson
wants to merge
14
commits into
Technigo:main
Choose a base branch
from
erikamolsson:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fbe3f81
update: first commit and a lot done for 1 page and popup
21ad430
trying to fix toggle - not working yet
9f791b0
update readme file, not all done yet
6419749
install typescript in new branch
c2bc713
converting component header and themecontext
5fea104
all files to .tsx
20be406
update main with html element, todoitem and todolist
aee61e8
removed old code
5c74356
netlify with typescript
37e9c10
update - declaration
da595da
conflicts with typescript branch
ec05b92
merge with typescript
06f04bc
update: darkmode is working
f5b6778
update: button click on enter, focus input and saved todos
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
## Netlify link | ||
Add your Netlify link here. | ||
PS. Don't forget to add it in your readme as well. | ||
https://mytodos-erika.netlify.app/ | ||
|
||
## Collaborators | ||
Add any collaborators here. | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
import React from "react"; | ||
import { useTheme } from "./context/ThemeContext"; | ||
import { GlobalStyle } from "./styles/GlobalStyle"; | ||
import Header from "./components/Header"; | ||
import TodoList from "./components/TodoList"; | ||
import AddTodoPopup from "./components/AddTodoPopup"; | ||
import AddTodoButton from "./components/AddTodoButton"; | ||
|
||
|
||
export const App = () => { | ||
return <div>Find me in App.jsx!</div>; | ||
const { isDarkMode } = useTheme(); | ||
const [isPopupOpen, setIsPopupOpen] = React.useState(false); | ||
|
||
|
||
|
||
return ( | ||
<> | ||
<GlobalStyle theme={{ isDarkMode }} /> | ||
<div> | ||
<Header theme={{ isDarkMode }} togglePopup={() => setIsPopupOpen(true)} /> | ||
<TodoList /> | ||
{isPopupOpen && <AddTodoPopup onClose={() => setIsPopupOpen(false)} />} | ||
<AddTodoButton onClick={() => setIsPopupOpen(true)} /> | ||
</div> | ||
</> | ||
) | ||
}; | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import styled from "styled-components"; | ||
|
||
const FloatingButton = styled.button` | ||
position: fixed; | ||
bottom: 20px; | ||
right: 20px; | ||
width: 60px; | ||
height: 60px; | ||
background-color: #6c63ff; /* Lila färg */ | ||
color: #fff; | ||
border: none; | ||
border-radius: 50%; | ||
font-size: 24px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
|
||
&:hover { | ||
background-color: #5a54e3; /* Lite mörkare lila vid hover */ | ||
} | ||
`; | ||
|
||
const AddTodoButton = ({ onClick }) => { | ||
return <FloatingButton onClick={onClick}>+</FloatingButton>; | ||
}; | ||
|
||
export default AddTodoButton; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to import React