// @flow import styled from 'styled-components'; import theme from 'shared/theme'; import { Truncate } from 'src/components/globals'; import { MEDIA_BREAK, MAX_SECONDARY_COLUMN_WIDTH } from 'src/components/layout'; export const ProfileContainer = styled.div` display: flex; flex-direction: column; width: 100%; position: relative; @media (max-width: ${MEDIA_BREAK}px) { border-radius: 0; margin-top: 0; border: 0; } `; export const CoverPhoto = styled.div` position: relative; width: 100%; height: 100%; min-height: ${MAX_SECONDARY_COLUMN_WIDTH / 3}px; max-height: ${MAX_SECONDARY_COLUMN_WIDTH / 3}px; background-color: ${theme.text.default}; overflow: hidden; background-image: url(${props => props.src}); background-size: cover; background-position: center center; border-radius: 4px 4px 0 0; @media (max-width: ${MEDIA_BREAK}px) { border-radius: 0; } `; export const ProfileAvatarContainer = styled.div` position: relative; top: -36px; width: 68px; height: 68px; margin-left: 12px; border-radius: 10px; background: ${theme.bg.default}; border: 4px solid ${theme.bg.default}; margin-bottom: -44px; `; export const RoundProfileAvatarContainer = styled.div` position: relative; top: -36px; width: 68px; height: 68px; margin-left: 12px; border-radius: 34px; background: ${theme.bg.default}; border: 4px solid ${theme.bg.default}; margin-bottom: -48px; `; export const ActionsRowContainer = styled.div` display: grid; align-items: center; grid-gap: 12px; padding: 16px 16px 20px; margin-top: 8px; button { flex: 1; } @media (max-width: ${MEDIA_BREAK}px) { border-bottom: 1px solid ${theme.bg.border}; margin-top: 0; padding-bottom: 16px; } `; export const MetaContainer = styled.div` display: flex; flex-direction: column; padding: 0 16px; margin-top: 16px; `; export const Name = styled.h1` font-size: 24px; font-weight: 800; color: ${theme.text.default}; word-break: break-word; line-height: 1.2; `; export const Description = styled.p` margin-top: 8px; margin-bottom: 4px; font-size: 16px; font-weight: 400; line-height: 1.4; color: ${theme.text.secondary}; word-break: break-word; a { color: ${theme.text.default}; font-weight: 500; &:hover { text-decoration: underline; } } `; export const MetaLinksContainer = styled.div` margin-top: 4px; `; export const MetaRow = styled.div` display: flex; font-size: 16px; font-weight: 400; color: ${theme.text.secondary}; align-items: center; margin-top: 8px; word-break: break-word; &:first-of-type { margin-top: 8px; } a { display: flex; align-items: center; } a:hover { color: ${theme.text.default}; } .icon { margin-right: 8px; } `; export const ChannelCommunityMetaRow = styled.div` display: flex; padding: 16px; margin-bottom: -12px; align-items: center; border-bottom: 1px solid ${theme.bg.border}; background: transparent; &:hover { background: ${theme.bg.wash}; } `; export const ChannelCommunityName = styled.div` font-size: 18px; font-weight: 500; color: ${theme.text.alt}; margin-left: 16px; ${Truncate}; `; export const Username = styled.div` font-size: 18px; font-weight: 500; color: ${theme.text.alt}; margin-bottom: 4px; word-break: break-all; margin-top: 2px; `;