Skip to content

Commit

Permalink
feat: update styling!
Browse files Browse the repository at this point in the history
  • Loading branch information
bangarang committed May 9, 2024
1 parent e2b5e88 commit 0d4aee0
Show file tree
Hide file tree
Showing 9 changed files with 319 additions and 108 deletions.
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>
117 changes: 104 additions & 13 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ body {
padding: 0;
font-family: sans-serif;
background: #fff;
font-family: "Inter", sans-serif;
font-optical-sizing: auto;
font-style: normal;
font-variation-settings: "slnt" 0;
}

#root {
Expand All @@ -16,25 +20,30 @@ body {
}

.success {
background-color: #4CAF50; /* Green background */
color: white; /* White text color */
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-bottom: 0;
margin: 0;
padding: 0;
margin-left: -0.75rem;
overflow: hidden;
}

nav li {
Expand All @@ -43,30 +52,76 @@ nav li {

nav li a {
align-items: center;
color: rgb(9, 11, 43);
color: #999;
display: flex;
font-weight: 500;
font-weight: 600;
transition: color 0.25s linear 0s;
white-space: nowrap;
cursor: pointer;
padding: 0.75rem;
line-height: 1;
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 {
background: #090b2b;
width: 100%;
padding: 25px;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem 0px;
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 {
Expand All @@ -77,12 +132,39 @@ nav li a:hover {

.contrast {
padding: 10px;
margin: 0 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 @@ -225,6 +307,15 @@ nav li a:hover {
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 0d4aee0

Please sign in to comment.