generated from timelessco/next-ts-app-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(theme): ✨ update nextra theme & docs build
- Loading branch information
1 parent
ded81d3
commit 207c409
Showing
23 changed files
with
3,586 additions
and
222 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 |
---|---|---|
|
@@ -54,3 +54,4 @@ yarn.lock | |
# Library files | ||
dist | ||
CHANGELOG.md | ||
.yalc |
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 @@ | ||
import React from "react"; | ||
interface BleedProps { | ||
full: boolean; | ||
} | ||
declare const Bleed: React.FC<BleedProps>; | ||
export default Bleed; |
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,12 @@ | ||
// src/bleed.tsx | ||
import React from "react"; | ||
import cn from "classnames"; | ||
var Bleed = ({ full, children }) => { | ||
return /* @__PURE__ */ React.createElement("div", { | ||
className: cn("bleed relative mt-6 -mx-6 md:-mx-8 2xl:-mx-24", { full }) | ||
}, children); | ||
}; | ||
var bleed_default = Bleed; | ||
export { | ||
bleed_default as default | ||
}; |
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,14 @@ | ||
import React from "react"; | ||
declare const themes: { | ||
default: string; | ||
error: string; | ||
warning: string; | ||
}; | ||
interface CalloutProps { | ||
/** Callout Theme default to 'default' */ | ||
type?: keyof typeof themes; | ||
/** default emoji 💡*/ | ||
emoji: string; | ||
} | ||
declare const Callout: React.FC<CalloutProps>; | ||
export default Callout; |
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,27 @@ | ||
// src/callout.tsx | ||
import React from "react"; | ||
var themes = { | ||
default: "bg-orange-100 text-orange-800 dark:text-orange-300 dark:bg-orange-200 dark:bg-opacity-10", | ||
error: "bg-red-200 text-red-900 dark:text-red-200 dark:bg-red-600 dark:bg-opacity-30", | ||
warning: "bg-yellow-200 text-yellow-900 dark:text-yellow-200 dark:bg-yellow-700 dark:bg-opacity-30" | ||
}; | ||
var Callout = ({ | ||
children, | ||
type = "default", | ||
emoji = "\u{1F4A1}" | ||
}) => { | ||
return /* @__PURE__ */ React.createElement("div", { | ||
className: `${themes[type]} flex rounded-lg callout mt-6` | ||
}, /* @__PURE__ */ React.createElement("div", { | ||
className: "pl-3 pr-2 py-2 select-none text-xl", | ||
style: { | ||
fontFamily: '"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' | ||
} | ||
}, emoji), /* @__PURE__ */ React.createElement("div", { | ||
className: "pr-4 py-2" | ||
}, children)); | ||
}; | ||
var callout_default = Callout; | ||
export { | ||
callout_default as default | ||
}; |
Oops, something went wrong.
207c409
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: