Skip to content

Commit

Permalink
Merge pull request #71 from brandonnorsworthy/updates
Browse files Browse the repository at this point in the history
add html description and fix some qol nice to haves
  • Loading branch information
brandonnorsworthy authored Sep 20, 2024
2 parents 231fbf5 + b599eee commit 46d338a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5847064233473326"
crossorigin="anonymous"></script>
<title>Rust</title>
<title>Rust Quests</title>
<description>Randomly generate things to do for the game Rust! If you find yourself sitting around your base this is
the place for you!</description>
</head>

<body>
Expand Down
7 changes: 2 additions & 5 deletions public/assets/text/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@

## Future Updates
- Light/Dark mode toggle
- Bingo card generator with a code to share with friends to compete or collaborate
- Bingo card generator with a code to share with friends to compete or collaborate
__^^ let us know if this is a feature you'd like to see! ^^__

# Other

## Professional Contact
For professional inquiries, please email hello@email.com

## About
This website was created by [zcog](http://www.steamcommunity.com/id/zcog) and [Jered]() as a hobby project. We hope you enjoy it!
This website was created by discord @[zcog] hope you enjoy it!
3 changes: 1 addition & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import NotfoundPage from './pages/NotfoundPage';
import UnauthorizedPage from './pages/UnauthorizedPage';
import AuthenticatedAdminPage from './pages/admin/AdminPage';
import AuthenticatedAdminSuggestionsPage from './pages/admin/AdminSuggestionsPage';
import CompletedQuestsPage from './pages/AllQuestsPage';

import './App.css';
import Background from './components/Background';
Expand All @@ -33,7 +32,7 @@ function App() {
<Route path="/unauthorized" element={<UnauthorizedPage />} />

{/* authorized routes */}
<Route path="/all-quests" element={<CompletedQuestsPage />} />
{/* <Route path="/all-quests" element={<CompletedQuestsPage />} /> */}

{/* admin routes */}
<Route path="/admin" element={<AuthenticatedAdminPage />} />
Expand Down
4 changes: 2 additions & 2 deletions src/modals/EditQuest/EditQuest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const EditQuest: React.FC<ModalProps> = (props) => {
<input
type="text"
value={title.toUpperCase()}
onChange={(e) => setTitle(e.target.value)}
onChange={(e) => setTitle(e.target.value.toUpperCase())}
className="w-full text-3xl font-bold text-center text-text bg-white/25 placeholder:text-text/50"
/>
}
Expand All @@ -74,7 +74,7 @@ const EditQuest: React.FC<ModalProps> = (props) => {
>
{
categories.map((category) => (
<option key={category.id} value={category.name}>Category: {category.name.toUpperCase()}</option>
<option className='text-black' key={category.id} value={category.name}>Category: {category.name.toUpperCase()}</option>
))
}
</select>
Expand Down
6 changes: 3 additions & 3 deletions src/modals/EditSuggestions/EditSuggestions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const EditSuggestion: React.FC<ModalProps> = (props) => {
<input
type="text"
value={title.toUpperCase()}
onChange={(e) => setTitle(e.target.value)}
onChange={(e) => setTitle(e.target.value.toUpperCase())}
className="w-full text-3xl font-bold text-center text-text bg-white/25 placeholder:text-text/50"
/>
}
Expand All @@ -69,11 +69,11 @@ const EditSuggestion: React.FC<ModalProps> = (props) => {
<select
value={category}
onChange={(e) => setCategory(e.target.value)}
className="w-full text-xl font-bold text-center hover:cursor-pointer text-text bg-white/25 placeholder:text-text/50"
className="w-full text-xl font-bold text-center text-text hover:cursor-pointer bg-white/25 placeholder:text-text/50"
>
{
categories.map((category) => (
<option key={category.id} value={category.name}>Category: {category.name.toUpperCase()}</option>
<option className='text-black' key={category.id} value={category.name}>Category: {category.name.toUpperCase()}</option>
))
}
</select>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ const LandingPage = () => {
disabled={disableButtons}
onClick={() => setCurrentOpenModal("news")}
/>
<MenuButton
{/* <MenuButton
text="all quests"
disabled={disableButtons}
onClick={() => {
if (!accessToken || !user) return navigate("/login");
if (user.role === "guest") return setCurrentOpenModal("register");
navigate("/all-quests")
}}
/>
/> */}
<MenuButton
text="SUGGESTIONS"
disabled={disableButtons}
Expand Down

0 comments on commit 46d338a

Please sign in to comment.