Skip to content

Commit

Permalink
Added dependencies and global styles
Browse files Browse the repository at this point in the history
  • Loading branch information
khankamolk committed Oct 6, 2024
1 parent 9ac8025 commit fce5c14
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 83 deletions.
24 changes: 2 additions & 22 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
import { useState } from "react";
import reactLogo from "./assets/react.svg";
import viteLogo from "/vite.svg";
import "./App.css";
import AddDegree from "./components/set-up-page/AddDegree"

function App() {
const [count, setCount] = useState(0);

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
<AddDegree isMajor={true}/>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

148 changes: 89 additions & 59 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,98 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #FFF;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

a {
font-size: 0.875em;
font-weight: 500;
color: var(--Blue, #2F80ED);
text-decoration: inherit;
}
a:hover {
color: var(--Hover-A, #0069D9);
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1, h2, h3, h4, h5, h6, p {
margin: 0;
padding: 0;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}
h1 {
font-size: 1.25em;
font-style: normal;
font-weight: 580;

}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
h2 {
font-size: 1em;
font-style: normal;
font-weight: 580;

}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
.primary-text {
font-size: 0.875em;
font-style: normal;
font-weight: 400;

}
a:hover {
color: #747bff;

.secondary-text {
color: var(--Secondary-Text, #8A8A8A);
font-size: 0.875em;
font-style: normal;
font-weight: 400;

}

button {
background-color: #f9f9f9;
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
1 change: 0 additions & 1 deletion src/vite-env.d.ts

This file was deleted.

0 comments on commit fce5c14

Please sign in to comment.