This commit is contained in:
parent
3fae4a6daf
commit
1423c5ee9f
14 changed files with 161 additions and 7 deletions
10
sites/poetry/public/coral-transparent.css
Normal file
10
sites/poetry/public/coral-transparent.css
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#coral {
|
||||
--palette-background-body: transparent;
|
||||
}
|
||||
|
||||
#coral,
|
||||
#coral [class*="App-root"],
|
||||
#coral [class*="StreamContainer-root"] {
|
||||
background: transparent !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
|
@ -8,10 +8,20 @@ const { storyID, storyURL } = Astro.props;
|
|||
const coralRoot = "https://coral.neeldhara.cloud";
|
||||
---
|
||||
|
||||
<section class="container max-w-3xl py-10 md:py-12" aria-label="Comments">
|
||||
<section class="coral-comments container max-w-3xl py-10 md:py-12" aria-label="Comments">
|
||||
<div id="coral_thread" data-story-id={storyID} data-story-url={storyURL}></div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.coral-comments {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.coral-comments :global(iframe) {
|
||||
background: transparent !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script is:inline define:vars={{ coralRoot, storyID, storyURL }}>
|
||||
(function () {
|
||||
var d = document;
|
||||
|
|
@ -25,6 +35,8 @@ const coralRoot = "https://coral.neeldhara.cloud";
|
|||
rootURL: coralRoot,
|
||||
storyID: storyID,
|
||||
storyURL: storyURL,
|
||||
customCSSURL: new URL("/coral-transparent.css", window.location.href).toString(),
|
||||
containerClassName: "coral-transparent-stream",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue