Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adding blur and fixing footer in category details #209

Merged
merged 2 commits into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pages/categories/[category].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import styles from "../../styles/category.module.css";
import homeStyles from "../../styles/Home.module.css";
import Quest from "../../components/quests/quest";
import BackButton from "../../components/UI/backButton";
import Blur from "../../components/shapes/blur";

const CategoriesPage: NextPage = () => {
const router = useRouter();
Expand All @@ -20,8 +21,11 @@ const CategoriesPage: NextPage = () => {
}, [categories, categoryName]);

return (
<div className={homeStyles.screen}>
<div className={homeStyles.backButton}>
<div className={styles.screen}>
<div className={homeStyles.blur1}>
<Blur />
</div>
<div className={styles.backButton}>
<BackButton onClick={() => router.back()} />
</div>
<h1 className={homeStyles.title}>Onboarding quests</h1>
Expand Down
2 changes: 2 additions & 0 deletions styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
position: absolute;
left: 0;
top: 0;
z-index: -1;
}

.blur2 {
Expand All @@ -113,6 +114,7 @@

.backButton {
margin-left: 63px;
z-index: 10;
}

.controls {
Expand Down
20 changes: 20 additions & 0 deletions styles/category.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
.screen {
z-index: 0;
position: relative;
padding-top: 12vh;
background-color: var(--background);
width: 100%;
min-height: calc(100vh - 117px - 112px + 2em);
display: flex;
justify-content: center;
flex-direction: column;
margin-bottom: calc(112px - 2em);
}

.backButton {
position: absolute;
margin-left: 63px;
z-index: 10;
top: 12vh;
}

.questList {
display: flex;
gap: 1rem;
Expand Down