Skip to content

Commit

Permalink
feat: new properties to use (#28)
Browse files Browse the repository at this point in the history
* feat: new properties to use

* fix: close workbook

* feat: update and add some more advanced options to the mix

* Update src/SpaceApp.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* feat: update styling!

* feat: update error message

* feat: fix svg jsx params

---------

Co-authored-by: Alex Rock <hi@lxrck.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 9, 2024
1 parent c581bb9 commit fd7de73
Show file tree
Hide file tree
Showing 16 changed files with 839 additions and 381 deletions.
306 changes: 98 additions & 208 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@flatfile/api": "^1.7.8",
"@flatfile/listener": "^1.0.1",
"@flatfile/plugin-record-hook": "^1.4.5",
"@flatfile/react": "^7.8.9",
"@flatfile/api": "^1.8.0",
"@flatfile/listener": "^1.0.2",
"@flatfile/plugin-record-hook": "^1.5.0",
"@flatfile/react": "^7.9.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.22.3",
"react-scripts": "5.0.1",
"web-vitals": "^3.5.2"
},
Expand Down
45 changes: 25 additions & 20 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<!--

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">

<meta name="description" content="Web site created using create-react-app" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Expand All @@ -23,14 +26,15 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->

<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="styles.css" />

<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
<title>React App</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand All @@ -40,5 +44,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
</body>

</html>
196 changes: 189 additions & 7 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,166 @@ body {
margin: 0;
padding: 0;
font-family: sans-serif;
background: #090b2b;
color: #fff;
background: #fff;
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-style: normal;
font-variation-settings: "slnt" 0;
}

#root {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
flex-direction: column;
}

.success {
color: black; /* White text color */
padding: 10px; /* Some padding */
margin: 20px 0; /* Some space above and below */
text-align: center; /* Centered text */
box-shadow: rgb(0, 0, 0) 8px 8px;
border: 2px solid black;
}

.centered-sub-navigation {
text-align: center;
}

nav {
white-space: nowrap;
display: flex;
padding: 0 3rem;
border-bottom: 1px solid rgb(232, 237, 244);
}

nav ul {
margin: 0;
padding: 0;
margin-left: -0.75rem;
overflow: hidden;
}

nav li {
display: inline-block;
}

nav li a {
align-items: center;
color: #999;
display: flex;
font-weight: 600;
transition: color 0.25s linear 0s;
white-space: nowrap;
cursor: pointer;
font-size: 0.875rem;
line-height: 1.25rem;
padding: 0.875rem 0.75rem;
text-decoration: none;
position: relative;
}

nav li a:hover {
color: rgba(9, 11, 43, 0.8);
}
nav li a:after {
content: "";
display: block;
position: absolute;
background: black;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
transition: 0.25s ease;
}

nav li a.active {
color: black;
}
nav li a.active:after {
content: "";
display: block;
position: absolute;
background: black;
bottom: 0;
left: 0;
right: 0;
height: 2px;
}

pre.inline {
display: inline-block;
background: rgb(239, 239, 239);
padding: 5px 10px;
border-radius: 20px;
margin: 0;
}

.menu {
width: 100%;
display: flex;
flex-direction: column;
max-width: 92rem;
padding-left: 3rem;
padding: 0px;
background-color: rgb(255, 255, 255);
}

.top-menu {
border-bottom: 1px solid rgb(232, 237, 244);
padding: 1rem 3rem;
}
.border-space {
border-bottom: 1px solid rgb(232, 237, 244);
padding: 1rem 0;
}
.top-menu img {
height: 1.75rem;
}

.content {
/* Adjust the width and height as needed */
width: 800px;
height: 200px;
padding: 0 20px 0 50px;
width: 1000px;
padding: 25px;
}

.contrast {
padding: 10px;
margin: 10px 5px 0 0;
margin-right: 5px;
border-radius: 4px;
border: 0;
font-weight: 600;
cursor: pointer;
}

.flatfile-button {
background: rgb(59, 47, 201);
color: white;
border-radius: 0;
border: 0;
font-weight: 600;
cursor: pointer;
padding: 10px 30px 10px 15px;
position: relative;
transition: 0.25s ease;
}
.flatfile-button .button-arrow {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
height: 25px;
width: 5px;
transition: 0.25s ease;
}
.flatfile-button:hover {
background: rgba(59, 47, 201, 0.9);
}
.flatfile-button:hover .button-arrow {
transform: translateY(-50%) translateX(3px);
}
/* End of styles for home page */

:root {
Expand Down Expand Up @@ -134,6 +268,54 @@ body {
color: var(--ff-secondary-color) !important;
}

.main {
padding: 30px;
min-height: 100vh;
}

.main .space-contents {
width: 100% !important;
}

.description {
display: inherit;
justify-content: inherit;
align-items: inherit;
font-size: 0.85rem;
max-width: var(--max-width);
width: 100%;
z-index: 2;
font-family: var(--font-mono);
}

.description a {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
}

.description button {
position: relative;
margin: 0;
padding: 1rem;
background-color: rgba(var(--callout-rgb), 0.5);
border: 1px solid rgba(var(--callout-border-rgb), 0.3);
border-radius: var(--border-radius);
font-family: var(--font-mono);
cursor: pointer;
transition: 0.25s ease;
}

.no-radius-iframe {
border-radius: 0!important;
}

a {
color: black;
font-weight: 600;
}

/* End style overrides for when you cancel out of the Flatfile modal */

/* End style overrides for when Flatfile is displayed as a modal */
Expand Down
Loading

0 comments on commit fd7de73

Please sign in to comment.