Skip to content

Commit

Permalink
Render the top game section
Browse files Browse the repository at this point in the history
  • Loading branch information
zourdyzou committed Jul 22, 2022
1 parent e437110 commit 8c23399
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/top-section/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./top";
File renamed without changes.
17 changes: 17 additions & 0 deletions src/components/top-section/legend/legend.module.scss.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// autogenerated by typings-for-css-modules-loader.
// Please do not change this file!
declare namespace LegendModuleScssNamespace {
export interface ILegendModuleScss {
firstAction: string;
flagComboParent: string;
legendParent: string;
secondAction: string;
}
}

declare const LegendModuleScssModule: LegendModuleScssNamespace.ILegendModuleScss & {
/** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */
locals: LegendModuleScssNamespace.ILegendModuleScss;
};

export = LegendModuleScssModule;
File renamed without changes.
15 changes: 15 additions & 0 deletions src/components/top-section/top.module.scss.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// autogenerated by typings-for-css-modules-loader.
// Please do not change this file!
declare namespace TopModuleScssNamespace {
export interface ITopModuleScss {
gameName: string;
headerContainer: string;
}
}

declare const TopModuleScssModule: TopModuleScssNamespace.ITopModuleScss & {
/** WARNING: Only available when `css-loader` is used without `style-loader` or `mini-css-extract-plugin` */
locals: TopModuleScssNamespace.ITopModuleScss;
};

export = TopModuleScssModule;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Legend, LegendProps } from "@components/Top/legend";
import { Legend, LegendProps } from "@components/top-section/legend";
import React, { FunctionComponent, PropsWithChildren } from "react";

import styles from "./top.module.scss";
Expand Down
14 changes: 10 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@ import "@styles/styles.scss";
import "normalize.css/normalize.css";

import { App } from "@components/app";
import { Top } from "@components/top-section";
import React from "react";
import { createRoot } from "react-dom/client";
import Segment from "react-segment-analytics";

// import Segment from "react-segment-analytics";

const container = document.getElementById("root") as HTMLElement;
const root = createRoot(container);

// @ts-ignore
root.render(
<React.StrictMode>
<Segment writeKey={process.env.SEGMENT_WRITE_KEY as string}>
<App />
</Segment>
{/*<Segment writeKey={process.env.SEGMENT_WRITE_KEY as string}>*/}
{/*<App />*/}
<Top feature="Flag for the bomb" firstAction="alt" secondAction="click">
Minesweeper
</Top>
{/*</Segment>*/}
</React.StrictMode>
);

0 comments on commit 8c23399

Please sign in to comment.