diff --git a/frontend/src/assets/index.css b/frontend/src/assets/index.css index 1efc7ce2a1..cf0be7ff6f 100644 --- a/frontend/src/assets/index.css +++ b/frontend/src/assets/index.css @@ -13,3 +13,10 @@ .site-layout .site-layout-background { background: #fff; } */ +.instrument-card{ + border-radius: 4px; + background: #313131; + padding: 33px 23px; + max-width: 800px; + margin-top: 40px; +} \ No newline at end of file diff --git a/frontend/src/components/App.tsx b/frontend/src/components/App.tsx index 078fda147c..3a7bb88bfb 100644 --- a/frontend/src/components/App.tsx +++ b/frontend/src/components/App.tsx @@ -15,6 +15,7 @@ import { AlignLeftOutlined, AppstoreOutlined, SettingOutlined, + ApiOutlined } from "@ant-design/icons"; import DateTimeSelector from "Src/components/DateTimeSelector"; @@ -45,6 +46,10 @@ const Signup = React.lazy(() => import("Src/components/Signup")); const SettingsPage = React.lazy( () => import("Src/components/settings/settingsPage"), ); + +const IntstrumentationPage = React.lazy( + () => import("Src/components/add-instrumentation/instrumentationPage"), +); //PNOTE //React. lazy currently only supports default exports. If the module you want to import uses named exports, you can create an intermediate module that reexports it as the default. This ensures that tree shaking keeps working and that you don't pull in unused components. @@ -133,6 +138,11 @@ const App = () => { Settings + }> + + Add instrumentation + + @@ -156,6 +166,7 @@ const App = () => { + diff --git a/frontend/src/components/AppWrapper.tsx b/frontend/src/components/AppWrapper.tsx index 82964e72cf..221da52c5a 100644 --- a/frontend/src/components/AppWrapper.tsx +++ b/frontend/src/components/AppWrapper.tsx @@ -5,7 +5,6 @@ import Signup from "./Signup"; const App = React.lazy(() => import("Src/components/App")); const AppWrapper = () => { - console.log("other"); return ( }> @@ -16,6 +15,7 @@ const AppWrapper = () => { + { + + + return ( + + + + +
+

+ Instrument your application +

+
+ +
+ Congrats, you have successfully installed SigNoz!
+ To start seeing YOUR application data here, follow the instructions in the docs - + https://signoz.io/docs/instrumentation/overview +
+ If you face any issues, join our + slack community to ask any questions or mail us at + support@signoz.io + +
+
+
+ ); +}; + +const mapStateToProps = (state: StoreState): {} => { + return {}; +}; + +export default connect(mapStateToProps, {})(InstrumentationPage);