Quick Start
Getting Started with banner for websites
To support Cambodia
Support Cambodia - add the #CambodiaNeedPeace banner to the website your manage. Share an anti-war message with the world and help protect our beautiful land from misjudgment and misinformation.
Usage
Next.js: to load the script, import next/script
and include the script link directly in your layout component.
import Script from 'next/script';
export default function RootLayout() {
return (
<html>
<body>
...
</body>
<Script src="https://cambodianeedpeace.org/script.js" data-position="top" /> {}
</html>
);
}
Others: to load the script, use script
tag with script link directly in your html file.
<html>
<body>
...
</body>
<script src="https://cambodianeedpeace.org/script.js" data-position="top" defer></script>
</html>
Customization
Prop | Type | Default |
---|---|---|
data-position? | top | bottom | top |