-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
44 deletions.
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
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
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,30 @@ | ||
import React from 'react'; | ||
import Icon from '../Icon'; | ||
import styles from './styles.module.scss'; | ||
|
||
interface Props { | ||
course?: boolean; | ||
outboundLink?: string | null; | ||
} | ||
|
||
const CzechitasIntro = ( | ||
{ course = false, outboundLink = null}: Props | ||
): JSX.Element => { | ||
return ( | ||
<div className={styles.czechitasIntro}> | ||
<Icon className={styles.czechitasIcon} name="czechitas" size="5rem" /> | ||
<div> | ||
{course ? ( | ||
<> | ||
<p>Tento kurz je vytvořen pro neziskovou organizaci <a href="https://www.czechitas.cz">Czechitas</a>, jejíž cílem je otevírat ženám svět informačních technologií.</p> | ||
<p>Na kurz je možné se přihlásit na <a href={outboundLink ?? "https://www.czechitas.cz"}>webu Czechitas</a>.</p> | ||
</> | ||
) : ( | ||
<p>Následující kurzy jsou vytvořeny pro neziskovou organizaci <a href="https://www.czechitas.cz">Czechitas</a>, jejíž cílem je otevírat ženám svět informačních technologií.</p> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CzechitasIntro; |
17 changes: 17 additions & 0 deletions
17
website/src/app/components/CzechitasIntro/styles.module.scss
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,17 @@ | ||
@import "styles/variables.scss"; | ||
@import "styles/mixins.scss"; | ||
|
||
.czechitasIntro { | ||
@include padded; | ||
max-width: 40rem; | ||
margin: 2rem auto; | ||
display: flex; | ||
align-items: flex-start; | ||
gap: 1rem; | ||
} | ||
|
||
.czechitasIcon { | ||
margin-top: 1rem; | ||
color: #692D8B; | ||
flex-shrink: 0; | ||
} |
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