Skip to content

Commit ff7a75d

Browse files
Minor CSS fixes
1 parent f6f570b commit ff7a75d

File tree

6 files changed

+8
-11
lines changed

6 files changed

+8
-11
lines changed

frontend/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"react": "^18.3.1",
1919
"react-dom": "^18.3.1",
2020
"react-router-dom": "^6.26.2",
21-
"react-scripts": "5.0.1",
21+
"react-scripts": "^5.0.1",
2222
"typescript": "^4.9.5",
2323
"web-vitals": "^2.1.4"
2424
},

frontend/src/App.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.App {
2-
text-align: center;
3-
background-color: black;
4-
color: white;
5-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

frontend/src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import QuestionServicePage from './pages/questionservicepage';
66
import { UserContextProvider } from './UserContextProvider';
77
import './App.css';
88

9-
10-
119
const App: React.FC = () => {
1210
useEffect(() => {
1311
document.documentElement.classList.add('dark');
@@ -16,7 +14,7 @@ const App: React.FC = () => {
1614
return (
1715
<UserContextProvider>
1816

19-
<div className="App h-screen">
17+
<div className="App h-screen bg-gray-900 text-white">
2018
<Routes>
2119
<Route path='/' element={<LoginPage />} />
2220
<Route path='/login' element={<LoginPage />} />

frontend/src/components/filtercategory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface FilterCategoriesProps {
1010
const FilterCategories: React.FC<FilterCategoriesProps> = ({ category, setCategory, questions }) => {
1111
const uniqueCategories = Array.from(new Set(
1212
questions
13-
.flatMap((q) => q.categories.split(',').map(cat => cat.trim())) // Split by comma and trim whitespace
13+
.flatMap((q) => q.categories.split(',').map(cat => cat.trim()))
1414
));
1515
return (
1616
<select

frontend/src/pages/questionservicepage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const QuestionServicePage: React.FC = () => {
2424

2525
return (
2626
<div className="p-4">
27+
<h1 className="text-2xl font-bold text-left mb-6">Peer Prep</h1>
2728
<div className="flex justify-start items-center space-x-2 mb-4 text-sm">
2829
<SearchBar searchTerm={searchTerm} setSearchTerm={setSearchTerm} />
2930
<FilterCategories category={categoryFilter} setCategory={setCategoryFilter} questions={questions} />

0 commit comments

Comments
 (0)