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

Making headers links and fixing text alignment #152

Merged
merged 1 commit into from
Mar 27, 2024
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
9 changes: 8 additions & 1 deletion src/components/LatestVersion/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ const LatestRelease = () => {
</Link>
) : (
<>
<h3 className={styles.notificationTitle}>Ignite</h3>
<h3 className={styles.notificationTitle}>
<Link
className={styles.notificationTitleLink}
href={`https://github.com/infinitered/ignite/releases/tag/${latestVersion}`}
>
Ignite
</Link>
</h3>
<p className={styles.notificationDate}>
<ReleaseRemark
latestVersion={latestVersion}
Expand Down
21 changes: 13 additions & 8 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,16 @@
}

.notificationTag {
display: flex;
flex-direction: row;
align-items: flex-start;
padding: 4px 12px;
gap: 10px;
width: 103px;
height: 29px;
display: inline-block;
padding: 0px 12px;
background: #E8C1B4;
}

.notificationTagText {
color: #692810;
font-size: 14px;
line-height: 21px;
line-height: 29px;
margin: 0px;
}

.notificationTitle {
Expand All @@ -45,6 +41,15 @@
line-height: 24px;
}

.notificationTitleLink {
color: inherit;
}

.notificationTitleLink:hover {
color: inherit;
text-decoration: underline;
}

.notificationDate {
color: #564E4A;
font-size: 16px;
Expand Down
9 changes: 8 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ const NewSection = () => {
<div className={styles.notificationTag}>
<p className={styles.notificationTagText}>New Recipe</p>
</div>
<h3 className={styles.notificationTitle}>{mostRecentRecipe.title}</h3>
<h3 className={styles.notificationTitle}>
<Link
className={styles.notificationTitleLink}
to={`/docs/recipes/${mostRecentRecipe.doc_name.split(".")[0]}`}
>
{mostRecentRecipe.title}
</Link>
</h3>
<p className={styles.notificationDate}>
{`Published on `}
<b>
Expand Down
Loading