Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
Draft
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
23 changes: 22 additions & 1 deletion src/routes/CourseDetail.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
padding: 32px;
display: flex;
flex-direction: column;

max-width: 1000px;
.statusText {
font-weight: bold;
background-image: url(/background_status_text.svg);
Expand Down Expand Up @@ -193,3 +193,24 @@
pointer-events: none;
}
}

.description {
font-size: 16px;
max-width: 600px;
white-space: pre-wrap;
margin: 0;
font-kerning: auto;
font-weight: 400;
color: #002072;
//letter-spacing: 0.1px;
}

.descriptionWrapper {
padding: 20px 30px;
background-color: rgba(112, 131, 224, 0.18);
border-radius: 12px;
margin: 10px;
width: 100%;
display: flex;
justify-content: center;
}
20 changes: 11 additions & 9 deletions src/routes/CourseDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -831,12 +831,14 @@ const CourseDetail = (props: Props) => {
</button>
</div>
<div className={classes.headerContainer}>
<Row>
<Row style={{ width: '100%' }}>
<Col xxl={20} lg={18} md={17} sm={24}>
<Title size="h1" style={{ marginBottom: '0px' }}>
<Title size="h1" style={{ marginBottom: '0px', maxWidth: '80%' }}>
{course.name}
</Title>
<Title size="h5">{course.outline}</Title>
<Title size="h5" style={{ maxWidth: '80%', fontWeight: 500 }}>
{course.outline}
</Title>
</Col>
<Col xxl={4} lg={6} md={7} sm={24}>
<div className={classes.actionContainer}>
Expand Down Expand Up @@ -992,7 +994,7 @@ const CourseDetail = (props: Props) => {
</Row>
</div>
<Row>
<Col xxl={20} xl={22} lg={24}>
<Col>
<Row>
<Col>
<Descriptions
Expand Down Expand Up @@ -1068,14 +1070,14 @@ const CourseDetail = (props: Props) => {
</Row>

<Row>
<Col>
<Col style={{ width: '100%' }}>
<Descriptions size="small" layout="vertical" column={1}>
<Descriptions.Item label="Beschreibung">
<Text large>
<i style={{ whiteSpace: 'pre-wrap' }}>
<div className={classes.descriptionWrapper}>
<p className={classes.description}>
{course.description}
</i>
</Text>
</p>
</div>
</Descriptions.Item>
<Descriptions.Item label="Tags">
{course.tags.map((t) => {
Expand Down