-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profile Detail View UI #753
Conversation
@@ -0,0 +1,22 @@ | |||
import React from 'react'; | |||
import {HTMLAttributes} from 'react'; | |||
type Props = HTMLAttributes<SVGElement>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token Props
@@ -0,0 +1,22 @@ | |||
import React from 'react'; | |||
import {HTMLAttributes} from 'react'; | |||
type Props = HTMLAttributes<SVGElement>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token Props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meghana-12 Can you please add a screenshot of your UI in the PR description.
@@ -0,0 +1,195 @@ | |||
import React from 'react'; | |||
import { StyledHeading2, StyledHeading4, StyledHeading6 } from '../../../ignitus-UserInterfaceBook/styles'; | |||
import * as C from '../styles'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use C
generally for importing colors, can you please user P
for Profile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
`; | ||
|
||
export const Container2 = styled.div` | ||
margin-right: -0.3rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use margin in negative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
`; | ||
|
||
export const HeadingContainer = styled(flexibleRowDiv)` | ||
// padding-top: 3rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
flex-wrap: wrap; | ||
`; | ||
|
||
export const ContriElement = styled(flexibleRowDiv)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to use understandable convention names instead of Contri
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I'll edit that
src/ignitus-Profile/ignitus-StudentProfile/Components/profileDetailView.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A visual representation of flex layout for recommendation section, layout is not that clean but will give you hints how you should use flex.
One tutorial that will certainly help you to better use flex is https://flexboxfroggy.com/
src/ignitus-Profile/ignitus-StudentProfile/Components/profileDetailView.tsx
Outdated
Show resolved
Hide resolved
src/ignitus-Profile/ignitus-StudentProfile/Components/profileDetailView.tsx
Outdated
Show resolved
Hide resolved
src/ignitus-Profile/ignitus-StudentProfile/Components/profileDetailView.tsx
Outdated
Show resolved
Hide resolved
src/ignitus-Profile/ignitus-StudentProfile/Components/profileDetailView.tsx
Outdated
Show resolved
Hide resolved
src/ignitus-Profile/ignitus-StudentProfile/Components/profileDetailView.tsx
Outdated
Show resolved
Hide resolved
@meghana-12 please remove the .png image added as well, and use the avatar I suggested., please delete the Image. |
Codecov Report
@@ Coverage Diff @@
## develop #753 +/- ##
=================================================
- Coverage 0.56818% 0.55866% -0.00951%
=================================================
Files 5 6 +1
Lines 176 179 +3
Branches 48 48
=================================================
Hits 1 1
- Misses 175 178 +3
Continue to review full report at Codecov.
|
@@ -0,0 +1,33 @@ | |||
import {AppIcon} from '../../ignitus-Shared/types/iconsTypes/iconEnums'; | |||
|
|||
export type HeadingProps = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token type
<RoundedButton size="medium" category="grey">Psycholinguistics </RoundedButton> | ||
<RoundedButton size="medium" category="grey">Modernist Literature </RoundedButton> | ||
</P.ContentContainer> | ||
</P.ElementContainer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</P.ElementContainer> | |
</P. ResearchSection > |
import {Paragraph} from '../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/typography'; | ||
import {Loading} from '../../../ignitus-Shared/ignitus-Utilities/Components/loader'; | ||
import {Normal} from '../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/fonts'; | ||
import {default as I} from '../../../ignitus-Shared/ignitus-Utilities/Components/icon'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A space is required after '{' object-curly-spacing
A space is required before '}' object-curly-spacing
Use default import syntax to import 'I' import/no-named-default
import {Paragraph} from '../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/typography'; | ||
import {Loading} from '../../../ignitus-Shared/ignitus-Utilities/Components/loader'; | ||
import {Normal} from '../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/fonts'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A space is required after '{' object-curly-spacing
A space is required before '}' object-curly-spacing
font-weight: ${props => | ||
props.fontStyle === 'paragraph' ? F.Medium : F.Bold}; | ||
font-size: ${props => (props.fontStyle === 'paragraph' ? F.SM : F.MD)}; | ||
color: ${props => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arrow function used ambiguously with a conditional expression no-confusing-arrow
|
||
export const Title = styled(Heading5)<TitleProps>` | ||
padding: 0.5rem 2rem; | ||
font-weight: ${props => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arrow function used ambiguously with a conditional expression no-confusing-arrow
margin: 1.5rem 0; | ||
`; | ||
|
||
export const Title = styled(Heading5)<TitleProps>` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Infix operators must be spaced space-infix-ops
Unexpected mix of '<' and '>' no-mixed-operators
Heading6, | ||
} from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/typography'; | ||
import {TitleProps} from './types'; | ||
import {default as I} from '../../ignitus-Shared/ignitus-Utilities/Components/icon'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A space is required after '{' object-curly-spacing
A space is required before '}' object-curly-spacing
Use default import syntax to import 'I' import/no-named-default
Paragraph, | ||
Heading6, | ||
} from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/typography'; | ||
import {TitleProps} from './types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A space is required after '{' object-curly-spacing
A space is required before '}' object-curly-spacing
</P.ParentContainer> | ||
); | ||
|
||
const Heading = ({title, icon, fontStyle}: HeadingProps) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing error: Unexpected token :
@@ -0,0 +1 @@ | |||
export {default} from './starCircleIcon'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A space is required after '{' object-curly-spacing
A space is required before '}' object-curly-spacing
Do not alias default
as default
. Just export default
itself instead import/no-default-export
@@ -0,0 +1 @@ | |||
export {default} from './contributionIcon'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A space is required after '{' object-curly-spacing
A space is required before '}' object-curly-spacing
Do not alias default
as default
. Just export default
itself instead import/no-default-export
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Added the UI of Profile detail view, issue: #743.