-
Notifications
You must be signed in to change notification settings - Fork 2
chore: migrate from styled components to tailwind #89
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
Draft
kyrers
wants to merge
17
commits into
master
Choose a base branch
from
chore/migrate-from-styled-components-to-tailwind
base: master
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.
+3,025
−1,741
Draft
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8b8fadc
chore: remove styled-components and install tailwind
kyrers ad2c61b
refactor: migrate global styling and theme management to tailwind
kyrers 3152560
chore: remove styled-components module declaration and update reown …
kyrers d2d2579
refactor: layout migration to tailwind
kyrers f922943
chore: remove unused react-modal and related types/react-modal depend…
kyrers f638cb8
style: enhance focus styles and adjust Toastify container padding
kyrers 0bec1a7
fix: specify theme type in ThemeProvider
kyrers bb0901b
refactor: migrate DesktopHeader and related components to tailwind
kyrers 318211a
fix: proper className concatenation + minor tailwind utility name fixes
kyrers dba15bb
fix: update className syntax
kyrers 1846911
refactor: migrate MobileHeader and related components to tailwind
kyrers f3b7df3
refactor: replace Field component with TextField in FormContact
kyrers db24782
fix: scale NavBar properly using tailwind
kyrers 06a80c0
fix: proper custom breakpoint definition
kyrers fddfec9
style: remove unnecessary breakpoint global CSS - defined in the @kle…
kyrers beaca69
refactor: replace custom breakpoint with lg
kyrers a19329a
refactor: remove unnecessary classes
kyrers 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,11 +1,5 @@ | ||
| import styled from "styled-components"; | ||
| import React from "react"; | ||
|
|
||
| export const Overlay = styled.div` | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| background-color: ${({ theme }) => theme.blackLowOpacity}; | ||
| z-index: 30; | ||
| `; | ||
| export const Overlay: React.FC<{ children?: React.ReactNode }> = ({ children }) => ( | ||
| <div className="fixed top-0 left-0 w-screen h-screen bg-black-low-opacity z-30">{children}</div> | ||
| ); |
This file contains hidden or 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,18 +1,11 @@ | ||
| import React from "react"; | ||
| import ReactDOM from "react-dom"; | ||
| import styled from "styled-components"; | ||
|
|
||
| const PortalContainer = styled.div` | ||
| position: fixed; | ||
| top: 0; | ||
| left: 0; | ||
| z-index: 9999; | ||
| width: 100%; | ||
| height: 100%; | ||
| `; | ||
|
|
||
| const OverlayPortal: React.FC<{ children: React.ReactNode }> = ({ children }) => { | ||
| return ReactDOM.createPortal(<PortalContainer>{children}</PortalContainer>, document.body); | ||
| return ReactDOM.createPortal( | ||
| <div className="fixed top-0 left-0 z-9999 w-full h-full">{children}</div>, | ||
| document.body | ||
| ); | ||
| }; | ||
|
|
||
| export default OverlayPortal; | ||
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.
Uh oh!
There was an error while loading. Please reload this page.