File size: 3,421 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
// @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;
`;
|