Skip to content

Commit

Permalink
Merge pull request #209 from starknet-id/fix/category-details
Browse files Browse the repository at this point in the history
fix: adding blur and fixing footer in category details
  • Loading branch information
fricoben authored Oct 15, 2023
2 parents cf272b4 + dbc1557 commit 7d75629
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
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

1 comment on commit 7d75629

@vercel
Copy link

@vercel vercel bot commented on 7d75629 Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.