Skip to content

Commit

Permalink
Merge pull request #40 from Vinyl-Davyl/ui-development-kickoff
Browse files Browse the repository at this point in the history
 feat(UI): major UI improvement on template playground and sync with AccordUI
  • Loading branch information
DianaLease authored Apr 24, 2024
2 parents 23b86a4 + 2324e1f commit d3f420d
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 61 deletions.
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image" href="https://i0.wp.com/accordproject.org/wp-content/uploads/2020/08/cropped-ms-icon-310x310-1.png?fit=512%2C512&ssl=1" />
<link
rel="icon"
type="image"
href="https://i0.wp.com/accordproject.org/wp-content/uploads/2020/08/cropped-ms-icon-310x310-1.png?fit=512%2C512&ssl=1"
/>
<link
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Template Playground</title>
</head>
Expand Down
138 changes: 137 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react-dom": "^18.2.0",
"react-dropdown": "^1.11.0",
"regenerator-runtime": "^0.13.11",
"semantic-ui-react": "^2.1.5",
"ts-debounce": "^4.0.0",
"zustand": "^4.3.9"
},
Expand Down
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 18 additions & 26 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
import { useEffect, useState } from "react";
import { App as AntdApp, Typography, Col, Collapse, Row } from "antd";
import { Layout, theme } from "antd";
const { Header, Content } = Layout;

import React, { useEffect, useState } from "react";

Check failure on line 1 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'React' is declared but its value is never read.
import { App as AntdApp, Layout, Row, Col, Collapse, theme } from "antd";
import Navbar from "./Navbar";
import AgreementData from "./AgreementData";
import AgreementHtml from "./AgreementHtml";
import "./App.css";
import Errors from "./Errors";
import TemplateMarkdown from "./TemplateMarkdown";
import TemplateModel from "./TemplateModel";
import useAppStore from "./store";
import SampleDropdown from "./SampleDropdown";
import Links from "./Links";

function App() {
const { Content } = Layout;

const App = () => {
const init = useAppStore((state) => state.init);
const [activePanel, setActivePanel] = useState<string | string[]>();

const scrollToExplore = () => {
const exploreContent = document.getElementById("explore");
if (exploreContent) {
exploreContent.scrollIntoView({ behavior: "smooth" });
}
};

const {
token: { colorBgContainer },
} = theme.useToken();
Expand Down Expand Up @@ -51,36 +56,23 @@ function App() {
<AntdApp>
<Layout>
<Layout>
<Header
style={{
textAlign: "center",
padding: 0,
background: colorBgContainer,
}}
>
<Typography.Title level={2} style={{ fontWeight: 700 }}>
Template Playground{" "}
<span style={{ fontSize: "80%", color: "#87CEEB" }}>(BETA)</span>
</Typography.Title>
</Header>
<Navbar scrollToExplore={scrollToExplore} />
<Content>
<div
style={{
marginTop: 60,
padding: 24,
minHeight: 360,
background: colorBgContainer,
}}
>
<Row>
<Row id="explore">
<Col span={4}>
<SampleDropdown />
</Col>
<Col span={14}>
<Col span={18}>
<Errors />
</Col>
<Col span={6}>
<Links />
</Col>
</Row>
<div
style={{
Expand Down Expand Up @@ -108,6 +100,6 @@ function App() {
</Layout>
</AntdApp>
);
}
};

export default App;
33 changes: 0 additions & 33 deletions src/Links.tsx

This file was deleted.

Loading

0 comments on commit d3f420d

Please sign in to comment.