Skip to content

Commit

Permalink
Added some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyjoes committed Nov 23, 2022
1 parent 3b666e0 commit 22a8a3d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 12 deletions.
48 changes: 45 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family: 'Lato';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand All @@ -11,3 +9,47 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
:root {
--theme-background: rgb(239, 243, 247);
--theme-brand: #5c58bb;
}

/* CSS */
.button {
background-image: linear-gradient(
92.88deg,
#455eb5 9.16%,
#5643cc 43.89%,
#673fd7 64.72%
);
border-radius: 8px;
border-style: none;
box-sizing: border-box;
color: #ffffff;
cursor: pointer;
flex-shrink: 0;
font-family: 'Inter UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
sans-serif;
font-size: 20px;
font-weight: 500;
height: 4rem;
padding: 0 1.6rem;
text-align: center;
text-shadow: rgba(0, 0, 0, 0.25) 0 3px 8px;
transition: all 0.5s;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
}

.button:hover {
box-shadow: rgba(80, 63, 205, 0.5) 0 1px 30px;
transition-duration: 0.1s;
}

@media (min-width: 768px) {
.button {
padding: 0 2.6rem;
}
}
19 changes: 10 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import React from 'react'
import ReactDOM from 'react-dom/client'
import './assets/fonts/lato/font.css'
import './index.css'
import App from './App'
import reportWebVitals from './reportWebVitals'

const root = ReactDOM.createRoot(document.getElementById('root'));
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
</React.StrictMode>,
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
reportWebVitals()

0 comments on commit 22a8a3d

Please sign in to comment.