Skip to content

Commit ae3d249

Browse files
AkashKumar7902charankamarapuAchanandhi-M
authored
docs: add documentation for ATG webhook(#626)
* docs: add webhook documentation Signed-off-by: Akash Kumar <[email protected]> * chore: add webhook guide link in navbar Signed-off-by: Akash Kumar <[email protected]> --------- Signed-off-by: Akash Kumar <[email protected]> Co-authored-by: Charan Kamarapu <[email protected]> Co-authored-by: Achanandhi M <[email protected]>
1 parent e924f7e commit ae3d249

File tree

3 files changed

+443
-33
lines changed

3 files changed

+443
-33
lines changed

src/components/QuickStartFilter.js

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import React, { useState } from "react";
1+
import React, {useState} from "react";
22
import quickstarts from "./QuickStartList";
33
import Link from "@docusaurus/Link";
4-
import { FaGolang } from "react-icons/fa6";
5-
import { FaJava } from "react-icons/fa";
6-
import { FaLaptopCode } from "react-icons/fa";
7-
import { FaRust } from "react-icons/fa";
8-
import { TbBrandCSharp } from "react-icons/tb";
9-
import { FaPython } from "react-icons/fa";
10-
import { FaDocker } from "react-icons/fa";
11-
import { IoLogoJavascript } from "react-icons/io5";
12-
import { useColorMode } from "@docusaurus/theme-common";
4+
import {FaGolang} from "react-icons/fa6";
5+
import {FaJava} from "react-icons/fa";
6+
import {FaLaptopCode} from "react-icons/fa";
7+
import {FaRust} from "react-icons/fa";
8+
import {TbBrandCSharp} from "react-icons/tb";
9+
import {FaPython} from "react-icons/fa";
10+
import {FaDocker} from "react-icons/fa";
11+
import {IoLogoJavascript} from "react-icons/io5";
12+
import {useColorMode} from "@docusaurus/theme-common";
1313

1414
// 🔹 Wrapper for icons to make them uniform
15-
const IconWrapper = ({ icon, bg }) => (
15+
const IconWrapper = ({icon, bg}) => (
1616
<div
1717
style={{
1818
width: "70px",
@@ -31,8 +31,8 @@ const IconWrapper = ({ icon, bg }) => (
3131
</div>
3232
);
3333

34-
export default function QuickstartFilter({ defaultLanguage = null }) {
35-
const { colorMode } = useColorMode();
34+
export default function QuickstartFilter({defaultLanguage = null}) {
35+
const {colorMode} = useColorMode();
3636
const isDark = colorMode === "dark";
3737

3838
// 👇 initialize with defaultLanguage if provided
@@ -132,9 +132,7 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
132132
};
133133

134134
const buttonCard = {
135-
border: isDark
136-
? "2px solid #333"
137-
: "2px solid #ddd",
135+
border: isDark ? "2px solid #333" : "2px solid #ddd",
138136
borderRadius: "12px",
139137
padding: "1rem 2rem",
140138
cursor: "pointer",
@@ -180,7 +178,7 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
180178

181179
// ----- Render -----
182180
return (
183-
<div style={{ marginTop: "2rem" }}>
181+
<div style={{marginTop: "2rem"}}>
184182
{/* Language Selection */}
185183
<h2 style={headingStyle}>Choose your language</h2>
186184
<div style={stepContainer}>
@@ -196,15 +194,15 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
196194
: buttonCard.border,
197195
boxShadow:
198196
language === lang.name
199-
? (isDark
197+
? isDark
200198
? "0 3px 12px rgba(249,115,22,0.2)"
201-
: "0 3px 8px rgba(249, 115, 22, 0.3)")
199+
: "0 3px 8px rgba(249, 115, 22, 0.3)"
202200
: buttonCard.boxShadow,
203201
}}
204202
>
205203
<IconWrapper
206204
icon={lang.icon}
207-
bg={isDark ? (darkIconBgs[lang.name] || "#222") : lang.bg}
205+
bg={isDark ? darkIconBgs[lang.name] || "#222" : lang.bg}
208206
/>
209207
<p
210208
style={{
@@ -222,7 +220,7 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
222220
</div>
223221

224222
{/* Server Selection */}
225-
<h2 style={{ ...headingStyle, marginTop: "2rem" }}>
223+
<h2 style={{...headingStyle, marginTop: "2rem"}}>
226224
Where do you want to run the app server?
227225
</h2>
228226
<div style={serverContainer}>
@@ -233,20 +231,18 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
233231
style={{
234232
...buttonCard,
235233
border:
236-
server === srv.name
237-
? "2px solid #f97316"
238-
: buttonCard.border,
234+
server === srv.name ? "2px solid #f97316" : buttonCard.border,
239235
boxShadow:
240236
server === srv.name
241-
? (isDark
237+
? isDark
242238
? "0 3px 12px rgba(249,115,22,0.2)"
243-
: "0 3px 8px rgba(249, 115, 22, 0.3)")
239+
: "0 3px 8px rgba(249, 115, 22, 0.3)"
244240
: buttonCard.boxShadow,
245241
}}
246242
>
247243
<IconWrapper
248244
icon={srv.icon}
249-
bg={isDark ? (darkIconBgs[srv.name] || "#222") : srv.bg}
245+
bg={isDark ? darkIconBgs[srv.name] || "#222" : srv.bg}
250246
/>
251247
<p
252248
style={{
@@ -266,17 +262,28 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
266262
{/* Quickstarts */}
267263
{language && server && (
268264
<>
269-
<h2 style={{ ...headingStyle, marginTop: "2rem" }}>
265+
<h2 style={{...headingStyle, marginTop: "2rem"}}>
270266
✨ AI Suggested Sample Apps
271267
</h2>
272268
<div style={gridContainer}>
273269
{filteredQuickstarts.length > 0 ? (
274270
filteredQuickstarts.map((app, idx) => (
275271
<div key={idx} style={cardStyle}>
276-
<h3 style={{ margin: "0 0 0.5rem 0", fontSize: "1.2rem", color: isDark ? "#fff" : "#222" }}>
272+
<h3
273+
style={{
274+
margin: "0 0 0.5rem 0",
275+
fontSize: "1.2rem",
276+
color: isDark ? "#fff" : "#222",
277+
}}
278+
>
277279
{app.title}
278280
</h3>
279-
<p style={{ color: isDark ? "#ccc" : "#555", fontSize: "0.95rem" }}>
281+
<p
282+
style={{
283+
color: isDark ? "#ccc" : "#555",
284+
fontSize: "0.95rem",
285+
}}
286+
>
280287
{app.description}
281288
</p>
282289
<Link to={app.link} style={linkStyle}>
@@ -285,11 +292,13 @@ export default function QuickstartFilter({ defaultLanguage = null }) {
285292
</div>
286293
))
287294
) : (
288-
<p style={{ color: isDark ? "#fff" : "#222" }}>No quickstarts available for this selection.</p>
295+
<p style={{color: isDark ? "#fff" : "#222"}}>
296+
No quickstarts available for this selection.
297+
</p>
289298
)}
290299
</div>
291300
</>
292301
)}
293302
</div>
294303
);
295-
}
304+
}

0 commit comments

Comments
 (0)