diff --git a/README.md b/README.md
index 6a31319..90d2b39 100644
--- a/README.md
+++ b/README.md
@@ -43,9 +43,10 @@ Visit the [interactive playground](https://playcode.io/capture_eye_demo) for the
| `nid` | Yes | The unique [Nid](https://docs.numbersprotocol.io/introduction/numbers-protocol/defining-web3-assets/numbers-id-nid) of the asset. `` |
| `layout` | No | Decides which layout to display. Default value is `original`. Additional option includes `curated`. `` |
| `visibility` | No | Visibility behavior. Default value is `hover`, showing Eye on mouse hover. Setting it to option `always` will make the Eye always shown. This attribute is `always` and cannot be customized on mobile devices. `` |
+| `color` | No | The widget color. Default value is #377dde (blue), and for mobile, the default value is #333333 (gray). `` |
| `cz-title` | No | Override the copyright zone title. `` |
-| eng-img | No | Sets the image for the engagement zone banner. Recommended dimensions: `320x120 px`. Supports multiple `eng-img` and `eng-link` pairs for rotating banners. If multiple pairs are provided by using comma to seperate each URL entry, the banner will rotate every 5 seconds. Ensure that the number of `eng-img` matches the number of `eng-link` entries. Use URL encoding to replace commas with `%2C` in the URLs. `` |
-| eng-link | No | Sets the URL for the engagement zone banner link. Each `eng-link` should correspond to an `eng-img` for proper pairing in rotating banners, following the same comma-separated rule. `` |
+| `eng-img` | No | Sets the image for the engagement zone banner. Recommended dimensions: `320x120 px`. Supports multiple `eng-img` and `eng-link` pairs for rotating banners. If multiple pairs are provided by using comma to seperate each URL entry, the banner will rotate every 5 seconds. Ensure that the number of `eng-img` matches the number of `eng-link` entries. Use URL encoding to replace commas with `%2C` in the URLs. `` |
+| `eng-link` | No | Sets the URL for the engagement zone banner link. Each `eng-link` should correspond to an `eng-img` for proper pairing in rotating banners, following the same comma-separated rule. `` |
| `action-button-text` | No | Override the default action button text (`View More`). `` |
| `action-button-link` | No | Override the default action button link to Capture website. `` |
diff --git a/assets/icons/capture-eye-close-gray.svg b/assets/icons/capture-eye-close-gray.svg
deleted file mode 100644
index f8ee84b..0000000
--- a/assets/icons/capture-eye-close-gray.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/assets/icons/capture-eye-close-icon.png b/assets/icons/capture-eye-close-icon.png
deleted file mode 100644
index e86afd2..0000000
Binary files a/assets/icons/capture-eye-close-icon.png and /dev/null differ
diff --git a/assets/icons/capture-eye-gray.svg b/assets/icons/capture-eye-gray.svg
deleted file mode 100644
index c16a328..0000000
--- a/assets/icons/capture-eye-gray.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-
diff --git a/dev/index.html b/dev/index.html
index 2cfd169..ef8a983 100644
--- a/dev/index.html
+++ b/dev/index.html
@@ -60,6 +60,7 @@
\ No newline at end of file
+>
diff --git a/src/capture-eye.ts b/src/capture-eye.ts
index 10882de..def3ecf 100644
--- a/src/capture-eye.ts
+++ b/src/capture-eye.ts
@@ -1,4 +1,4 @@
-import { LitElement, html } from 'lit';
+import { LitElement, HTMLTemplateResult, html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { Constant } from './constant.js';
import { getCaptureEyeStyles } from './capture-eye-styles.js';
@@ -32,6 +32,12 @@ export class CaptureEye extends LitElement {
@property({ type: String })
visibility = Constant.visibility.hover;
+ /**
+ * Set color: default is #377dde, and for mobile, the default is #333333.
+ */
+ @property({ type: String })
+ color = '';
+
/**
* Customizable copyright zone title.
*/
@@ -91,25 +97,28 @@ export class CaptureEye extends LitElement {
}
private buttonTemplate() {
+ if (!this.nid) {
+ return html``;
+ }
+
const mobile = isMobile();
- return this.nid
- ? html`
-