generated from json-schema-org/repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
styles: updates the home page #93
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
683a1f7
gives proper text color to a completed and active task
pavanydg 5c0c0b1
refactor: css
JeelRajodiya e3ecc79
Merge branch 'json-schema-org:main' into main
pavanydg 8e0ab3c
Merge branch 'json-schema-org:main' into main
pavanydg 363b475
Merge branch 'main' of github.com:pavanydg/tour
pavanydg e78f877
Merge branch 'main' of github.com:pavanydg/tour
pavanydg f27d0b9
Merge branch 'main' of github.com:pavanydg/tour
pavanydg 17c4049
updated the home page
pavanydg 37739db
modifiend ui
pavanydg 22c181f
made the homepage responsive
pavanydg f3c12a7
refactor: rename component
JeelRajodiya 14d3617
refactor: use CSS grids
JeelRajodiya 1d2be64
refactor: styles
JeelRajodiya ec595c8
format: files
JeelRajodiya dfa9b1e
styles: fix gap
JeelRajodiya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.column{ | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.5em; | ||
} | ||
|
||
.HomePageLinks{ | ||
width: 440px; | ||
display: flex; | ||
justify-content:center; | ||
align-items: center; | ||
gap: 4em; | ||
position: relative; | ||
margin-top: 2em; | ||
color: hsl(var(--primary)); | ||
} | ||
|
||
.HomePageLinkTitle{ | ||
text-decoration: underline; | ||
text-underline-offset: 0.15em; | ||
text-decoration-color: hsl(var(--primary) / 0.3); | ||
} | ||
|
||
.HomePageLinkTitle:hover { | ||
text-decoration-color: hsl(var(--primary)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { contentManager } from "@/lib/contentManager" | ||
import styles from "./HomePage.module.css" | ||
import Link from "next/link" | ||
|
||
export default function () { | ||
const outline = contentManager.getOutline() | ||
|
||
const half = Math.ceil(outline.length / 2) | ||
const firstColumn = outline.slice(0, half) | ||
const secondColumn = outline.slice(half) | ||
|
||
return ( | ||
<div className={styles.HomePageLinks}> | ||
<div className={styles.column}> | ||
{firstColumn.map((ele, index) => ( | ||
<Link key={index} className={styles.HomePageLink} href={contentManager.getPathWithPrefix(ele.steps[0].fullPath) as string}> | ||
<span>{index + 1}. </span> | ||
<span className={styles.HomePageLinkTitle}>{ele.title}</span> | ||
</Link> | ||
))} | ||
</div> | ||
<div className={styles.column}> | ||
{secondColumn.map((ele, index) => ( | ||
<Link key={index + half + 1} className={styles.HomePageLink} href={contentManager.getPathWithPrefix(ele.steps[0].fullPath) as string}> | ||
<span>{index + half + 1}. </span> | ||
<span className={styles.HomePageLinkTitle}>{ele.title}</span> | ||
</Link> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {default as default} from "./HomePage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's Great, can you please use CSS grid of 4 rows each, this can make the links dynamic, incase we need to add more additional chapters we won't need to modify this component.
This video can help: https://www.youtube.com/watch?v=705XCEruZFs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok thanks I will do it once the design is finalized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey i tried using grid, but the thing is it fills row wise. So the outcome will look like
1.Getting Started 2.PrimitiveTypes
and then from next line. So i have modified the previous code such that if we add additional chapters it works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can resolve the row wise filling issue using the grid-auto-flow CSS property. Let me know if that does not work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that property is not working as desired
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's okay. You can continue working on the rest of the design.