Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 656 | Rev 849 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 656 Rev 714
Línea 50... Línea 50...
50
  display: inline-flex;
50
  display: inline-flex;
51
  gap: 0.5rem;
51
  gap: 0.5rem;
52
  width: fit-content;
52
  width: fit-content;
53
`
53
`
Línea -... Línea 54...
-
 
54
 
-
 
55
const HeaderContent = styled.div`
-
 
56
  display: flex;
-
 
57
  flex-direction: column;
-
 
58
`
54
 
59
 
55
const LayoutActions = styled.div`
60
const LayoutActions = styled.div`
56
  display: flex;
61
  display: flex;
57
  justify-content: space-around;
62
  justify-content: space-around;
58
  border-top: 1px solid rgb(211, 211, 211);
63
  border-top: 1px solid rgb(211, 211, 211);
Línea 88... Línea 93...
88
 
93
 
89
const Body = ({ children, ...rest }) => {
94
const Body = ({ children, ...rest }) => {
90
  return <LayoutBody {...rest}>{children}</LayoutBody>
95
  return <LayoutBody {...rest}>{children}</LayoutBody>
Línea 91... Línea 96...
91
}
96
}
-
 
97
 
-
 
98
const Header = ({
-
 
99
  image = '',
-
 
100
  title = '',
-
 
101
  url = '',
-
 
102
  timeElapsed = '',
-
 
103
  children,
92
 
104
  ...rest
93
const Header = ({ image = '', title = '', url = '', children, ...rest }) => {
105
}) => {
94
  return (
106
  return (
95
    <LayoutHeader {...rest}>
107
    <LayoutHeader {...rest}>
96
      <HeaderInfo>
108
      <HeaderInfo>
97
        {image && (
109
        {image && (
98
          <Avatar
110
          <Avatar
99
            src={image}
111
            src={image}
100
            alt={`${title} profile image`}
112
            alt={`${title} profile image`}
101
            sx={{ width: '50px', height: '50px' }}
113
            sx={{ width: '50px', height: '50px' }}
-
 
114
          />
102
          />
115
        )}
103
        )}
116
        <HeaderContent>
-
 
117
          {url ? (
-
 
118
            <Link to={url}>
-
 
119
              <h2>{title}</h2>
104
        {url ? (
120
            </Link>
105
          <Link to={url}>
-
 
106
            <h2>{title}</h2>
121
          ) : (
107
          </Link>
122
            <h2>{title}</h2>
108
        ) : (
123
          )}
109
          <h2>{title}</h2>
124
          {timeElapsed && <span>{timeElapsed}</span>}
110
        )}
125
        </HeaderContent>
111
      </HeaderInfo>
126
      </HeaderInfo>
112
      {children}
127
      {children}
113
    </LayoutHeader>
128
    </LayoutHeader>