-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: custom styling and content (#217)
Co-authored-by: Vladislav Zimnikov <[email protected]> Co-authored-by: juliusmarminge <[email protected]>
- Loading branch information
1 parent
d6c57fc
commit 0a92cf3
Showing
28 changed files
with
1,680 additions
and
371 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@uploadthing/react": minor | ||
--- | ||
|
||
feat(react): content and styling customisation |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,75 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
/* applied to container */ | ||
.custom-class { | ||
background-color: none; | ||
} | ||
|
||
/* applied to button */ | ||
.custom-class > *[data-ut-element="button"] { | ||
font-size: 1.6rem; | ||
color: rgb(0 0 0 / 1); | ||
background-color: rgb(239 68 68 / 1); | ||
} | ||
|
||
/* applied to button when uploading */ | ||
.custom-class > *[data-ut-element="button"][data-state="readying"] { | ||
background-color: rgb(239 68 68 / 0.5); | ||
color: rgb(0 0 0 / 0.5); | ||
cursor: not-allowed; | ||
} | ||
|
||
/* applied to button when uploading */ | ||
.custom-class > *[data-ut-element="button"][data-state="uploading"] { | ||
background-color: rgb(239 68 68 / 0.5); | ||
color: rgb(0 0 0 / 0.5); | ||
cursor: not-allowed; | ||
} | ||
|
||
/* applied to upload indicator when uploading */ | ||
.custom-class > *[data-ut-element="button"][data-state="uploading"]::after { | ||
background-color: rgb(234 88 12 / 1); | ||
} | ||
|
||
/* applied to container */ | ||
.custom-container { | ||
background-color: none; | ||
margin-top: 1rem; | ||
} | ||
|
||
/* applied to container when readying */ | ||
.custom-container[data-state="readying"] { | ||
background-color: none; | ||
} | ||
|
||
/* applied to button */ | ||
.custom-button { | ||
font-size: 1.6rem; | ||
color: rgb(0 0 0 / 1); | ||
background-color: rgb(239 68 68 / 1); | ||
} | ||
|
||
/* applied to button when uploading */ | ||
.custom-button-uploading { | ||
background-color: rgb(239 68 68 / 0.5); | ||
color: rgb(0 0 0 / 0.5); | ||
cursor: not-allowed; | ||
} | ||
|
||
.custom-button-uploading::after { | ||
background-color: rgb(234 88 12 / 1) !important; | ||
} | ||
|
||
/* applied to button when ready */ | ||
.custom-button-ready { | ||
color: #ecfdf5; | ||
} | ||
|
||
/* applied to button when not ready */ | ||
.custom-button-not-ready { | ||
background-color: rgb(239 68 68 / 0.5); | ||
color: rgb(0 0 0 / 0.5); | ||
cursor: not-allowed; | ||
} |
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,5 @@ | ||
import "../globals.css"; | ||
|
||
export default function App({ Component, pageProps }) { | ||
return <Component {...pageProps} />; | ||
} |
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
Oops, something went wrong.
0a92cf3
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.
Successfully deployed to the following URLs:
docs-uploadthing – ./
uploadthing-1m3c.vercel.app
docs-uploadthing-pinglabs.vercel.app
docs-uploadthing-git-main-pinglabs.vercel.app
docs.uploadthing.com