-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: added show titles instead of episode titles * ci: reworked sidebar, audioclip description * ci: clean up comments * ci: cleanup logs * ci: add description and scroll to audioclip sidebar * ci: fix styled div
- Loading branch information
1 parent
790ef36
commit c4c41d6
Showing
6 changed files
with
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import styled from 'styled-components' | ||
import NotesIcon from '~/components/Icons/NotesIcon' | ||
import { Flex } from '~/components/common/Flex' | ||
import { NodeExtended } from '~/types' | ||
import { colors } from '~/utils/colors' | ||
|
||
type DescriptionProps = { | ||
stateless?: boolean | ||
node: NodeExtended | null | ||
} | ||
|
||
export const Description = ({ stateless, node }: DescriptionProps) => ( | ||
<Flex grow={1} shrink={1}> | ||
<Header> | ||
{stateless && ( | ||
<Heading> | ||
<div className="icon"> | ||
<NotesIcon /> | ||
</div> | ||
<div className="title">Description</div> | ||
</Heading> | ||
)} | ||
</Header> | ||
<Box>{node?.description ? `"${node?.description}"` : '...'}</Box> | ||
</Flex> | ||
) | ||
|
||
const Heading = styled(Flex).attrs({ | ||
direction: 'row', | ||
align: 'center', | ||
})` | ||
.icon { | ||
font-size: 16px; | ||
color: ${colors.GRAY3}; | ||
margin-right: 7px; | ||
} | ||
.title { | ||
color: ${colors.white}; | ||
font-family: Barlow; | ||
font-size: 10px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
letter-spacing: 1px; | ||
text-transform: uppercase; | ||
} | ||
` | ||
|
||
const Header = styled(Flex).attrs({ | ||
direction: 'row', | ||
align: 'center', | ||
justify: 'space-between', | ||
})` | ||
margin-bottom: 18px; | ||
` | ||
|
||
const Box = styled(Flex)` | ||
color: ${colors.white}; | ||
text-overflow: ellipsis; | ||
whitespace: nowrap; | ||
font-family: Barlow; | ||
font-size: 13px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 18px; | ||
` |
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