From c0414ab732c99113893e3cf8669b3b3c67f48c69 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Mon, 1 Jan 2024 22:07:49 +0900 Subject: [PATCH] (ui) examples --- README.md | 11 +++--- frontend/src/components/Compare.astro | 47 +++++++++++++++++++++++ frontend/src/components/Hero.astro | 9 +++++ frontend/src/components/Nav.astro | 4 +- frontend/src/components/RadarChart.astro | 4 +- frontend/src/components/SelfHosting.astro | 4 +- frontend/src/pages/index.astro | 2 + 7 files changed, 70 insertions(+), 11 deletions(-) create mode 100644 frontend/src/components/Compare.astro diff --git a/README.md b/README.md index 310bcde..95dd021 100644 --- a/README.md +++ b/README.md @@ -210,17 +210,17 @@ https://instachart.coveritup.app/radar?title=Radar+Chart&data={ | `values` | ◯ | Array (int) | ```sh -https://instachart.coveritup.app/funnel?title=Radar+Chart&data={ - "names": ["Mon","Tue", "Wed", "Sat"], - "values": [2,1,4,6] +https://instachart.coveritup.app/funnel?title=Radar+Chart&width=500&data={ + "names": ["Mon","Tue", "Thu", "Fri", "Sat", "Sun"], + "values": [100,80,60,40,20,10] } ```

- - funnel chart + + funnel chart

@@ -260,3 +260,4 @@ curl -sLk https://raw.githubusercontent.com/kevincobain2000/instachart/master/in - **v1.0.2** - `funnel` charts and `table` as image. - **v1.0.3** - Fixes a few padding issues. - **v1.0.4** - Adds `/` for frontend. And Installation instructions for self-hosting. +- **v1.0.5** - Frontend page with examples. diff --git a/frontend/src/components/Compare.astro b/frontend/src/components/Compare.astro new file mode 100644 index 0000000..1943475 --- /dev/null +++ b/frontend/src/components/Compare.astro @@ -0,0 +1,47 @@ +--- + +--- + + +
+ +
+

+ Compare with + + other services - free plans + +

+ +
+
+ Image-Charts: Quota 60 charts per minute +
+ InstaChart: Free +

+ QuickChart: Rate limits enforced +
+ InstaChart: Free +
+
+
+ + +
+ +
+
+ diff --git a/frontend/src/components/Hero.astro b/frontend/src/components/Hero.astro index ba7e34e..3c85c75 100644 --- a/frontend/src/components/Hero.astro +++ b/frontend/src/components/Hero.astro @@ -44,6 +44,15 @@ impactful visuals!

+
+ + Read docs + +
diff --git a/frontend/src/components/Nav.astro b/frontend/src/components/Nav.astro index e7591c0..165e393 100644 --- a/frontend/src/components/Nav.astro +++ b/frontend/src/components/Nav.astro @@ -6,8 +6,8 @@ import medium from '@assets/medium.svg?raw'
- - + + InstaChart diff --git a/frontend/src/components/RadarChart.astro b/frontend/src/components/RadarChart.astro index dcee81d..495fdba 100644 --- a/frontend/src/components/RadarChart.astro +++ b/frontend/src/components/RadarChart.astro @@ -49,8 +49,8 @@ https://instachart.coveritup.app/radar?title=Radar
diff --git a/frontend/src/components/SelfHosting.astro b/frontend/src/components/SelfHosting.astro index c84100d..056c5a1 100644 --- a/frontend/src/components/SelfHosting.astro +++ b/frontend/src/components/SelfHosting.astro @@ -12,11 +12,11 @@ import octocat from "@assets/octocat.svg?raw";

- Free cloud + Free! - And + With Self Hosted Options.

diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro index 38dfc14..b27d59d 100644 --- a/frontend/src/pages/index.astro +++ b/frontend/src/pages/index.astro @@ -7,6 +7,7 @@ import Hero from "@components/Hero.astro"; import BarChart from "@components/BarChart.astro"; import RadarChart from "@components/RadarChart.astro"; import SelfHosting from "@components/SelfHosting.astro"; +import Compare from "@components/Compare.astro"; import PieChart from "@components/PieChart.astro"; import Footer from "@components/Footer.astro"; --- @@ -25,6 +26,7 @@ import Footer from "@components/Footer.astro"; +