Skip to content

Commit

Permalink
Refactor course registration button
Browse files Browse the repository at this point in the history
  • Loading branch information
podlomar committed Mar 8, 2024
1 parent 5c1f3f8 commit 0aad80f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions website/src/app/[topicId]/(course)/[courseId]/[chapterId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,16 @@ const ChapterPage = async ({ params }: Props): Promise<JSX.Element> => {
<ReactHast root={item} />
</div>
))
/* <p>
<a href="https://forms.gle/2vDy6sYrrhTioEP89" className={styles.register}>Přihlásit se na kurz</a>
</p> */
)}
{ course.organization === 'kodim' && (
<div className={styles.courseInfoItem}>
<a
href={`/odber?topic=${course.title}`}
className={styles.bigBtn}
>
Mám zájem o tento kurz
</a>
</div>
)}
</div>
{ chapter.name === 'lekce' && course.intro !== null && course.intro.items.length > 0 && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
page-break-inside: avoid;
}

a.register {
a.bigBtn {
display: block;
margin-top: 2rem;
background-color: $palette-1;
Expand Down

0 comments on commit 0aad80f

Please sign in to comment.