From 8b2ccc96a68be77fc47aa86c930b51deaab75ea3 Mon Sep 17 00:00:00 2001 From: Meghana Date: Sat, 16 May 2020 01:04:49 +0530 Subject: [PATCH 01/51] added Page --- .../Components/index.tsx | 103 ++++++++++++++++++ src/ignitus-OpportunityDetailsPage/styles.ts | 39 +++++++ .../ignitus-PublicRoutes/index.tsx | 5 + .../img-Png/UniversityOfMelbourne.png | Bin 0 -> 33381 bytes .../Components/index.tsx | 44 ++++++++ .../ingitus-OpportunityDetailsCard/styles.ts | 85 +++++++++++++++ .../ingitus-OpportunityDetailsCard/types.ts | 7 ++ 7 files changed, 283 insertions(+) create mode 100644 src/ignitus-OpportunityDetailsPage/Components/index.tsx create mode 100644 src/ignitus-OpportunityDetailsPage/styles.ts create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts diff --git a/src/ignitus-OpportunityDetailsPage/Components/index.tsx b/src/ignitus-OpportunityDetailsPage/Components/index.tsx new file mode 100644 index 00000000..3f23bf51 --- /dev/null +++ b/src/ignitus-OpportunityDetailsPage/Components/index.tsx @@ -0,0 +1,103 @@ +import React from 'react'; +import OpportunityDetailsCard from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index'; +import { Container } from '../../ignitus-Shared/ignitus-DesignSystem/shared'; +import UniversityOfMelbourne from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png'; +import { Heading1, Paragraph } from '../../ignitus-Shared'; +import * as C from '../styles'; + +export const OpportunityDetailsPage = () => ( + + + + + Project Description + + + + Project Description This project will advance our understanding of the + operation of the law, and of legal specialists, in Scotland from the + late fifteenth to the early seventeenth century. Aberdeen and the + North-East present a rich source-base with which to pursue this theme. + Manuscript sources held in the University’s Special Collections Centre + and in the Aberdeen City & Aberdeenshire Archives are ripe for the + investigation of the range of law courts which functioned in the + region, at franchise, burgh, sheriffdom, and church levels. The era of + the Reformation brought significant change to the nature of church + courts, and the dynamism of the Scottish legal system in this period + promoted the emergence and development of a recognisable legal + profession. Aberdeen and its region allow for an examination of how + the law courts, and lawyers, inter-related and interacted, and from a + ‘provincial’ perspective rather than that of the governmental and + legal hub of Edinburgh. + + + + + This legal history project builds on research recently completed and + underway by Dr Armstrong and Dr Wilson. This includes “Spalding’s + Practicks and the Aberdeen Commissary Court in the Seventeenth + Century“ ( see + + https://www.abdn.ac.uk/giving/hunter-caldwell-awards-2013-440.php + + ), and as such this project is part of a group of topics building on + research funded by the Aberdeen Humanities Fund. It also connects with + the wider Aberdeen Burgh Records Project in RIISS( + + https://www.abdn.ac.uk/riiss/about/aberdeen-burgh-records-project-97.php + + ) and on-going work on Aberdeenshire’s barony courts. + + + + + Candidates should apply for a PhD place in the normal way, stating: + +
    +
  • + + ○ ‘Elphinstone PhD Scholarship’ in the Intended Source of + section + +
  • +
  • + + ○ The name of the lead supervisor in the Name of Proposed + section + +
  • +
  • + + ○The title of the specific research project (subject to any + agreed modifications in discussion with the lead supervisor) in + Outline Summary section + +
  • +
+
+ + Funding Notes + + + + This project is funded by a University of Aberdeen Elphinstone + Scholarship. An Elphinstone Scholarship covers the cost of tuition + fees, + + + + + Selection will be made on the basis of academic merit. + + +
+
+); + +export default OpportunityDetailsPage; diff --git a/src/ignitus-OpportunityDetailsPage/styles.ts b/src/ignitus-OpportunityDetailsPage/styles.ts new file mode 100644 index 00000000..73115618 --- /dev/null +++ b/src/ignitus-OpportunityDetailsPage/styles.ts @@ -0,0 +1,39 @@ +import styled from '@emotion/styled'; +import { + White, + boxShadowColor, +} from '../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/colors'; +import { minimumWidthQuery } from '../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/media'; + +export const Container = styled.div` + box-shadow: 0 0.5rem 1rem 0 ${boxShadowColor}; + background-color: ${White}; + border-radius: 20px; + display: flex; + flex-direction: column; + overflow: hidden; + ${minimumWidthQuery[0]} { + margin: 4rem 1rem 1rem 1rem; + width: 100%; + } + ${minimumWidthQuery[2]} { + margin: 4rem 3rem 1rem 3rem; + width: 100%; + } + ${minimumWidthQuery[3]} { + margin: 4rem 1.5rem 1rem 1.5rem; + width: 100%; + } + ${minimumWidthQuery[4]} { + margin: 4rem 2rem 1rem 2rem; + max-width: 100%; + } + ${minimumWidthQuery[5]} { + margin: 5rem 5rem 1rem 5rem; + max-width: 55rem; + } +`; + +export const Content = styled.div` + margin: 1rem; +`; diff --git a/src/ignitus-Routes/ignitus-PublicRoutes/index.tsx b/src/ignitus-Routes/ignitus-PublicRoutes/index.tsx index 6db2d8dc..d94f0b04 100644 --- a/src/ignitus-Routes/ignitus-PublicRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-PublicRoutes/index.tsx @@ -8,6 +8,7 @@ import { AuthenticationRoutes } from '../ignitus-AuthenticationRoutes'; import { LazyLoader } from '../../ignitus-Shared/ignitus-DesignSystem/shared'; import { StudentProfile } from '../../ignitus-Profile/ignitus-StudentProfile/Components'; import { CareersPage } from '../../ignitus-CareersPage/Components'; +import { OpportunityDetailsPage } from '../../ignitus-OpportunityDetailsPage/Components/index'; /** * Route-based code splitting. @@ -49,6 +50,10 @@ export const PublicRoutes: React.FunctionComponent = () => { /> + diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png new file mode 100644 index 0000000000000000000000000000000000000000..7cac39975484ce67509ada7384f79b24267c330e GIT binary pat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us-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx new file mode 100644 index 00000000..8a4835c9 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx @@ -0,0 +1,44 @@ +import React from 'react'; +import { Opportunity } from '../types'; +import * as S from '../styles'; +import { Heading1, Heading6 } from '../../../ignitus-Atoms/typography'; + +const OpportunityDetailsCard = ({ + title, + subtitle, + description, + fund, + src, +}: Opportunity) => ( + +); + +const Card = ({ title, description, subtitle, src, fund }: Opportunity) => ( + + + {title} + + + + {title} + + + {subtitle} + + + {description} + + + $ {fund} funded + + + +); + +export default OpportunityDetailsCard; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts new file mode 100644 index 00000000..ff438e3d --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts @@ -0,0 +1,85 @@ +import styled from '@emotion/styled'; +import { Black, White, boxShadowColor } from '../../ignitus-Atoms/colors'; +import { Normal, XS, XL, SemiBold } from '../../ignitus-Atoms/fonts'; +import { Paragraph, Heading6 } from '../../ignitus-Atoms/typography'; +import { minimumWidthQuery } from '../../ignitus-Atoms/media'; + +export const Container = styled.div` + box-shadow: 0 0.5rem 1rem 0 ${boxShadowColor}; + background-color: ${White}; + border-radius: 1rem; + display: flex; + overflow: hidden; + align-items: center; + ${minimumWidthQuery[0]} { + flex-direction: column; + margin: 4rem 1rem 1rem 1rem; + width: 100%; + } + ${minimumWidthQuery[2]} { + flex-direction: row; + margin: 4rem 3rem 1rem 3rem; + width: 100%; + } + ${minimumWidthQuery[3]} { + flex-direction: row; + margin: 4rem 1.5rem 1rem 1.5rem; + width: 100%; + } + ${minimumWidthQuery[4]} { + flex-direction: row; + margin: 4rem 2rem 1rem 2rem; + max-width: 100%; + } + ${minimumWidthQuery[5]} { + flex-direction: row; + margin: 5rem 5rem 1rem 5rem; + max-width: 55rem; + } +`; +export const LeftRow = styled.div` + img { + max-width: 15rem; + max-height: 15rem; + margin: 1rem; + border-radius: 1rem; + } +`; + +export const RightRow = styled.div` + display: flex; + flex-direction: column; + ${minimumWidthQuery[0]} { + margin-left: 1rem; + align-items: center; + } + ${minimumWidthQuery[2]} { + margin-left: 1rem; + align-items: flex-start; + } + ${minimumWidthQuery[4]} { + margin-left: 0.5rem; + } + ${minimumWidthQuery[5]} { + margin-left: 0.5rem; + } +`; + +export const Description = styled(Paragraph)` + font-size: ${XL}; +`; + +export const SubTitle = styled.p` + font-weight: ${SemiBold}; + color: ${Black}; + font-size: ${XS}; +`; + +export const Fund = styled(Heading6)` + font-weight: ${Normal}; + font-size: ${XS}; +`; + +export const Wrapper = styled.div` + margin: ${(props: { marginProp?: string }) => props.marginProp}; +`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts new file mode 100644 index 00000000..588784e8 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts @@ -0,0 +1,7 @@ +export type Opportunity = { + title: string; + description: string; + subtitle: string; + src: string; + fund: string; +}; From 8bdab8f5e2da6920d67b4c3836b8b4a7a65ff42a Mon Sep 17 00:00:00 2001 From: Meghana Date: Sun, 17 May 2020 16:11:34 +0530 Subject: [PATCH 02/51] added the Opportunity Details Card in UI Book /interface/opportunityDetailsCard --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 5 +++++ .../ingitus-OpportunityDetailsCard/styles.ts | 1 + .../Components/index.tsx | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components/index.tsx diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 6ee25985..c961c865 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -31,6 +31,7 @@ import { interfaceSideProfile } from '../../ignitus-UserInterfaceBook/Components import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceProgress/index'; import { interfaceSecondaryDropDown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSecondaryDropdown/Components'; import { interfaceToggleButtons } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceToggleButtons/Components'; +import { interfaceOpportunityDetailsCard } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components'; const Container = styled.div` display: flex; @@ -108,6 +109,10 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( path="/interface/opportunitySaved" component={interfaceSavedOpportunity} /> + ( + + + +); + +// export default interfaceOpportunityDetailsCard; From bdaa5fa536dbd966bdb985d513b253ac509ceb96 Mon Sep 17 00:00:00 2001 From: Meghana Date: Sun, 17 May 2020 18:16:05 +0530 Subject: [PATCH 03/51] added Opportunity Side Card /interface/opportunitySideCard --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 5 ++ .../ignitus-Images/img-Png/share.png | Bin 0 -> 415 bytes .../Components/index.tsx | 38 +++++++++++++++ .../ignitus-OpportunitySideCard/styles.ts | 44 ++++++++++++++++++ .../ignitus-OpportunitySideCard/types.ts | 9 ++++ .../Components/index.tsx | 6 +++ 6 files changed, 102 insertions(+) create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/share.png create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index c961c865..41ecdbb5 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -32,6 +32,7 @@ import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Mo import { interfaceSecondaryDropDown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSecondaryDropdown/Components'; import { interfaceToggleButtons } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceToggleButtons/Components'; import { interfaceOpportunityDetailsCard } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components'; +import { interfaceOpportunitySideCard } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components'; const Container = styled.div` display: flex; @@ -113,6 +114,10 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( path="/interface/opportunityDetailsCard" component={interfaceOpportunityDetailsCard} /> + Ni(lnvORsZ_WE6CfslBML}l1U7&XGD1e+%mMSBO@IX3u@v|Z zi5>s>^4{}{+i0Z!AK;7b*}l5cLL&(Ybhbb&9}L!#Hh2RtmjS;nxBvz!fHDS>xfu?6 zbeS30opRvN1=2hKtp0#yO3}PiRBL+B^ZN}vx=xZ$x0h4oRIO1~#ojck_vuJOp(Mqv zHwxIi7gs%9P^$4Vs{!|8GRFv(;Qh#WR09^1@?7ocG6jwl)$51Z*vlG?lT9&;{LvOA zV4x!4YFF{xK)G|S@_@zA)J&(har?N(%TNzk|3TCZ?QdX_!>Kp=;CyfVk-W{wQDZi> zx_&52L(lCfWQkyZp;}9yIwM%x@e!w+RZjyKrI3NAT(F)N@d+3SOg2fQqRIdO002ov JPDHLkV1o5&tv~<( literal 0 HcmV?d00001 diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx new file mode 100644 index 00000000..b189a96d --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import * as S from '../styles'; +import { Opportunity, Cardtypes } from '../types'; +import { Paragraph } from '../../../ignitus-Atoms/typography'; +import ShareIcon from '../../../ignitus-Assets/ignitus-Images/img-Png/share.png'; + +export const InfoCard = ({ location, commitment }: Cardtypes) => ( + + + + + + {' '} + Apply{' '} + + + {' '} + Save{' '} + + + Share icon{' '} + Share{' '} + + + +); + +const Card = ({ title, description }: Opportunity) => ( + + {title} +
+ {description} +
+); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts new file mode 100644 index 00000000..4603fd46 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts @@ -0,0 +1,44 @@ +import styled from '@emotion/styled'; +import { White, GreyBackground } from '../../ignitus-Atoms/colors'; +import { SemiBold } from '../../ignitus-Atoms/fonts'; +import { Heading5 } from '../../ignitus-Atoms/typography'; +import { RoundedButton } from '../../ignitus-Atoms/buttons'; + +export const Container = styled.div` + border-radius: 1rem; + width: 20rem; + margin: 2rem; + background-color: ${White}; + display: flex; + flex-direction: column; + align-items: center; + overflow: hidden; +`; + +export const Wrapper = styled.div` + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: center; + width: 20rem; + padding: 1rem; + border-bottom: 0.2rem solid ${GreyBackground}; + overflow: hidden; +`; + +export const ButtonsWrapper = styled.div` + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: center; + width: 20rem; + padding: 2rem; +`; + +export const Heading = styled(Heading5)` + font-weight: ${SemiBold}; +`; + +export const Button = styled(RoundedButton)` + width: 8rem; +`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts new file mode 100644 index 00000000..6e9e0e59 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts @@ -0,0 +1,9 @@ +export type Opportunity = { + title: string; + description: string; +}; + +export type Cardtypes = { + location: string; + commitment: string; +}; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx new file mode 100644 index 00000000..14e2f9c0 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { InfoCard } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components'; + +export const interfaceOpportunitySideCard = () => ( + +); From 728ef589c0bde965950f49e7c5be9fc7f37a8cf7 Mon Sep 17 00:00:00 2001 From: Meghana Date: Tue, 19 May 2020 01:01:03 +0530 Subject: [PATCH 04/51] UI fixes in desktop view --- .../Components/index.tsx | 185 +++++++++--------- src/ignitus-OpportunityDetailsPage/styles.ts | 38 ++-- .../Components/index.tsx | 2 +- .../ignitus-OpportunitySideCard/styles.ts | 16 +- .../ingitus-OpportunityDetailsCard/styles.ts | 32 +-- 5 files changed, 128 insertions(+), 145 deletions(-) diff --git a/src/ignitus-OpportunityDetailsPage/Components/index.tsx b/src/ignitus-OpportunityDetailsPage/Components/index.tsx index 3f23bf51..04cede4c 100644 --- a/src/ignitus-OpportunityDetailsPage/Components/index.tsx +++ b/src/ignitus-OpportunityDetailsPage/Components/index.tsx @@ -1,103 +1,100 @@ import React from 'react'; import OpportunityDetailsCard from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index'; -import { Container } from '../../ignitus-Shared/ignitus-DesignSystem/shared'; import UniversityOfMelbourne from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png'; import { Heading1, Paragraph } from '../../ignitus-Shared'; -import * as C from '../styles'; +import * as S from '../styles'; +import { InfoCard } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components'; export const OpportunityDetailsPage = () => ( - - - - + + + + Project Description - - - - Project Description This project will advance our understanding of the - operation of the law, and of legal specialists, in Scotland from the - late fifteenth to the early seventeenth century. Aberdeen and the - North-East present a rich source-base with which to pursue this theme. - Manuscript sources held in the University’s Special Collections Centre - and in the Aberdeen City & Aberdeenshire Archives are ripe for the - investigation of the range of law courts which functioned in the - region, at franchise, burgh, sheriffdom, and church levels. The era of - the Reformation brought significant change to the nature of church - courts, and the dynamism of the Scottish legal system in this period - promoted the emergence and development of a recognisable legal - profession. Aberdeen and its region allow for an examination of how - the law courts, and lawyers, inter-related and interacted, and from a - ‘provincial’ perspective rather than that of the governmental and - legal hub of Edinburgh. - - - - - This legal history project builds on research recently completed and - underway by Dr Armstrong and Dr Wilson. This includes “Spalding’s - Practicks and the Aberdeen Commissary Court in the Seventeenth - Century“ ( see - - https://www.abdn.ac.uk/giving/hunter-caldwell-awards-2013-440.php - - ), and as such this project is part of a group of topics building on - research funded by the Aberdeen Humanities Fund. It also connects with - the wider Aberdeen Burgh Records Project in RIISS( - - https://www.abdn.ac.uk/riiss/about/aberdeen-burgh-records-project-97.php - - ) and on-going work on Aberdeenshire’s barony courts. - - - - - Candidates should apply for a PhD place in the normal way, stating: - -
    -
  • - - ○ ‘Elphinstone PhD Scholarship’ in the Intended Source of - section - -
  • -
  • - - ○ The name of the lead supervisor in the Name of Proposed - section - -
  • -
  • - - ○The title of the specific research project (subject to any - agreed modifications in discussion with the lead supervisor) in - Outline Summary section - -
  • -
-
- + + + Project Description This project will advance our understanding of + the operation of the law, and of legal specialists, in Scotland from + the late fifteenth to the early seventeenth century. Aberdeen and + the North-East present a rich source-base with which to pursue this + theme. Manuscript sources held in the University’s Special + Collections Centre and in the Aberdeen City & Aberdeenshire Archives + are ripe for the investigation of the range of law courts which + functioned in the region, at franchise, burgh, sheriffdom, and + church levels. The era of the Reformation brought significant change + to the nature of church courts, and the dynamism of the Scottish + legal system in this period promoted the emergence and development + of a recognisable legal profession. Aberdeen and its region allow + for an examination of how the law courts, and lawyers, inter-related + and interacted, and from a ‘provincial’ perspective rather than that + of the governmental and legal hub of Edinburgh. + + + + + This legal history project builds on research recently completed and + underway by Dr Armstrong and Dr Wilson. This includes “Spalding’s + Practicks and the Aberdeen Commissary Court in the Seventeenth + Century“ ( see + + https://www.abdn.aS.uk/giving/hunter-caldwell-awards-2013-440.php + + ), and as such this project is part of a group of topics building on + research funded by the Aberdeen Humanities Fund. It also connects + with the wider Aberdeen Burgh Records Project in RIISS( + + https://www.abdn.aS.uk/riiss/about/aberdeen-burgh-records-project-97.php + + ) and on-going work on Aberdeenshire’s barony courts. + + + + + Candidates should apply for a PhD place in the normal way, stating: + +
    +
  • + + ○ ‘Elphinstone PhD Scholarship’ in the Intended Source of + section + +
  • +
  • + + ○ The name of the lead supervisor in the Name of Proposed + section + +
  • +
  • + + ○The title of the specific research project (subject to + any agreed modifications in discussion with the lead supervisor) + in Outline Summary section + +
  • +
+
Funding Notes -
- - - This project is funded by a University of Aberdeen Elphinstone - Scholarship. An Elphinstone Scholarship covers the cost of tuition - fees, - - - - - Selection will be made on the basis of academic merit. - - -
-
+ + + This project is funded by a University of Aberdeen Elphinstone + Scholarship. An Elphinstone Scholarship covers the cost of tuition + fees, + + + + + Selection will be made on the basis of academic merit. + + + + + + ); - -export default OpportunityDetailsPage; diff --git a/src/ignitus-OpportunityDetailsPage/styles.ts b/src/ignitus-OpportunityDetailsPage/styles.ts index 73115618..edda809a 100644 --- a/src/ignitus-OpportunityDetailsPage/styles.ts +++ b/src/ignitus-OpportunityDetailsPage/styles.ts @@ -8,32 +8,40 @@ import { minimumWidthQuery } from '../ignitus-Shared/ignitus-DesignSystem/ignitu export const Container = styled.div` box-shadow: 0 0.5rem 1rem 0 ${boxShadowColor}; background-color: ${White}; - border-radius: 20px; + border-radius: 1rem; display: flex; flex-direction: column; + justify-content: space-evenly; overflow: hidden; - ${minimumWidthQuery[0]} { - margin: 4rem 1rem 1rem 1rem; - width: 100%; - } - ${minimumWidthQuery[2]} { - margin: 4rem 3rem 1rem 3rem; - width: 100%; - } + padding: 2rem; + margin-top: 1rem; ${minimumWidthQuery[3]} { - margin: 4rem 1.5rem 1rem 1.5rem; - width: 100%; + width: 55rem; } ${minimumWidthQuery[4]} { - margin: 4rem 2rem 1rem 2rem; - max-width: 100%; + max-width: 55rem; } ${minimumWidthQuery[5]} { - margin: 5rem 5rem 1rem 5rem; max-width: 55rem; } `; export const Content = styled.div` - margin: 1rem; + padding: 1rem 1rem; +`; + +export const ParentContainer = styled.div` + display: flex; + flex-direction: row; + margin: 3rem 2rem; + padding: 2rem; + justify-content: flex-start; + align-items: flex-start; +`; + +export const Column = styled.div` + margin-right: 1.5rem; + dislay: flex; + flex-direction: column; + justify-content: space-between; `; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx index b189a96d..5601fa14 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx @@ -23,7 +23,7 @@ export const InfoCard = ({ location, commitment }: Cardtypes) => ( alt="Share icon" style={{ marginRight: '0.7rem' }} />{' '} - Share{' '} + Share Link{' '} diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts index 4603fd46..5e576d56 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts @@ -1,27 +1,27 @@ import styled from '@emotion/styled'; import { White, GreyBackground } from '../../ignitus-Atoms/colors'; import { SemiBold } from '../../ignitus-Atoms/fonts'; -import { Heading5 } from '../../ignitus-Atoms/typography'; +import { Heading4 } from '../../ignitus-Atoms/typography'; import { RoundedButton } from '../../ignitus-Atoms/buttons'; export const Container = styled.div` border-radius: 1rem; - width: 20rem; - margin: 2rem; + width: 28rem; background-color: ${White}; display: flex; flex-direction: column; align-items: center; overflow: hidden; + max-height: 33rem; `; export const Wrapper = styled.div` display: flex; flex-direction: column; - justify-content: flex-start; + justify-content: center; align-items: center; width: 20rem; - padding: 1rem; + padding: 2.5rem; border-bottom: 0.2rem solid ${GreyBackground}; overflow: hidden; `; @@ -31,14 +31,14 @@ export const ButtonsWrapper = styled.div` flex-direction: column; justify-content: flex-start; align-items: center; - width: 20rem; + width: 25rem; padding: 2rem; `; -export const Heading = styled(Heading5)` +export const Heading = styled(Heading4)` font-weight: ${SemiBold}; `; export const Button = styled(RoundedButton)` - width: 8rem; + width: 12rem; `; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts index 2c84cfdf..fde9613b 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts @@ -11,38 +11,16 @@ export const Container = styled.div` display: flex; overflow: hidden; align-items: center; - padding: 0.5rem; - ${minimumWidthQuery[0]} { - flex-direction: column; - margin: 4rem 1rem 1rem 1rem; - width: 100%; - } - ${minimumWidthQuery[2]} { - flex-direction: row; - margin: 4rem 3rem 1rem 3rem; - width: 100%; - } - ${minimumWidthQuery[3]} { - flex-direction: row; - margin: 4rem 1.5rem 1rem 1.5rem; - width: 100%; - } - ${minimumWidthQuery[4]} { - flex-direction: row; - margin: 4rem 2rem 1rem 2rem; - max-width: 100%; - } - ${minimumWidthQuery[5]} { - flex-direction: row; - margin: 5rem 5rem 1rem 5rem; - max-width: 55rem; - } + padding: 1rem 2rem; + flex-direction: row; + max-width: 55rem; `; + export const LeftRow = styled.div` img { max-width: 15rem; max-height: 15rem; - margin: 1rem; + margin: 0.5rem; border-radius: 1rem; } `; From 73bee1e0076f9ecbe820baf6612440bc9d580ae0 Mon Sep 17 00:00:00 2001 From: Meghana Date: Tue, 19 May 2020 16:47:52 +0530 Subject: [PATCH 05/51] UI fixes --- src/ignitus-OpportunityDetailsPage/styles.ts | 11 +---------- .../ingitus-OpportunityDetailsCard/styles.ts | 17 ++--------------- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/src/ignitus-OpportunityDetailsPage/styles.ts b/src/ignitus-OpportunityDetailsPage/styles.ts index edda809a..0692847d 100644 --- a/src/ignitus-OpportunityDetailsPage/styles.ts +++ b/src/ignitus-OpportunityDetailsPage/styles.ts @@ -3,7 +3,6 @@ import { White, boxShadowColor, } from '../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/colors'; -import { minimumWidthQuery } from '../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/media'; export const Container = styled.div` box-shadow: 0 0.5rem 1rem 0 ${boxShadowColor}; @@ -15,15 +14,7 @@ export const Container = styled.div` overflow: hidden; padding: 2rem; margin-top: 1rem; - ${minimumWidthQuery[3]} { - width: 55rem; - } - ${minimumWidthQuery[4]} { - max-width: 55rem; - } - ${minimumWidthQuery[5]} { - max-width: 55rem; - } + max-width: 55rem; `; export const Content = styled.div` diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts index fde9613b..9154e4c2 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts @@ -2,7 +2,6 @@ import styled from '@emotion/styled'; import { Black, White, boxShadowColor } from '../../ignitus-Atoms/colors'; import { Normal, XS, XL, SemiBold } from '../../ignitus-Atoms/fonts'; import { Paragraph, Heading6 } from '../../ignitus-Atoms/typography'; -import { minimumWidthQuery } from '../../ignitus-Atoms/media'; export const Container = styled.div` box-shadow: 0 0.5rem 1rem 0 ${boxShadowColor}; @@ -28,20 +27,8 @@ export const LeftRow = styled.div` export const RightRow = styled.div` display: flex; flex-direction: column; - ${minimumWidthQuery[0]} { - margin-left: 1rem; - align-items: center; - } - ${minimumWidthQuery[2]} { - margin-left: 1rem; - align-items: flex-start; - } - ${minimumWidthQuery[4]} { - margin-left: 0.5rem; - } - ${minimumWidthQuery[5]} { - margin-left: 0.5rem; - } + align-items: flex-start; + margin-left: 0.5rem; `; export const Description = styled(Paragraph)` From 4d9e9ce060a0ccbd8bb3a169acb57ba27ed29299 Mon Sep 17 00:00:00 2001 From: Meghana Date: Tue, 26 May 2020 23:41:37 +0530 Subject: [PATCH 06/51] added Icons, removed details card and UI fixes --- .../Components/index.tsx | 95 ++++--------------- .../constants.ts | 18 ++++ src/ignitus-OpportunityDetailsPage/styles.ts | 4 +- src/ignitus-OpportunityDetailsPage/types.ts | 10 ++ .../ignitus-Icons/checkIcon/index.tsx | 18 ++++ .../ignitus-Icons/shareIcon/index.tsx | 18 ++++ .../Components/index.tsx | 56 ++++++----- .../ignitus-OpportunitySideCard/styles.ts | 15 ++- .../ignitus-OpportunitySideCard/types.ts | 1 + .../Components/index.tsx | 44 --------- .../ingitus-OpportunityDetailsCard/styles.ts | 51 ---------- .../ingitus-OpportunityDetailsCard/types.ts | 7 -- .../ignitus-Utilities/Components/icon.tsx | 8 ++ .../types/iconsTypes/iconEnums.ts | 2 + .../Components/index.tsx | 18 ---- .../Components/index.tsx | 2 +- 16 files changed, 140 insertions(+), 227 deletions(-) create mode 100644 src/ignitus-OpportunityDetailsPage/constants.ts create mode 100644 src/ignitus-OpportunityDetailsPage/types.ts create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/shareIcon/index.tsx delete mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx delete mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts delete mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts delete mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components/index.tsx diff --git a/src/ignitus-OpportunityDetailsPage/Components/index.tsx b/src/ignitus-OpportunityDetailsPage/Components/index.tsx index 04cede4c..bb265117 100644 --- a/src/ignitus-OpportunityDetailsPage/Components/index.tsx +++ b/src/ignitus-OpportunityDetailsPage/Components/index.tsx @@ -4,97 +4,42 @@ import UniversityOfMelbourne from '../../ignitus-Shared/ignitus-DesignSystem/ign import { Heading1, Paragraph } from '../../ignitus-Shared'; import * as S from '../styles'; import { InfoCard } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components'; +import { ProjectDescription, Funding, DetailsRequired } from '../constants'; +import { DashBoardOpportunity } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-DashBoardOpportunity/Components/DashBoardOpportunity'; export const OpportunityDetailsPage = () => ( - + Project Description - - Project Description This project will advance our understanding of - the operation of the law, and of legal specialists, in Scotland from - the late fifteenth to the early seventeenth century. Aberdeen and - the North-East present a rich source-base with which to pursue this - theme. Manuscript sources held in the University’s Special - Collections Centre and in the Aberdeen City & Aberdeenshire Archives - are ripe for the investigation of the range of law courts which - functioned in the region, at franchise, burgh, sheriffdom, and - church levels. The era of the Reformation brought significant change - to the nature of church courts, and the dynamism of the Scottish - legal system in this period promoted the emergence and development - of a recognisable legal profession. Aberdeen and its region allow - for an examination of how the law courts, and lawyers, inter-related - and interacted, and from a ‘provincial’ perspective rather than that - of the governmental and legal hub of Edinburgh. - - - - - This legal history project builds on research recently completed and - underway by Dr Armstrong and Dr Wilson. This includes “Spalding’s - Practicks and the Aberdeen Commissary Court in the Seventeenth - Century“ ( see - - https://www.abdn.aS.uk/giving/hunter-caldwell-awards-2013-440.php - - ), and as such this project is part of a group of topics building on - research funded by the Aberdeen Humanities Fund. It also connects - with the wider Aberdeen Burgh Records Project in RIISS( - - https://www.abdn.aS.uk/riiss/about/aberdeen-burgh-records-project-97.php - - ) and on-going work on Aberdeenshire’s barony courts. - - - + {ProjectDescription.map(content => ( + + {content} + + ))} Candidates should apply for a PhD place in the normal way, stating: -
    -
  • - - ○ ‘Elphinstone PhD Scholarship’ in the Intended Source of - section - -
  • -
  • - - ○ The name of the lead supervisor in the Name of Proposed - section - -
  • -
  • - - ○The title of the specific research project (subject to - any agreed modifications in discussion with the lead supervisor) - in Outline Summary section - -
  • -
+ {DetailsRequired.map(content => ( + ○{content} + ))}
Funding Notes - - - This project is funded by a University of Aberdeen Elphinstone - Scholarship. An Elphinstone Scholarship covers the cost of tuition - fees, - - - - - Selection will be made on the basis of academic merit. - - + {Funding.map(content => ( + + {content} + + ))}
- +
); diff --git a/src/ignitus-OpportunityDetailsPage/constants.ts b/src/ignitus-OpportunityDetailsPage/constants.ts new file mode 100644 index 00000000..178e4c55 --- /dev/null +++ b/src/ignitus-OpportunityDetailsPage/constants.ts @@ -0,0 +1,18 @@ +import { Props } from './types'; + +export const ProjectDescription = [ + 'Project Description This project will advance our understanding of the operation of the law, and of legal specialists, in Scotland from the late fifteenth to the early seventeenth century. Aberdeen and the North-East present a rich source-base with which to pursue this theme. Manuscript sources held in the University’s Special Collections Centre and in the Aberdeen City & Aberdeenshire Archives are ripe for the investigation of the range of law courts which functioned in the region, at franchise, burgh, sheriffdom, and church levels. The era of the Reformation brought significant change to the nature of church courts, and the dynamism of the Scottish legal system in this period promoted the emergence and development of a recognisable legal profession. Aberdeen and its region allow for an examination of how the law courts, and lawyers, inter-related and interacted, and from a ‘provincial’ perspective rather than that of the governmental and legal hub of Edinburgh.', + 'This legal history project builds on research recently completed and underway by Dr Armstrong and Dr Wilson. This includes “Spalding’s Practicks and the Aberdeen Commissary Court in the Seventeenth Century“ ( see https://www.abdn.ac.uk/giving/hunter-caldwell-awards-2013-440.php), and as such this project is part of a group of topics building on research funded by the Aberdeen Humanities Fund. It also connects with the wider Aberdeen Burgh Records Project in RIISS (https://www.abdn.ac.uk/riiss/about/aberdeen-burgh-records-project-97.php) and on-going work on Aberdeenshire’s barony courts.', +]; + +export const DetailsRequired = [ + 'Elphinstone PhD Scholarship’ in the Intended Source of section', + 'The name of the lead supervisor in the Name of Proposed section', + 'The title of the specific research project (subject to any agreed modifications in discussion with the lead supervisor) in Outline Summary section', +]; +export const Funding = [ + 'This project is funded by a University of Aberdeen Elphinstone Scholarship. An Elphinstone Scholarship covers the cost of tuition fees,', + 'Selection will be made on the basis of academic merit.', +]; + +export const InfoCard = ['']; diff --git a/src/ignitus-OpportunityDetailsPage/styles.ts b/src/ignitus-OpportunityDetailsPage/styles.ts index 0692847d..daac8dcf 100644 --- a/src/ignitus-OpportunityDetailsPage/styles.ts +++ b/src/ignitus-OpportunityDetailsPage/styles.ts @@ -12,13 +12,13 @@ export const Container = styled.div` flex-direction: column; justify-content: space-evenly; overflow: hidden; - padding: 2rem; + padding: 2rem 3rem; margin-top: 1rem; max-width: 55rem; `; export const Content = styled.div` - padding: 1rem 1rem; + padding: 1rem 0rem; `; export const ParentContainer = styled.div` diff --git a/src/ignitus-OpportunityDetailsPage/types.ts b/src/ignitus-OpportunityDetailsPage/types.ts new file mode 100644 index 00000000..256d7972 --- /dev/null +++ b/src/ignitus-OpportunityDetailsPage/types.ts @@ -0,0 +1,10 @@ +export type Props = { + content: string; +}; + +export type InfoCard = { + location: string; + isFunded: boolean; + amount?: string; + commitment: string; +}; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx new file mode 100644 index 00000000..006e0635 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx @@ -0,0 +1,18 @@ +import React, { HTMLAttributes } from 'react'; + +type Props = HTMLAttributes; + +export const CheckIcon = ({ title = 'Check Icon', ...rest }: Props) => ( + + + +); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/shareIcon/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/shareIcon/index.tsx new file mode 100644 index 00000000..11da2c10 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/shareIcon/index.tsx @@ -0,0 +1,18 @@ +import React, { HTMLAttributes } from 'react'; + +type Props = HTMLAttributes; + +export const ShareIcon = ({ title = 'ShareIcon', ...rest }: Props) => ( + + + +); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx index 5601fa14..50ef380b 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx @@ -2,32 +2,38 @@ import React from 'react'; import * as S from '../styles'; import { Opportunity, Cardtypes } from '../types'; import { Paragraph } from '../../../ignitus-Atoms/typography'; -import ShareIcon from '../../../ignitus-Assets/ignitus-Images/img-Png/share.png'; +import { AppIcon } from '../../../../types/iconsTypes/iconEnums'; -export const InfoCard = ({ location, commitment }: Cardtypes) => ( - - - - - - {' '} - Apply{' '} - - - {' '} - Save{' '} - - - Share icon{' '} - Share Link{' '} - - - -); +export const InfoCard = ({ location, commitment, salary }: Cardtypes) => { + const [buttonText, setButtonText] = React.useState(
Apply
); + const handleClick = e => { + setButtonText( +
+ Applied +
, + ); + }; + return ( + + + + + + + {' '} + {buttonText}{' '} + + + {' '} + Save{' '} + + + Share Link{' '} + + + + ); +}; const Card = ({ title, description }: Opportunity) => ( diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts index 5e576d56..dc29dc20 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts @@ -1,18 +1,19 @@ import styled from '@emotion/styled'; -import { White, GreyBackground } from '../../ignitus-Atoms/colors'; +import { White, GreyBackground, IgnitusBlue } from '../../ignitus-Atoms/colors'; import { SemiBold } from '../../ignitus-Atoms/fonts'; import { Heading4 } from '../../ignitus-Atoms/typography'; import { RoundedButton } from '../../ignitus-Atoms/buttons'; +import I from '../../../ignitus-Utilities/Components/icon'; export const Container = styled.div` border-radius: 1rem; - width: 28rem; + width: 26rem; background-color: ${White}; display: flex; flex-direction: column; align-items: center; overflow: hidden; - max-height: 33rem; + max-height: 35rem; `; export const Wrapper = styled.div` @@ -21,7 +22,7 @@ export const Wrapper = styled.div` justify-content: center; align-items: center; width: 20rem; - padding: 2.5rem; + padding: 3rem; border-bottom: 0.2rem solid ${GreyBackground}; overflow: hidden; `; @@ -42,3 +43,9 @@ export const Heading = styled(Heading4)` export const Button = styled(RoundedButton)` width: 12rem; `; + +export const Icon = styled(I)` + fill: ${IgnitusBlue}; + // height: 1rem; + // width: 1rem; +`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts index 6e9e0e59..acf0a40f 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/types.ts @@ -6,4 +6,5 @@ export type Opportunity = { export type Cardtypes = { location: string; commitment: string; + salary: string; }; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx deleted file mode 100644 index 8a4835c9..00000000 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import React from 'react'; -import { Opportunity } from '../types'; -import * as S from '../styles'; -import { Heading1, Heading6 } from '../../../ignitus-Atoms/typography'; - -const OpportunityDetailsCard = ({ - title, - subtitle, - description, - fund, - src, -}: Opportunity) => ( - -); - -const Card = ({ title, description, subtitle, src, fund }: Opportunity) => ( - - - {title} - - - - {title} - - - {subtitle} - - - {description} - - - $ {fund} funded - - - -); - -export default OpportunityDetailsCard; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts deleted file mode 100644 index 9154e4c2..00000000 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/styles.ts +++ /dev/null @@ -1,51 +0,0 @@ -import styled from '@emotion/styled'; -import { Black, White, boxShadowColor } from '../../ignitus-Atoms/colors'; -import { Normal, XS, XL, SemiBold } from '../../ignitus-Atoms/fonts'; -import { Paragraph, Heading6 } from '../../ignitus-Atoms/typography'; - -export const Container = styled.div` - box-shadow: 0 0.5rem 1rem 0 ${boxShadowColor}; - background-color: ${White}; - border-radius: 1rem; - display: flex; - overflow: hidden; - align-items: center; - padding: 1rem 2rem; - flex-direction: row; - max-width: 55rem; -`; - -export const LeftRow = styled.div` - img { - max-width: 15rem; - max-height: 15rem; - margin: 0.5rem; - border-radius: 1rem; - } -`; - -export const RightRow = styled.div` - display: flex; - flex-direction: column; - align-items: flex-start; - margin-left: 0.5rem; -`; - -export const Description = styled(Paragraph)` - font-size: ${XL}; -`; - -export const SubTitle = styled.p` - font-weight: ${SemiBold}; - color: ${Black}; - font-size: ${XS}; -`; - -export const Fund = styled(Heading6)` - font-weight: ${Normal}; - font-size: ${XS}; -`; - -export const Wrapper = styled.div` - margin: ${(props: { marginProp?: string }) => props.marginProp}; -`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts deleted file mode 100644 index 588784e8..00000000 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/types.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type Opportunity = { - title: string; - description: string; - subtitle: string; - src: string; - fund: string; -}; diff --git a/src/ignitus-Shared/ignitus-Utilities/Components/icon.tsx b/src/ignitus-Shared/ignitus-Utilities/Components/icon.tsx index 1d820ac1..1ef316a5 100644 --- a/src/ignitus-Shared/ignitus-Utilities/Components/icon.tsx +++ b/src/ignitus-Shared/ignitus-Utilities/Components/icon.tsx @@ -48,6 +48,8 @@ import StarCircleIcon from '../../ignitus-DesignSystem/ignitus-Assets/ignitus-Ic import BarsIcon from '../../ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/barsIcon'; import GridIcon from '../../ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/gridIcon'; import SearchIcon from '../../ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/SearchIcon/index'; +import { CheckIcon } from '../../ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index'; +import { ShareIcon } from '../../ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/shareIcon/index'; type Props = { name: AppIcon; @@ -82,6 +84,9 @@ const Icon = ({ name, ...rest }: Props) => { case AppIcon.CrossIcon: return ; + case AppIcon.CheckIcon: + return ; + case AppIcon.SearchIcon: return ; @@ -179,6 +184,9 @@ const Icon = ({ name, ...rest }: Props) => { case AppIcon.SlackIcon: return ; + case AppIcon.ShareIcon: + return ; + case AppIcon.MediumIcon: return ; diff --git a/src/ignitus-Shared/types/iconsTypes/iconEnums.ts b/src/ignitus-Shared/types/iconsTypes/iconEnums.ts index 23ed2d3b..f073e833 100644 --- a/src/ignitus-Shared/types/iconsTypes/iconEnums.ts +++ b/src/ignitus-Shared/types/iconsTypes/iconEnums.ts @@ -6,6 +6,7 @@ export enum AppIcon { CopyIcon = 'CopyIcon', ContributionIcon = 'ContributionIcon', CameraIcon = 'CameraIcon', + CheckIcon = 'CheckIcon', LinkedInIcon = 'LinkedInIcon', PlusIcon = 'PlusIcon', HeartIcon = 'HeartIcon', @@ -16,6 +17,7 @@ export enum AppIcon { SearchIcon = 'SearchIcon', SaveIcon = 'SaveIcon', StarCircleIcon = 'StarCircle', + ShareIcon = 'ShareIcon', MessageIcon = 'MessageIcon', NetworkIcon = 'NetworkIcon', MentorsIcon = 'MentorsIcon', diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components/index.tsx deleted file mode 100644 index 522626ef..00000000 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components/index.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; -import OpportunityDetailsCard from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components'; -import UniversityOfMelbourne from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png'; -import { Container } from '../../../../../ignitus-Shared/ignitus-DesignSystem/shared'; - -export const interfaceOpportunityDetailsCard = () => ( - - - -); - -// export default interfaceOpportunityDetailsCard; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx index 14e2f9c0..f72cbcc7 100644 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components/index.tsx @@ -2,5 +2,5 @@ import React from 'react'; import { InfoCard } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components'; export const interfaceOpportunitySideCard = () => ( - + ); From 78f1ba2e5a9bdee9c059ce2cbe4b81a1f47c866f Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 27 May 2020 00:13:05 +0530 Subject: [PATCH 07/51] removed margin of opportunity card --- .../ignitus-Organisms/ignitus-DashBoardOpportunity/style.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-DashBoardOpportunity/style.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-DashBoardOpportunity/style.ts index e28e8060..b59feda2 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-DashBoardOpportunity/style.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-DashBoardOpportunity/style.ts @@ -9,7 +9,6 @@ export const Container = styled.div` background-color: ${C.White}; border-radius: 20px; display: flex; - margin: 0.5rem; `; export const Row = styled(flexibleRowDiv)``; From a7411d97a5bc42101ce9ac4a863a9639629af820 Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 27 May 2020 13:07:12 +0530 Subject: [PATCH 08/51] added props and some fixes --- .../Components/index.tsx | 29 ++++++++++++------- .../constants.ts | 21 ++++++++++++-- src/ignitus-OpportunityDetailsPage/types.ts | 10 ------- .../ignitus-UserInterfaceBookRoutes/index.tsx | 5 ---- .../Components/index.tsx | 2 +- .../ignitus-OpportunitySideCard/styles.ts | 4 +-- 6 files changed, 38 insertions(+), 33 deletions(-) delete mode 100644 src/ignitus-OpportunityDetailsPage/types.ts diff --git a/src/ignitus-OpportunityDetailsPage/Components/index.tsx b/src/ignitus-OpportunityDetailsPage/Components/index.tsx index bb265117..e5983fbe 100644 --- a/src/ignitus-OpportunityDetailsPage/Components/index.tsx +++ b/src/ignitus-OpportunityDetailsPage/Components/index.tsx @@ -1,22 +1,27 @@ import React from 'react'; -import OpportunityDetailsCard from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ingitus-OpportunityDetailsCard/Components/index'; -import UniversityOfMelbourne from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/UniversityOfMelbourne.png'; import { Heading1, Paragraph } from '../../ignitus-Shared'; import * as S from '../styles'; import { InfoCard } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components'; -import { ProjectDescription, Funding, DetailsRequired } from '../constants'; +import { + ProjectDescription, + Funding, + DetailsRequired, + InfoCardDetails, + OpportunityCardDetails, +} from '../constants'; import { DashBoardOpportunity } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-DashBoardOpportunity/Components/DashBoardOpportunity'; export const OpportunityDetailsPage = () => ( - - + {OpportunityCardDetails.map(({ title, description, subtitle, src }) => ( + + ))} Project Description @@ -40,6 +45,8 @@ export const OpportunityDetailsPage = () => ( ))} - + {InfoCardDetails.map(({ location, commitment, salary }) => ( + + ))} ); diff --git a/src/ignitus-OpportunityDetailsPage/constants.ts b/src/ignitus-OpportunityDetailsPage/constants.ts index 178e4c55..16608353 100644 --- a/src/ignitus-OpportunityDetailsPage/constants.ts +++ b/src/ignitus-OpportunityDetailsPage/constants.ts @@ -1,5 +1,3 @@ -import { Props } from './types'; - export const ProjectDescription = [ 'Project Description This project will advance our understanding of the operation of the law, and of legal specialists, in Scotland from the late fifteenth to the early seventeenth century. Aberdeen and the North-East present a rich source-base with which to pursue this theme. Manuscript sources held in the University’s Special Collections Centre and in the Aberdeen City & Aberdeenshire Archives are ripe for the investigation of the range of law courts which functioned in the region, at franchise, burgh, sheriffdom, and church levels. The era of the Reformation brought significant change to the nature of church courts, and the dynamism of the Scottish legal system in this period promoted the emergence and development of a recognisable legal profession. Aberdeen and its region allow for an examination of how the law courts, and lawyers, inter-related and interacted, and from a ‘provincial’ perspective rather than that of the governmental and legal hub of Edinburgh.', 'This legal history project builds on research recently completed and underway by Dr Armstrong and Dr Wilson. This includes “Spalding’s Practicks and the Aberdeen Commissary Court in the Seventeenth Century“ ( see https://www.abdn.ac.uk/giving/hunter-caldwell-awards-2013-440.php), and as such this project is part of a group of topics building on research funded by the Aberdeen Humanities Fund. It also connects with the wider Aberdeen Burgh Records Project in RIISS (https://www.abdn.ac.uk/riiss/about/aberdeen-burgh-records-project-97.php) and on-going work on Aberdeenshire’s barony courts.', @@ -15,4 +13,21 @@ export const Funding = [ 'Selection will be made on the basis of academic merit.', ]; -export const InfoCard = ['']; +export const InfoCardDetails = [ + { + location: 'Australia', + commitment: 'Full-Time', + salary: 'funded | ¢10/hr', + }, +]; + +export const OpportunityCardDetails = [ + { + title: 'PhD Project', + description: + 'Church and civil courts in late medieval and early modern Scotland.', + subtitle: 'By The University of Melbourne', + src: + 'https://storage.googleapis.com/ignitus_assets/ig-opportunities/universityOfMelbourne.png', + }, +]; diff --git a/src/ignitus-OpportunityDetailsPage/types.ts b/src/ignitus-OpportunityDetailsPage/types.ts deleted file mode 100644 index 256d7972..00000000 --- a/src/ignitus-OpportunityDetailsPage/types.ts +++ /dev/null @@ -1,10 +0,0 @@ -export type Props = { - content: string; -}; - -export type InfoCard = { - location: string; - isFunded: boolean; - amount?: string; - commitment: string; -}; diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 605ea812..907714ae 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -32,7 +32,6 @@ import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Mo import { interfaceSecondaryDropDown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSecondaryDropdown/Components'; import { interfaceScrollBar } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceScrollBar/Components'; import { interfaceToggleButtons } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceToggleButtons/Components'; -import { interfaceOpportunityDetailsCard } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityDetailsCard/Components'; import { interfaceOpportunitySideCard } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunitySideCard/Components'; const Container = styled.div` @@ -111,10 +110,6 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( path="/interface/opportunitySaved" component={interfaceSavedOpportunity} /> - { Save{' '} - Share Link{' '} + Share Link diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts index dc29dc20..a97c1046 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/styles.ts @@ -41,11 +41,9 @@ export const Heading = styled(Heading4)` `; export const Button = styled(RoundedButton)` - width: 12rem; + width: 11rem; `; export const Icon = styled(I)` fill: ${IgnitusBlue}; - // height: 1rem; - // width: 1rem; `; From fcdb0a6476540b3d7c4e0c8129de51302e053819 Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 27 May 2020 13:15:21 +0530 Subject: [PATCH 09/51] deepscan fixes --- .../Components/index.tsx | 16 +++++++++++----- src/ignitus-OpportunityDetailsPage/constants.ts | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/ignitus-OpportunityDetailsPage/Components/index.tsx b/src/ignitus-OpportunityDetailsPage/Components/index.tsx index e5983fbe..f0c7fbf3 100644 --- a/src/ignitus-OpportunityDetailsPage/Components/index.tsx +++ b/src/ignitus-OpportunityDetailsPage/Components/index.tsx @@ -16,6 +16,7 @@ export const OpportunityDetailsPage = () => ( {OpportunityCardDetails.map(({ title, description, subtitle, src }) => ( ( Project Description {ProjectDescription.map(content => ( - + {content} ))} @@ -34,19 +35,24 @@ export const OpportunityDetailsPage = () => ( Candidates should apply for a PhD place in the normal way, stating: {DetailsRequired.map(content => ( - ○{content} + ○{content} ))} Funding Notes {Funding.map(content => ( - + {content} ))} - {InfoCardDetails.map(({ location, commitment, salary }) => ( - + {InfoCardDetails.map(({ index, location, commitment, salary }) => ( + ))} ); diff --git a/src/ignitus-OpportunityDetailsPage/constants.ts b/src/ignitus-OpportunityDetailsPage/constants.ts index 16608353..565edbe0 100644 --- a/src/ignitus-OpportunityDetailsPage/constants.ts +++ b/src/ignitus-OpportunityDetailsPage/constants.ts @@ -15,6 +15,7 @@ export const Funding = [ export const InfoCardDetails = [ { + index: 1, location: 'Australia', commitment: 'Full-Time', salary: 'funded | ¢10/hr', From 67e61cefb19dda179df0f0f7a257b360b63e9610 Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 27 May 2020 14:54:55 +0530 Subject: [PATCH 10/51] fixes --- .../ignitus-Assets/ignitus-Icons/checkIcon/index.tsx | 3 +++ .../ignitus-Assets/ignitus-Icons/shareIcon/index.tsx | 3 +++ .../__snapshots__/DashBoardOpportunity.test.tsx.snap | 1 - .../ignitus-OpportunitySideCard/Components/index.tsx | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx index 006e0635..43ca3572 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Icons/checkIcon/index.tsx @@ -9,7 +9,10 @@ export const CheckIcon = ({ title = 'Check Icon', ...rest }: Props) => ( height="17" fill="none" viewBox="0 0 23 17" + aria-label={title} + {...rest} > + {title} ( height="20" fill="none" viewBox="0 0 22 20" + aria-label={title} + {...rest} > + {title} should render 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - margin: 0.5rem; } .emotion-5 { diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx index 3b3a39ac..ff871920 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-OpportunitySideCard/Components/index.tsx @@ -6,7 +6,7 @@ import { AppIcon } from '../../../../types/iconsTypes/iconEnums'; export const InfoCard = ({ location, commitment, salary }: Cardtypes) => { const [buttonText, setButtonText] = React.useState(
Apply
); - const handleClick = e => { + const handleClick = () => { setButtonText(
Applied From e5c41322376e507fb4f5c3ba5725c6e2a50f236a Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 10 Jun 2020 00:12:11 +0530 Subject: [PATCH 11/51] nav dropdown --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 2 ++ .../ignitus-navDropdown/Components/index.tsx | 18 +++++++++++++++ .../ignitus-navDropdown/styles.ts | 22 +++++++++++++++++++ .../ignitus-navDropdown/types.ts | 3 +++ .../interfaceNavDropdown/Components/index.tsx | 18 +++++++++++++++ .../Atoms/interfaceNavDropdown/constants.ts | 4 ++++ .../Atoms/interfaceNavDropdown/styles.ts | 9 ++++++++ 7 files changed, 76 insertions(+) create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx create mode 100644 src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/styles.ts diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 4fc45ea6..70aae1be 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -34,6 +34,7 @@ import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Mo import { interfaceSecondaryDropDown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSecondaryDropdown/Components'; import { interfaceScrollBar } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceScrollBar/Components'; import { interfaceToggleButtons } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceToggleButtons/Components'; +import { interfaceNavDropdown } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components'; const Container = styled.div` display: flex; @@ -138,6 +139,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( path="/interface/toggleButtons" component={interfaceToggleButtons} /> + diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx new file mode 100644 index 00000000..52788569 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import * as S from '../styles'; +import { Props } from '../types'; +import { Heading5 } from '../../typography'; + +export const NavDropdown = ({ options }: Props) => { + return ( + + + {options.map(details => ( + + {details} + + ))} + + + ); +}; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts new file mode 100644 index 00000000..c05d10ae --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts @@ -0,0 +1,22 @@ +import styled from '@emotion/styled'; +import { White, IgnitusBlue, GreyBackground } from '../colors'; + +export const Container = styled.div` + background-color: ${White}; + width: 10rem; + border-radius: 1rem; + overflow: hidden; +`; + +export const Option = styled.div` + border-bottom: 0.2rem solid ${GreyBackground}; + height: 2.5rem; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + &:hover { + background-color: ${IgnitusBlue}; + color: ${White}; + } +`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts new file mode 100644 index 00000000..2078933d --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts @@ -0,0 +1,3 @@ +export type Props = { + options: string[]; +}; diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx new file mode 100644 index 00000000..bd177fb7 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import * as S from '../styles'; +import { NavDropdown } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components'; +import { Options } from '../constants'; +import { Heading1 } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/typography'; + +export const interfaceNavDropdown = () => ( + + Dashboard Nav DropDown +
+ + + +
+); diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts new file mode 100644 index 00000000..e2856119 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts @@ -0,0 +1,4 @@ +export const Options = { + buttonTitle: 'Sophia', + options: ['Dashboard', 'Profile', 'Settings', 'Privacy Policy', 'Log out'], +}; diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/styles.ts b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/styles.ts new file mode 100644 index 00000000..ecb6dab4 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/styles.ts @@ -0,0 +1,9 @@ +import styled from '@emotion/styled'; + +export const Container = styled.div` + margin: 5rem; + width: 50rem; +`; +export const Component = styled.div` + margin: 2rem; +`; From f621ce166b14b823ec30ab432211d686cbb56f7d Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 10 Jun 2020 00:14:17 +0530 Subject: [PATCH 12/51] removed button content fixes --- .../Atoms/interfaceNavDropdown/Components/index.tsx | 5 +---- .../Components/Atoms/interfaceNavDropdown/constants.ts | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx index bd177fb7..3835430d 100644 --- a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx @@ -9,10 +9,7 @@ export const interfaceNavDropdown = () => ( Dashboard Nav DropDown
- + ); diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts index e2856119..4d0dd43a 100644 --- a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts @@ -1,4 +1,3 @@ export const Options = { - buttonTitle: 'Sophia', options: ['Dashboard', 'Profile', 'Settings', 'Privacy Policy', 'Log out'], }; From b9539452af8d51c68f4d84870e7bfbe819a40811 Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 10 Jun 2020 00:14:17 +0530 Subject: [PATCH 13/51] removed button content --- .../Atoms/interfaceNavDropdown/Components/index.tsx | 5 +---- .../Components/Atoms/interfaceNavDropdown/constants.ts | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx index bd177fb7..3835430d 100644 --- a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx @@ -9,10 +9,7 @@ export const interfaceNavDropdown = () => ( Dashboard Nav DropDown
- + ); diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts index e2856119..4d0dd43a 100644 --- a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts @@ -1,4 +1,3 @@ export const Options = { - buttonTitle: 'Sophia', options: ['Dashboard', 'Profile', 'Settings', 'Privacy Policy', 'Log out'], }; From 445b3768aeacaa2c7ae1968b2dba2e98ce628b56 Mon Sep 17 00:00:00 2001 From: Meghana Date: Wed, 10 Jun 2020 00:20:37 +0530 Subject: [PATCH 14/51] deepscan fixes --- .../ignitus-Atoms/ignitus-navDropdown/Components/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx index 52788569..286694e5 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx @@ -8,8 +8,8 @@ export const NavDropdown = ({ options }: Props) => { {options.map(details => ( - - {details} + + {details} ))} From b63457039c4beca24f49cfe206c63ef13e434f86 Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Wed, 10 Jun 2020 17:52:29 +0100 Subject: [PATCH 15/51] display overlay --- .../Components/index.tsx | 36 +++++++++++++++---- .../ignitus-Navigation/styles.ts | 8 +++++ 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/src/ignitus-Dashboard/ignitus-DashboardHeader/Components/index.tsx b/src/ignitus-Dashboard/ignitus-DashboardHeader/Components/index.tsx index 3543bc86..d2bd868d 100644 --- a/src/ignitus-Dashboard/ignitus-DashboardHeader/Components/index.tsx +++ b/src/ignitus-Dashboard/ignitus-DashboardHeader/Components/index.tsx @@ -1,19 +1,32 @@ /* eslint-disable jsx-a11y/anchor-is-valid */ -import React from 'react'; +import React, { useState } from 'react'; -import { Redirect } from 'react-router-dom'; +import { withRouter } from 'react-router-dom'; import { withErrorBoundary, AppIcon, useToggle } from '../../../ignitus-Shared'; import * as N from '../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/styles'; +import { Overlay } from '../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components'; + +const OVERLAY_DURATION = 600; export const DashBoardNavigation: React.FC = withErrorBoundary( - ({ logUserOut }: any) => { + withRouter(({ logUserOut, history }: any) => { + const [visibleLogoutOverlay, setVisibleLogoutOverlay] = useState(false); + const [isExpanded, toogleIsExpanded] = useToggle(false); + const logout = () => { logUserOut(); localStorage.clear(); - return ; + history.push('/'); + }; + + const onClickLogout = () => { + setVisibleLogoutOverlay(true); + + setTimeout(() => { + logout(); + }, OVERLAY_DURATION); }; - const [isExpanded, toogleIsExpanded] = useToggle(false); const userInformation: string | null = localStorage.getItem('data'); let userEmail: string = ''; let userType: string = ''; @@ -47,11 +60,20 @@ export const DashBoardNavigation: React.FC = withErrorBoundary( {userEmail} - + Logout + {visibleLogoutOverlay && ( + + + + )} + ); - }, + }), ); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/styles.ts index 21e9d5b2..0ada8961 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/styles.ts @@ -122,3 +122,11 @@ export const Burger = styled(Icon, { shouldForwardProp: isValidProps })< top: 1.2rem; } `; + +export const Fullscreen = styled.div` + position: fixed; + top: 0; + left: 0; + height: 100vh; + width: 100vw; +`; From d61261d930081db669845792e8f77b5bb59ef5a8 Mon Sep 17 00:00:00 2001 From: Meghana Date: Thu, 11 Jun 2020 15:40:44 +0530 Subject: [PATCH 16/51] added functionality --- .../ignitus-navDropdown/Components/index.tsx | 50 +++++++++++++++---- .../ignitus-navDropdown/styles.ts | 32 ++++++++---- .../ignitus-navDropdown/types.ts | 8 ++- .../Common/__snapshots__/Layer.test.tsx.snap | 18 ++++++- .../ignitus-SideNavigation/Common/styles.ts | 12 +++-- .../ignitus-SideNavigation/Common/types.ts | 7 ++- .../ignitus-DashboardSideNavigation/style.ts | 2 + .../ignitus-MessageSideNavigation/style.ts | 1 + .../Components/index.tsx | 4 +- .../style.ts | 3 +- .../interfaceNavDropdown/Components/index.tsx | 4 +- .../Atoms/interfaceNavDropdown/constants.ts | 24 +++++++-- 12 files changed, 128 insertions(+), 37 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx index 286694e5..a148716c 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components/index.tsx @@ -1,18 +1,50 @@ import React from 'react'; +import { Layer } from '../../../ignitus-Organisms/ignitus-SideNavigation/Common/styles'; import * as S from '../styles'; import { Props } from '../types'; -import { Heading5 } from '../../typography'; +import { AppIcon } from '../../../../types/iconsTypes/iconEnums'; -export const NavDropdown = ({ options }: Props) => { +export const NavDropdown = ({ options, name }: Props) => { + const [content, setContent] = React.useState(false); return ( - - {options.map(details => ( - - {details} - - ))} - + setContent(!content)}> + + {name} + + + {content ? ( + + {options.map(({ details, isLast }: any) => ( +
+ {isLast === true ? ( + + {' '} +
{details}
+
+ ) : ( + + {' '} +
{details}
{' '} +
+ )} +
+ ))} +
+ ) : null}
); }; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts index c05d10ae..3b396dfb 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts @@ -1,22 +1,32 @@ import styled from '@emotion/styled'; -import { White, IgnitusBlue, GreyBackground } from '../colors'; +import { White, IgnitusBlue } from '../colors'; +import { Icon } from '../../../ignitus-Utilities/Components/icon'; +import { StyleProps } from './types'; +import { MD } from '../fonts'; export const Container = styled.div` background-color: ${White}; - width: 10rem; + width: 12rem; border-radius: 1rem; overflow: hidden; + left: 0rem; + margin-top: 1rem; `; -export const Option = styled.div` - border-bottom: 0.2rem solid ${GreyBackground}; - height: 2.5rem; +export const NavItem = styled.div` display: flex; - justify-content: center; + justify-content: flex-end; align-items: center; - overflow: hidden; - &:hover { - background-color: ${IgnitusBlue}; - color: ${White}; - } + color: ${IgnitusBlue}; + cursor: pointer; + font-size: ${MD}; + width: 12rem; +`; + +export const StyledIcon = styled(Icon)` + height: 1.5rem; + width: 1.5rem; + fill: ${IgnitusBlue}; + margin-left: ${props => (props.marginLeft ? '0.5rem' : '')}; + margin-right: ${props => (props.marginRight ? '0.5rem' : '')}; `; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts index 2078933d..0a97b53c 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/types.ts @@ -1,3 +1,9 @@ export type Props = { - options: string[]; + options: object[]; + name: string; +}; + +export type StyleProps = { + marginLeft?: boolean; + marginRight?: boolean; }; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap index 1ccf1870..7666e2d3 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap @@ -7,14 +7,28 @@ exports[` should render 1`] = ` cursor: pointer; font-size: 18px; font-weight: 400; - margin-top: none; - margin-bottom: none; padding: 1rem 0; width: 100%; } +.emotion-1 .NavDropdown { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} + .emotion-1:hover { background-color: #000066; + color: #ffffff; } .emotion-1:hover p { diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts index 61935bec..68368264 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts @@ -1,7 +1,7 @@ import styled from '@emotion/styled'; import { White, IgnitusBlue, GreyLight } from '../../../ignitus-Atoms/colors'; -import { MD, Normal } from '../../../ignitus-Atoms/fonts'; +import { MD, SemiBold, Normal } from '../../../ignitus-Atoms/fonts'; import { StyledLayerProps } from './types'; export const Layer = styled.div` @@ -9,13 +9,17 @@ export const Layer = styled.div` color: ${IgnitusBlue}; cursor: pointer; font-size: ${MD}; - font-weight: ${Normal}; - margin-top: ${props => (props.marginTop ? '0.5rem' : 'none')}; - margin-bottom: ${props => (props.marginBottom ? '0.5rem' : 'none')}; + font-weight: ${props => (props.semiBold ? `${SemiBold}` : `${Normal}`)}; padding: 1rem 0; width: 100%; + .NavDropdown { + display: flex; + align-items: center; + justify-content: center; + } &:hover { background-color: ${IgnitusBlue}; + color: ${White}; p { color: ${White}; } diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/types.ts index e6f5b584..888ffea9 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/types.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/types.ts @@ -3,6 +3,7 @@ export interface LayerProps { border?: boolean; marginTop?: boolean; marginBottom?: boolean; + semiBold?: boolean; prepend?: React.ReactNode; append?: React.ReactNode; [rest: string]: any; @@ -10,7 +11,9 @@ export interface LayerProps { export type StyledLayerProps = { border: boolean; - marginTop: boolean; - marginBottom: boolean; + marginTop?: boolean; + marginBottom?: boolean; containIcon?: boolean; + alignCenter?: boolean; + semiBold?: boolean; }; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-DashboardSideNavigation/style.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-DashboardSideNavigation/style.ts index 383c5900..8469e59f 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-DashboardSideNavigation/style.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-DashboardSideNavigation/style.ts @@ -14,6 +14,7 @@ export const SettingsContainer = styled(flexibleColDiv)` border-radius: 16px; box-shadow: 0 2px 4px 0 ${boxShadowColor}; width: 14rem; + overflow: hidden; `; export const Layer = styled(CommonLayer)` @@ -21,6 +22,7 @@ export const Layer = styled(CommonLayer)` align-items: center; justify-content: flex-start; flex-direction: row; + height: 100%; `; export const SideNavIcon = styled(Icon)` diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-MessageSideNavigation/style.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-MessageSideNavigation/style.ts index f774ba77..8e2247e3 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-MessageSideNavigation/style.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-MessageSideNavigation/style.ts @@ -10,6 +10,7 @@ export const MessageContainer = styled(flexibleColDiv)` box-shadow: 0 2px 4px 0 ${boxShadowColor}; width: 14rem; height: 16rem; + overflow: hidden; `; export const Layer = styled(CommonLayer)` diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/Components/index.tsx index 38f7f06c..3c1b47b9 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/Components/index.tsx @@ -5,12 +5,12 @@ import * as S from '../style'; export const UserSettingsSideNavigation = () => { return ( - + - + ); }; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/style.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/style.ts index 95c10df2..7a453642 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/style.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/style.ts @@ -8,7 +8,8 @@ export const SettingsContainer = styled(flexibleColDiv)` border-radius: 16px; box-shadow: 0 2px 4px 0 ${boxShadowColor}; width: 14rem; - height: 22rem; + height: 19.5rem; + overflow: hidden; `; export const Layer = styled(CommonLayer)` diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx index 3835430d..67d4992e 100644 --- a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/Components/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import * as S from '../styles'; import { NavDropdown } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/Components'; -import { Options } from '../constants'; +import { options, name } from '../constants'; import { Heading1 } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/typography'; export const interfaceNavDropdown = () => ( @@ -9,7 +9,7 @@ export const interfaceNavDropdown = () => ( Dashboard Nav DropDown
- + ); diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts index 4d0dd43a..38fb9a1a 100644 --- a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceNavDropdown/constants.ts @@ -1,3 +1,21 @@ -export const Options = { - options: ['Dashboard', 'Profile', 'Settings', 'Privacy Policy', 'Log out'], -}; +export const options = [ + { + details: 'Dashboard', + isLast: false, + }, + { + details: 'Profile', + isLast: false, + }, + { + details: 'Settings', + isLast: false, + }, + { details: 'Privacy Policy', isLast: false }, + { + details: 'Log out', + isLast: true, + }, +]; + +export const name = 'Sophia'; From 973c8d1f6c40f8876d709f079000c9259bcdb295 Mon Sep 17 00:00:00 2001 From: Meghana Date: Thu, 11 Jun 2020 15:47:38 +0530 Subject: [PATCH 17/51] minor UI fix --- .../ignitus-Atoms/ignitus-navDropdown/styles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts index 3b396dfb..9f6d7393 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-navDropdown/styles.ts @@ -7,7 +7,7 @@ import { MD } from '../fonts'; export const Container = styled.div` background-color: ${White}; width: 12rem; - border-radius: 1rem; + border-radius: 1rem 0rem 1rem 1rem; overflow: hidden; left: 0rem; margin-top: 1rem; From 09552203c05c1e3f9835cd15f91a5301c09976f4 Mon Sep 17 00:00:00 2001 From: Meghana Date: Thu, 11 Jun 2020 22:37:17 +0530 Subject: [PATCH 18/51] fixes --- .../Common/__snapshots__/Layer.test.tsx.snap | 2 ++ .../ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap index 7666e2d3..a82d6b25 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/__snapshots__/Layer.test.tsx.snap @@ -9,6 +9,8 @@ exports[` should render 1`] = ` font-weight: 400; padding: 1rem 0; width: 100%; + margin-top: none; + margin-bottom: none; } .emotion-1 .NavDropdown { diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts index 68368264..d280bb4d 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/Common/styles.ts @@ -12,6 +12,8 @@ export const Layer = styled.div` font-weight: ${props => (props.semiBold ? `${SemiBold}` : `${Normal}`)}; padding: 1rem 0; width: 100%; + margin-top: ${props => (props.marginTop ? '0.5rem' : 'none')}; + margin-bottom: ${props => (props.marginBottom ? '0.5rem' : 'none')}; .NavDropdown { display: flex; align-items: center; From 2d3f6544f8ef816936cff889a05c4a6f3886f545 Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Mon, 15 Jun 2020 17:32:26 +0100 Subject: [PATCH 19/51] add message card to interface --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 2 ++ .../ignitus-MessageCard/Components/index.tsx | 28 ++++++++++++++++ .../ignitus-MessageCard/styles.ts | 32 +++++++++++++++++++ src/ignitus-Shared/index.ts | 4 +++ .../interfaceMessageCard/Components/index.tsx | 23 +++++++++++++ .../interfaceMessageCard/constants.ts | 20 ++++++++++++ .../Organisms/interfaceMessageCard/types.ts | 7 ++++ .../InterfaceSideNavigation/constants.ts | 4 +++ 8 files changed, 120 insertions(+) create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 4fc45ea6..80f8efec 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -17,6 +17,7 @@ import { interfaceCheckBox } from '../../ignitus-UserInterfaceBook/Components/At import { interfaceInput } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceInput/Components'; import { interfaceOpportunityList } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceOpportunityList/Components'; import { interfaceSavedOpportunity } from '../../ignitus-UserInterfaceBook/Components/Layouts/interfaceSavedOpportunity/Components'; +import { interfaceMessageCard } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components'; import { interfaceSearchInput } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSearchInput/Components'; import { interfaceSeparator } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceSeparator/Components'; import { interfaceDashBoardFooter } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceFooter/interfaceDashBoardFooter/Components'; @@ -141,6 +142,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( + diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx new file mode 100644 index 00000000..5c994e23 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx @@ -0,0 +1,28 @@ +import React from 'react'; +import * as S from '../styles'; +import { + Heading5, + Heading6, + Paragraph, +} from '../../../ignitus-Atoms/typography'; +import { withErrorBoundary } from '../../../../ignitus-ErrorHandlingComponents/errorBoundary'; + +export const MessageCard = withErrorBoundary( + ({ name, position, numberMessages, dateSent, avatar }) => ( + + + avatar + + + + {name} + {position} + + + + {numberMessages} + {dateSent} + + + ), +); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts new file mode 100644 index 00000000..86c36a0c --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts @@ -0,0 +1,32 @@ +import styled from '@emotion/styled'; +import * as C from '../../ignitus-Atoms/colors'; +import * as T from '../../ignitus-Atoms/typography'; +import { flexibleRowDiv } from '../../shared'; +import { Normal } from '../../ignitus-Atoms/fonts'; + +export const MessageContainer = styled(flexibleRowDiv)` + border-radius: 4px; + box-shadow: 0 2px 4px 0 ${C.boxShadowColor}; + background-color: ${C.White}; + padding: 0.1rem; + width: 50%; +`; + +export const ImageContainer = styled(flexibleRowDiv)` + padding: 0.3rem; + img { + border-radius: 50%; + width: 56px; + max-width: 100%; + max-height: 100%; + } +`; + +export const MessageSubTitle = styled(T.Paragraph)` + font-weight: ${Normal}; + color: ${C.GreyOne}; +`; + +export const MessageDateTitle = styled.div` + color: ${C.GreyOne}; +`; diff --git a/src/ignitus-Shared/index.ts b/src/ignitus-Shared/index.ts index 5dea2c27..050160ab 100644 --- a/src/ignitus-Shared/index.ts +++ b/src/ignitus-Shared/index.ts @@ -117,6 +117,10 @@ export { UserProfileCard, } from './ignitus-DesignSystem/ignitus-Organisms/ignitus-ProfileCard/Components'; +export { + MessageCard, +} from './ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components'; + export { DashboardNavigation, } from './ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-DashboardSideNavigation/Components'; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx new file mode 100644 index 00000000..18e43364 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx @@ -0,0 +1,23 @@ +import React from 'react'; +import styled from '@emotion/styled'; +import { MessageCard, Heading2 } from '../../../../../ignitus-Shared'; +import { Interface } from '../../../../styles'; +import { flexibleColDiv } from '../../../../../ignitus-Shared/ignitus-DesignSystem/shared'; +import { MessageData } from '../constants'; + +export const MessageList = styled(flexibleColDiv)``; + +export const interfaceMessageCard: React.FC = () => ( + + Message Card +
+ + {MessageData.map(({ name, ...rest }) => ( + + +
+
+ ))} +
+
+); diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts new file mode 100644 index 00000000..ed758700 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts @@ -0,0 +1,20 @@ +import { MessageCardData } from './types'; + +export const MessageData: MessageCardData[] = [ + { + name: 'Donald Kunkel', + position: 'Professor', + numberMessages: '8 Messages', + dateSent: 'Thu, 8:23AM', + avatar: + 'https://storage.googleapis.com/ignitus_assets/ig-avatars/eugene.png', + }, + { + name: 'Victoria Hopper', + position: 'Professor', + numberMessages: '2 Messages', + dateSent: 'Wed, 12:02AM', + avatar: + 'https://storage.googleapis.com/ignitus_assets/ig-avatars/melanie.png', + }, +]; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts new file mode 100644 index 00000000..48aef2e0 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts @@ -0,0 +1,7 @@ +export type MessageCardData = { + name: string; + position: string; + numberMessages: string; + dateSent: string; + avatar: string; +}; diff --git a/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts b/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts index 4e0e8074..49576122 100644 --- a/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts +++ b/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts @@ -197,6 +197,10 @@ export const allEdges: Edges[] = [ title: 'Side Profile', route: '/interface/sideProfile', }, + { + title: 'Message Card', + route: '/interface/messageCard', + }, ], }, { From 50e46785ef2531546ef510557dd8a0308474e1b6 Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Tue, 16 Jun 2020 10:41:39 +0100 Subject: [PATCH 20/51] add status icon to avatar --- .../ignitus-MessageCard/Components/index.tsx | 3 +++ .../ignitus-MessageCard/styles.ts | 14 +++++++++++--- .../interfaceMessageCard/Components/index.tsx | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx index 5c994e23..65c1fd12 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx @@ -12,6 +12,9 @@ export const MessageCard = withErrorBoundary( avatar + + + diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts index 86c36a0c..bf0d8bae 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts @@ -8,25 +8,33 @@ export const MessageContainer = styled(flexibleRowDiv)` border-radius: 4px; box-shadow: 0 2px 4px 0 ${C.boxShadowColor}; background-color: ${C.White}; - padding: 0.1rem; + padding: 1rem; width: 50%; `; export const ImageContainer = styled(flexibleRowDiv)` - padding: 0.3rem; + padding-right: 1rem; img { + position: relative; border-radius: 50%; width: 56px; max-width: 100%; max-height: 100%; } + svg { + color: #219653; + position: absolute; + stroke: white; + fill: #219653; + } `; export const MessageSubTitle = styled(T.Paragraph)` + padding-right: 1rem; font-weight: ${Normal}; color: ${C.GreyOne}; `; export const MessageDateTitle = styled.div` - color: ${C.GreyOne}; + text-align: right; `; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx index 18e43364..711d83a2 100644 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx @@ -14,7 +14,7 @@ export const interfaceMessageCard: React.FC = () => ( {MessageData.map(({ name, ...rest }) => ( - +
))} From e09c25153214e07cc9852f2ae506eab4ecf7b967 Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Tue, 16 Jun 2020 13:58:37 +0100 Subject: [PATCH 21/51] online and offline status --- .../ignitus-Organisms/ignitus-MessageCard/Components/index.tsx | 3 ++- .../ignitus-Organisms/ignitus-MessageCard/styles.ts | 3 ++- .../Components/Organisms/interfaceMessageCard/constants.ts | 2 ++ .../Components/Organisms/interfaceMessageCard/types.ts | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx index 65c1fd12..f35c992e 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx @@ -8,12 +8,13 @@ import { import { withErrorBoundary } from '../../../../ignitus-ErrorHandlingComponents/errorBoundary'; export const MessageCard = withErrorBoundary( - ({ name, position, numberMessages, dateSent, avatar }) => ( + ({ name, position, numberMessages, dateSent, avatar, online }) => ( avatar + {!online && } diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts index bf0d8bae..fc05d5fb 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts @@ -10,6 +10,7 @@ export const MessageContainer = styled(flexibleRowDiv)` background-color: ${C.White}; padding: 1rem; width: 50%; + display: space-be; `; export const ImageContainer = styled(flexibleRowDiv)` @@ -22,8 +23,8 @@ export const ImageContainer = styled(flexibleRowDiv)` max-height: 100%; } svg { - color: #219653; position: absolute; + padding: 10px; stroke: white; fill: #219653; } diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts index ed758700..7826058c 100644 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/constants.ts @@ -8,6 +8,7 @@ export const MessageData: MessageCardData[] = [ dateSent: 'Thu, 8:23AM', avatar: 'https://storage.googleapis.com/ignitus_assets/ig-avatars/eugene.png', + online: true, }, { name: 'Victoria Hopper', @@ -16,5 +17,6 @@ export const MessageData: MessageCardData[] = [ dateSent: 'Wed, 12:02AM', avatar: 'https://storage.googleapis.com/ignitus_assets/ig-avatars/melanie.png', + online: false, }, ]; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts index 48aef2e0..55d564ad 100644 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/types.ts @@ -4,4 +4,5 @@ export type MessageCardData = { numberMessages: string; dateSent: string; avatar: string; + online: boolean; }; From 8c535fe51871ff8951c2580fab9a1f0b79185dfb Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Tue, 16 Jun 2020 15:59:51 +0100 Subject: [PATCH 22/51] fix styles --- .../ignitus-MessageCard/Components/index.tsx | 13 ++----- .../ignitus-MessageCard/styles.ts | 37 +++++++++++++++---- .../interfaceMessageCard/Components/index.tsx | 23 ++++++++---- 3 files changed, 48 insertions(+), 25 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx index f35c992e..12732842 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx @@ -1,10 +1,5 @@ import React from 'react'; import * as S from '../styles'; -import { - Heading5, - Heading6, - Paragraph, -} from '../../../ignitus-Atoms/typography'; import { withErrorBoundary } from '../../../../ignitus-ErrorHandlingComponents/errorBoundary'; export const MessageCard = withErrorBoundary( @@ -19,13 +14,13 @@ export const MessageCard = withErrorBoundary( - {name} - {position} + {name} + {position} - {numberMessages} - {dateSent} + {numberMessages} + {dateSent} ), diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts index fc05d5fb..8081ed24 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts @@ -1,20 +1,20 @@ import styled from '@emotion/styled'; import * as C from '../../ignitus-Atoms/colors'; import * as T from '../../ignitus-Atoms/typography'; +import * as F from '../../ignitus-Atoms/fonts'; import { flexibleRowDiv } from '../../shared'; -import { Normal } from '../../ignitus-Atoms/fonts'; export const MessageContainer = styled(flexibleRowDiv)` - border-radius: 4px; + border-radius: 16px; box-shadow: 0 2px 4px 0 ${C.boxShadowColor}; background-color: ${C.White}; padding: 1rem; - width: 50%; - display: space-be; + width: 100%; + display: flex; + justify-content: flex-start; `; export const ImageContainer = styled(flexibleRowDiv)` - padding-right: 1rem; img { position: relative; border-radius: 50%; @@ -31,11 +31,32 @@ export const ImageContainer = styled(flexibleRowDiv)` `; export const MessageSubTitle = styled(T.Paragraph)` - padding-right: 1rem; - font-weight: ${Normal}; - color: ${C.GreyOne}; + margin-left: 1rem; +`; + +export const Sender = styled(T.Paragraph)` + font-weight: ${F.Bold}; + font-size: ${F.MD}; + color: ${C.IgnitusBlue}; + margin-bottom: 0.5rem; +`; + +export const SenderPosition = styled(T.Paragraph)` + font-weight: ${F.Normal}; + font-size: ${F.SM}; + color: ${C.IgnitusBlue}; + margin-bottom: 0.5rem; `; export const MessageDateTitle = styled.div` text-align: right; + margin-left: auto; +`; + +export const Details = styled(T.Paragraph)` + font-family: Open Sans; + font-weight: ${F.Normal}; + font-size: ${F.SM}; + color: ${C.GreyOne}; + margin-bottom: 0.5rem; `; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx index 711d83a2..bf2fb5db 100644 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx @@ -11,13 +11,20 @@ export const interfaceMessageCard: React.FC = () => ( Message Card
- - {MessageData.map(({ name, ...rest }) => ( - - -
-
- ))} -
+
+ + {MessageData.map(({ name, ...rest }) => ( + + +
+
+ ))} +
+
); From 8c96a374b464c4733f9fb8b1726820e57707769f Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Tue, 16 Jun 2020 16:36:37 +0100 Subject: [PATCH 23/51] fix status styles --- .../ignitus-MessageCard/Components/index.tsx | 8 ++++---- .../ignitus-MessageCard/styles.ts | 14 +++++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx index 12732842..e9e4c648 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx @@ -6,11 +6,11 @@ export const MessageCard = withErrorBoundary( ({ name, position, numberMessages, dateSent, avatar, online }) => ( - avatar - - - {!online && } + + + {!online && } + avatar diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts index 8081ed24..b852b6a5 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts @@ -10,23 +10,27 @@ export const MessageContainer = styled(flexibleRowDiv)` background-color: ${C.White}; padding: 1rem; width: 100%; - display: flex; - justify-content: flex-start; `; export const ImageContainer = styled(flexibleRowDiv)` + position: relative; + padding: 0.5rem; + img { - position: relative; border-radius: 50%; - width: 56px; + width: 4rem; max-width: 100%; max-height: 100%; } + svg { position: absolute; - padding: 10px; + bottom: 0; + right: 0; stroke: white; fill: #219653; + height: 2rem; + width: 2rem; } `; From 72025f4ab3bedb349cf49933a10a08ba89267659 Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Tue, 16 Jun 2020 17:33:56 +0100 Subject: [PATCH 24/51] fix box sizes --- .../ignitus-MessageCard/Components/index.tsx | 3 ++- .../ignitus-Organisms/ignitus-MessageCard/styles.ts | 8 +++++--- .../interfaceMessageCard/Components/index.tsx | 11 ++--------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx index e9e4c648..32c0873d 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/Components/index.tsx @@ -1,5 +1,6 @@ import React from 'react'; import * as S from '../styles'; +import * as C from '../../../ignitus-Atoms/colors'; import { withErrorBoundary } from '../../../../ignitus-ErrorHandlingComponents/errorBoundary'; export const MessageCard = withErrorBoundary( @@ -8,7 +9,7 @@ export const MessageCard = withErrorBoundary( - {!online && } + {!online && } avatar diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts index b852b6a5..ea225cb3 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-MessageCard/styles.ts @@ -5,14 +5,16 @@ import * as F from '../../ignitus-Atoms/fonts'; import { flexibleRowDiv } from '../../shared'; export const MessageContainer = styled(flexibleRowDiv)` - border-radius: 16px; + border-radius: 1rem; box-shadow: 0 2px 4px 0 ${C.boxShadowColor}; background-color: ${C.White}; + box-sizing: border-box; padding: 1rem; width: 100%; + margin-bottom: 1rem; `; -export const ImageContainer = styled(flexibleRowDiv)` +export const ImageContainer = styled.div` position: relative; padding: 0.5rem; @@ -27,7 +29,7 @@ export const ImageContainer = styled(flexibleRowDiv)` position: absolute; bottom: 0; right: 0; - stroke: white; + stroke: ${C.White}; fill: #219653; height: 2rem; width: 2rem; diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx index bf2fb5db..d016bece 100644 --- a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceMessageCard/Components/index.tsx @@ -1,27 +1,20 @@ import React from 'react'; -import styled from '@emotion/styled'; import { MessageCard, Heading2 } from '../../../../../ignitus-Shared'; import { Interface } from '../../../../styles'; import { flexibleColDiv } from '../../../../../ignitus-Shared/ignitus-DesignSystem/shared'; import { MessageData } from '../constants'; -export const MessageList = styled(flexibleColDiv)``; +export const MessageList = flexibleColDiv; export const interfaceMessageCard: React.FC = () => ( Message Card
-
+
{MessageData.map(({ name, ...rest }) => ( -
))}
From a8bdc9609665f4aae97b9d6dbde90bb035dc1104 Mon Sep 17 00:00:00 2001 From: Dishebh Bhayana Date: Sat, 27 Jun 2020 13:53:44 +0530 Subject: [PATCH 25/51] added notifications route --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 2 + .../Components/index.tsx | 79 ++++++++ .../ignitus-Notifications/styles.ts | 175 ++++++++++++++++++ .../ignitus-Notifications/types.ts | 11 ++ src/ignitus-Shared/index.ts | 3 + .../Components/index.tsx | 12 ++ .../Organisms/interfaceNotifications/style.ts | 8 + 7 files changed, 290 insertions(+) create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/styles.ts create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/types.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components/index.tsx create mode 100644 src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/style.ts diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 4fc45ea6..5ce967fd 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -28,6 +28,7 @@ import { interfaceOverlay } from '../../ignitus-UserInterfaceBook/Components/Mol import { interfaceTags } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceTags/Components'; import { interfaceFilters } from '../../ignitus-UserInterfaceBook/Components/Templates/interfaceFilters/Components/index'; import { interfaceUserProfile } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceUserProfile/Components'; +import { interfaceNotifications } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components'; import { InterfaceAvatar } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceAvatar/Components'; import { interfaceSideProfile } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceSideProfile/Components/index'; import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceProgress/index'; @@ -139,6 +140,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( component={interfaceToggleButtons} /> + diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx new file mode 100644 index 00000000..1f82dcea --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx @@ -0,0 +1,79 @@ +/* eslint-disable import/extensions */ +/* eslint-disable jsx-a11y/accessible-emoji */ +import React from 'react'; +import * as S from '../styles'; +import { withErrorBoundary } from '../../../../ignitus-ErrorHandlingComponents/errorBoundary'; +import { AppIcon } from '../../../../types/iconsTypes/iconEnums'; +import { Props } from '../types'; + +export const UserProfileCard = withErrorBoundary(() => ( + + + Track Sophi progress + + + + + +
+ +
+ + Sophia Carter + Literature Student + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
+)); + +export const DropDownButton = () => ( + + + More ... + + Ask For Recommendation + Share Profile + Block + + + +); + +export const IconContent = ({ content, name }: Props) => ( + + + + {content} + + +); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/styles.ts new file mode 100644 index 00000000..e72142c7 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/styles.ts @@ -0,0 +1,175 @@ +import styled from '@emotion/styled'; +import * as C from '../../ignitus-Atoms/colors'; + +import { + flexibleColDiv, + flexibleRowDiv, + Link as L, + Paragraph as P, +} from '../../shared'; +import { Heading1, Heading4 } from '../../ignitus-Atoms/typography'; +import { XXXL, SemiBold, Normal } from '../../ignitus-Atoms/fonts'; + +import { Icon as I } from '../../../ignitus-Utilities/Components/icon'; +import { ParagraphProps } from './types'; + +export const Container = styled.div` + display: flex; + width: 60rem; + flex-direction: column; + padding: 1rem 2rem; + border-radius: 1rem; + box-shadow: 0 2px 4px 0 ${C.boxShadowColor}; + background-color: ${C.White}; + color: ${C.IgnitusBlue}; +`; + +export const TopSection = styled.div` + text-align: end; +`; + +export const BottomSection = styled.div` + display: flex; + flex-direction: row; + padding: 1rem; +`; + +export const LeftRow = styled.div` + display: flex; + flex-direction: row; + flex: 2; + justify-content: flex-start; +`; + +export const Avatar = styled.img` + width: 10rem; + border-radius: 1rem; +`; + +export const MiddleRow = styled.div` + display: flex; + flex-direction: column; +`; + +export const ImageContainer = styled(flexibleRowDiv)` + width: 200px; + height: 190px; + img { + width: 100%; + height: 100%; + border-radius: 15px; + } +`; + +export const Paragraph = styled(P)` + color: ${props => (props.primary ? C.IgnitusBlue : C.GreySecondaryText)}; + font-weight: ${Normal}; + display: inline; + margin: ${props => props.margin}; +`; + +export const Name = styled(Heading1)` + font-size: ${XXXL}; + font-weight: ${SemiBold}; +`; + +export const Designation = styled(Heading4)` + margin-bottom: 1rem; + margin-top: 1rem; +`; + +export const ProfileInformationContainer = styled.div` + margin-left: 4rem; +`; + +export const RightRow = styled(flexibleColDiv)` + flex: 1; + align-items: flex-start; +`; + +export const Contact = styled.div` + display: flex; + flex-direction: column; + width: 100%; +`; + +export const Icons = styled(flexibleRowDiv)` + margin-bottom: 2rem; +`; + +export const Link = styled(L)` + margin-right: 2rem; + display: inline-block; +`; + +export const Icon = styled(I)` + width: 1.5rem; + fill: ${C.IgnitusBlue}; + path { + } +`; + +export const Wrapper = styled.div` + display: flex; + margin: 0.6rem 0; + flex-direction: row; +`; + +export const DropDownBtnContainer = styled.div` + position: relative; + margin-top: 1rem; +`; + +export const DropDownBtn = styled.div` + font-weight: bold; + color: ${C.GreyOne}; + cursor: pointer; + display: inline-block; + padding-bottom: 10px; + transition: all 0.4s; + width: fit-content; + + &:hover { + ul { + display: block; + } + } +`; + +export const DropDownMenu = styled.ul` + z-index: 3; + position: absolute; + top: 30px; + left: 0; + border-radius: 10px 0 10px 10px; + box-shadow: 0 2px 4px 0 ${C.boxShadowColor}; + background-color: ${C.White}; + color: ${C.IgnitusBlue}; + display: none; + font-weight: 400; + + &:hover { + display: block; + } +`; + +export const DropDownMenuListItem = styled.li` + padding: 0.5em 1em; + font-size: 14px; + width: 200px; + + &:first-of-type { + border-top-left-radius: 10px; + } + + &:last-child { + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; + } + + &:hover { + color: ${C.White}; + background-color: ${C.IgnitusBlue}; + cursor: pointer; + } +`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/types.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/types.ts new file mode 100644 index 00000000..fc5b6f6a --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/types.ts @@ -0,0 +1,11 @@ +import { AppIcon } from '../../../types/iconsTypes/iconEnums'; + +export type Props = { + content: string; + name: AppIcon; +}; + +export type ParagraphProps = { + margin: string; + primary?: boolean; +}; diff --git a/src/ignitus-Shared/index.ts b/src/ignitus-Shared/index.ts index 5dea2c27..2a44d01e 100644 --- a/src/ignitus-Shared/index.ts +++ b/src/ignitus-Shared/index.ts @@ -129,6 +129,9 @@ export { UserSettingsSideNavigation, } from './ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/Components'; +export { + Notifications, +} from './ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components'; /** * ignitus-Templates */ diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components/index.tsx new file mode 100644 index 00000000..9c405c73 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components/index.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +import { Heading2 } from '../../../../../ignitus-Shared'; + +import { Interface } from '../../../../styles'; + +export const interfaceNavigation: React.FC = () => ( + + Navigation +
+
+); diff --git a/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/style.ts b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/style.ts new file mode 100644 index 00000000..6fabded9 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/style.ts @@ -0,0 +1,8 @@ +import styled from '@emotion/styled'; + +export const NavigationContainer = styled.div` + display: flex; + flex-direction: row; + justify-content: space-evenly; + flex: 1; +`; From 0a1ca87b6ede10af61daa41cd274fb376b559893 Mon Sep 17 00:00:00 2001 From: Dishebh Bhayana Date: Sat, 27 Jun 2020 13:56:32 +0530 Subject: [PATCH 26/51] added notifications route --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 4 ++-- .../ignitus-Notifications/Components/index.tsx | 2 +- src/ignitus-Shared/index.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 5ce967fd..a0007955 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -28,7 +28,7 @@ import { interfaceOverlay } from '../../ignitus-UserInterfaceBook/Components/Mol import { interfaceTags } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceTags/Components'; import { interfaceFilters } from '../../ignitus-UserInterfaceBook/Components/Templates/interfaceFilters/Components/index'; import { interfaceUserProfile } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceUserProfile/Components'; -import { interfaceNotifications } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components'; +// import { interfaceNotifications } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceNotifications/Components'; import { InterfaceAvatar } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceAvatar/Components'; import { interfaceSideProfile } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceSideProfile/Components/index'; import { InterfaceProgress } from '../../ignitus-UserInterfaceBook/Components/Molecules/interfaceProgress/index'; @@ -140,7 +140,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( component={interfaceToggleButtons} /> - + {/* */} diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx index 1f82dcea..8cb63405 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components/index.tsx @@ -6,7 +6,7 @@ import { withErrorBoundary } from '../../../../ignitus-ErrorHandlingComponents/e import { AppIcon } from '../../../../types/iconsTypes/iconEnums'; import { Props } from '../types'; -export const UserProfileCard = withErrorBoundary(() => ( +export const Notifications = withErrorBoundary(() => ( Track Sophi progress diff --git a/src/ignitus-Shared/index.ts b/src/ignitus-Shared/index.ts index 2a44d01e..38cfc51c 100644 --- a/src/ignitus-Shared/index.ts +++ b/src/ignitus-Shared/index.ts @@ -129,9 +129,9 @@ export { UserSettingsSideNavigation, } from './ignitus-DesignSystem/ignitus-Organisms/ignitus-SideNavigation/ignitus-UserSettingsSideNavigation/Components'; -export { - Notifications, -} from './ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components'; +// export { +// Notifications, +// } from './ignitus-DesignSystem/ignitus-Organisms/ignitus-Notifications/Components'; /** * ignitus-Templates */ From 915192e3f190da45d2bda5dd792c1c4b3e7ab167 Mon Sep 17 00:00:00 2001 From: Daniel Davis Date: Sat, 27 Jun 2020 16:31:20 +0100 Subject: [PATCH 27/51] Adding digital ocean to supporters --- .../ignitus-SupportedBy/constants.ts | 3 +++ .../ignitus-Logos/digitalOceanLogo.png | Bin 0 -> 6943 bytes 2 files changed, 3 insertions(+) create mode 100755 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Logos/digitalOceanLogo.png diff --git a/src/ignitus-HomePage/ignitus-SupportedBy/constants.ts b/src/ignitus-HomePage/ignitus-SupportedBy/constants.ts index b577bb4f..7d1a2577 100644 --- a/src/ignitus-HomePage/ignitus-SupportedBy/constants.ts +++ b/src/ignitus-HomePage/ignitus-SupportedBy/constants.ts @@ -1,5 +1,6 @@ import gitbookLogo from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Logos/gitbookLogo.png'; import atlassianLogo from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Logos/atlassianLogo.png'; +import digitalOceanLogo from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Logos/digitalOceanLogo.png'; export const WOOTECH: string = 'https://storage.googleapis.com/ignitus_assets/ig-partners-logo/WooTech.svg'; @@ -15,6 +16,7 @@ export const PROGATE: string = 'https://storage.googleapis.com/ignitus_assets/ig-partners-logo/progateLogo.png'; export const GITBOOK: string = gitbookLogo; export const ATLASSIAN: string = atlassianLogo; +export const DIGITALOCEAN: string = digitalOceanLogo; export const Data: string[] = [ WOOTECH, @@ -25,4 +27,5 @@ export const Data: string[] = [ GIRLSCRIPT, GITBOOK, ATLASSIAN, + DIGITALOCEAN, ]; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Logos/digitalOceanLogo.png b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Logos/digitalOceanLogo.png new file mode 100755 index 0000000000000000000000000000000000000000..ee98b493e025cb7cc805158e1b69dfd83bfcd202 GIT binary patch literal 6943 zcmX9@byyV4*Ikibx*Mb$1?du8KtLp2V(ISgSfoozO4>zG8d+dzkWOLYB?T6wQ%Y*7 z4}RZ2Gjq>5&&-{f=b5-SPV1ctAwC^G001CVeFM?~05BjAZ981-hf;hsCh4J~^;R_OtM`0Vr6zS=z9ux>(rR=-60T2Y3wG$N&IzU8*1jJ^$bP`PV+HGUWYz1vmHT z3iEc#NIeqWu21+FlEH8qj?EuUoKdd%xh;5 zgbRLEVRKN%eHa%2Sovtmrq1Zbde&%v7+RCucIt9?SaIN#e@lBYV;}gac;$Q$nGtN_ zYIb|TSASIH#L)p(OW`0ff8@5K=iiE@LRYz(_jYkgowpPisvW(0~L1T}5se`Gp1`9#=ngtN1l%({7jxJsxuTSVzOWehLfysbQ=mjN+rl3$I8(j zDGSjGDtmg^D(zhe)<=9lp~_!GN3mk>&G?KtUlX|WaU;Jh1lMub7qHaJrI@zQwnxrC zDnHEe3e+o?j(rUWo?$%L-k(nvVo8jo26N+qdjDIIS}fQGcHW;yQY!vR%(5-+S$+Lb zBgOUqcMAC&fNnVm^)ia(|B)SZsjhKexj=BiH8R-^MG ziy!}oIVq{ZU{_|fwHMXS&nJ7)E7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inline-checkbox --- .../ignitus-defaultCheckbox/Components/index.tsx | 6 +++--- .../ignitus-Atoms/ignitus-defaultCheckbox/styles.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/index.tsx index 0f5810bd..ed12fbe7 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/index.tsx @@ -1,12 +1,12 @@ import React from 'react'; import { CheckBoxType } from '../types'; -import { CheckBox, Label, StyledParagraph } from '../styles'; +import { CheckBox, Label, StyledParagraph, Container } from '../styles'; export const DefaultCheckbox = ({ label, value }: CheckBoxType) => ( - + - + ); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/styles.ts index d3aa20f7..4cca0b0e 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/styles.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/styles.ts @@ -14,3 +14,7 @@ export const Label = styled.label` export const StyledParagraph = styled(Paragraph)` font-size: ${MD}; `; + +export const Container = styled.div` + display: inline-flex; +`; From 827aaae754816eb49824d0c7d64254404fae040d Mon Sep 17 00:00:00 2001 From: Dishebh Bhayana Date: Sun, 28 Jun 2020 18:04:02 +0530 Subject: [PATCH 29/51] updated test --- .../Components/__snapshots__/index.test.tsx.snap | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/__snapshots__/index.test.tsx.snap b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/__snapshots__/index.test.tsx.snap index cbc5d0bf..3f504f9e 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/__snapshots__/index.test.tsx.snap +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultCheckbox/Components/__snapshots__/index.test.tsx.snap @@ -1,14 +1,16 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` should render 1`] = ` -Array [ +
, + /> , -] + +
`; From d8535c0f2e01fff239510865e596ce50b35d2a57 Mon Sep 17 00:00:00 2001 From: Dishebh Bhayana Date: Mon, 29 Jun 2020 23:24:22 +0530 Subject: [PATCH 30/51] replaced signup progress image with component --- .../Components/index.tsx | 4 -- .../ignitus-EmailFlow/Components/index.tsx | 19 ------ .../ignitus-InterestFlow/Components/index.tsx | 15 ----- .../ignitus-WelcomeFlow/Components/index.tsx | 15 ----- .../ignitus-WelcomeFlow/Styles/style.ts | 4 -- .../ignitus-StudentSignUpFlow/index.tsx | 65 +++++++++++++++++++ .../ignitus-StudentSignUpFlow/style.ts | 19 ++++++ .../ignitus-AuthenticationRoutes/index.tsx | 13 +--- 8 files changed, 86 insertions(+), 68 deletions(-) create mode 100644 src/ignitus-Authentication/ignitus-StudentSignUpFlow/index.tsx create mode 100644 src/ignitus-Authentication/ignitus-StudentSignUpFlow/style.ts diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailConfirmationFlow/Components/index.tsx b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailConfirmationFlow/Components/index.tsx index 1f21c734..31fdd314 100644 --- a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailConfirmationFlow/Components/index.tsx +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailConfirmationFlow/Components/index.tsx @@ -18,10 +18,6 @@ export const EmailConfirmationFlow: FunctionComponent = withErrorBoundary( () => ( - Your email has been confirmed. diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailFlow/Components/index.tsx b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailFlow/Components/index.tsx index 2b569c5e..38aa295a 100644 --- a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailFlow/Components/index.tsx +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailFlow/Components/index.tsx @@ -2,13 +2,11 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-static-element-interactions */ import React, { FunctionComponent } from 'react'; -import { Link } from 'react-router-dom'; import newsletter from '../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/newsletterIcon.png'; import { Paragraph, Heading2, withErrorBoundary, - Button, } from '../../../../ignitus-Shared'; import * as T from '../../ignitus-WelcomeFlow/Styles/style'; import * as C from '../Styles/style'; @@ -16,10 +14,6 @@ import * as C from '../Styles/style'; export const EmailFlow: FunctionComponent = withErrorBoundary(() => ( - Let’s confirm your email. @@ -31,18 +25,5 @@ export const EmailFlow: FunctionComponent = withErrorBoundary(() => ( Click the link we sent to sofia.carter@gmail.com to confirm you email. - - - - - - - I don’t want to confirm my email yet. - - )); diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-InterestFlow/Components/index.tsx b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-InterestFlow/Components/index.tsx index 572dcf3e..c41c2b46 100644 --- a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-InterestFlow/Components/index.tsx +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-InterestFlow/Components/index.tsx @@ -3,11 +3,9 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-static-element-interactions */ import React, { FunctionComponent } from 'react'; -import { Link } from 'react-router-dom'; import { Paragraph, Heading1, - RoundedButton, DefaultCheckbox, withErrorBoundary, } from '../../../../ignitus-Shared'; @@ -17,10 +15,6 @@ import * as C from '../Styles/style'; export const InterestFlow: FunctionComponent = withErrorBoundary(() => ( - What are you interested in? This will customize your experience. @@ -52,14 +46,5 @@ export const InterestFlow: FunctionComponent = withErrorBoundary(() => ( /> - - - Save & Continue - - - Skip for now - {' >> '} - - )); diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Components/index.tsx b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Components/index.tsx index 2fdbf7e6..e17b7acd 100644 --- a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Components/index.tsx +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Components/index.tsx @@ -1,10 +1,8 @@ /* eslint-disable import/extensions */ import React, { FunctionComponent } from 'react'; -import { Link } from 'react-router-dom'; import { Paragraph, Heading1, - RoundedButton, DefaultDropdown, withErrorBoundary, } from '../../../../ignitus-Shared'; @@ -13,10 +11,6 @@ import * as T from '../Styles/style'; export const WelcomeFlow: FunctionComponent = withErrorBoundary(() => ( - Welcome, Sophia Let’s start with your profile. This will get you successful on Ignitus @@ -59,14 +53,5 @@ export const WelcomeFlow: FunctionComponent = withErrorBoundary(() => ( /> - - - Save & Continue - - - Skip for now - {' >> '} - - )); diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Styles/style.ts b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Styles/style.ts index f94f6bbd..e6a632f7 100644 --- a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Styles/style.ts +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Styles/style.ts @@ -28,10 +28,6 @@ export const MiddleSection = styled.div` flex-wrap: wrap; `; -export const BottomSection = styled(flexibleColDiv)` - margin-top: 2rem; -`; - export const LeftSection = styled(flexibleColDiv)` ${minimumWidthQuery[2]} { margin-right: none; diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/index.tsx b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/index.tsx new file mode 100644 index 00000000..4de2a827 --- /dev/null +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/index.tsx @@ -0,0 +1,65 @@ +/* eslint-disable import/extensions */ +import React, { FunctionComponent, useState } from 'react'; +import { Link } from 'react-router-dom'; + +import { InterestFlow } from './ignitus-InterestFlow/Components'; +import { WelcomeFlow } from './ignitus-WelcomeFlow/Components'; +import { EmailFlow } from './ignitus-EmailFlow/Components'; +import { EmailConfirmationFlow } from './ignitus-EmailConfirmationFlow/Components'; +import { + withErrorBoundary, + RoundedButton, + Paragraph, + Button, +} from '../../ignitus-Shared'; +import { Progress } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Progress/Components/Progress'; + +import * as T from './style'; + +export const StudentSignUpFlow: FunctionComponent = withErrorBoundary(() => { + const [current, updateCurrent] = useState(1); + const steps = 4; + + const next = () => + current === steps + 1 ? null : updateCurrent(current + 1); + + return ( + + + + {current && current === 1 && } + {current && current === 2 && } + {current && current === 3 && ( + + + + + + + + + I don’t want to confirm my email yet. + + + + )} + {current && current === 4 && } + + {current !== 3 && current !== 4 && ( + + + Save & Continue + + + Skip for now + {' >> '} + + + )} + + ); +}); diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/style.ts b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/style.ts new file mode 100644 index 00000000..3e813160 --- /dev/null +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/style.ts @@ -0,0 +1,19 @@ +import styled from '@emotion/styled'; +import { + flexibleColDiv, + BottomRow, +} from '../../ignitus-Shared/ignitus-DesignSystem/shared'; + +export const Container = styled(flexibleColDiv)` + background: white; + margin-top: 4rem; + padding: 2rem; +`; + +export const BottomSection = styled(flexibleColDiv)` + margin-top: 2rem; +`; + +export const NewsletterImage = styled.img``; + +export const ButtonContainer = styled(BottomRow)``; diff --git a/src/ignitus-Routes/ignitus-AuthenticationRoutes/index.tsx b/src/ignitus-Routes/ignitus-AuthenticationRoutes/index.tsx index c7501553..16158deb 100644 --- a/src/ignitus-Routes/ignitus-AuthenticationRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-AuthenticationRoutes/index.tsx @@ -2,10 +2,7 @@ import React, { Suspense, Fragment, lazy } from 'react'; import { Switch, Route } from 'react-router-dom'; -import { InterestFlow } from '../../ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-InterestFlow/Components/index'; -import { EmailFlow } from '../../ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailFlow/Components'; -import { WelcomeFlow } from '../../ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-WelcomeFlow/Components'; -import { EmailConfirmationFlow } from '../../ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-EmailConfirmationFlow/Components'; +import { StudentSignUpFlow } from '../../ignitus-Authentication/ignitus-StudentSignUpFlow'; import { LazyLoader } from '../../ignitus-Shared/ignitus-DesignSystem/shared'; import { @@ -53,13 +50,7 @@ export const AuthenticationRoutes: React.FunctionComponent = () => ( - - - - + From 2155a4c1cd943273e5cd6685a98362cee77364f1 Mon Sep 17 00:00:00 2001 From: Dishebh Date: Fri, 3 Jul 2020 18:28:40 +0530 Subject: [PATCH 31/51] fixed join link --- .../ignitus-Navigation/Components/index.tsx | 13 ++++++++++++- .../ignitus-Navigation/constants.ts | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx index 37f1d442..2f4464f7 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx @@ -29,7 +29,18 @@ const PureNavigation: React.FC = ({ key={title} transparentNavigation={transparentNavigation} > - {title} + {title !== 'Join' && ( + {title} + )} + {title === 'Join' && ( + + {title} + + )} ))} diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/constants.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/constants.ts index 97302d10..b0ad98eb 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/constants.ts +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/constants.ts @@ -13,7 +13,7 @@ export const NonAuthenticatedNavigationItemsList: NavigationItems[] = [ { title: 'Join', - route: 'https://bit.ly/2SaYXMO', + route: 'https://bit.ly/JoinIgnitusSlack', }, { @@ -40,7 +40,7 @@ export const AuthenticatedNavigationItemsList: NavigationItems[] = [ { title: 'Join', - route: 'https://bit.ly/2SaYXMO', + route: 'https://bit.ly/JoinIgnitusSlack', }, { From 87ebf053f041b5d96847a9fc39537144eea35168 Mon Sep 17 00:00:00 2001 From: Dishebh Date: Sat, 4 Jul 2020 13:58:40 +0530 Subject: [PATCH 32/51] added unit test for Overlay component --- .../__snapshots__/index.test.tsx.snap | 142 ++++++++++++++++++ .../ignitus-Overlay/Components/index.test.tsx | 38 +++++ 2 files changed, 180 insertions(+) create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/__snapshots__/index.test.tsx.snap create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/index.test.tsx diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/__snapshots__/index.test.tsx.snap b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/__snapshots__/index.test.tsx.snap new file mode 100644 index 00000000..cda246c4 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/__snapshots__/index.test.tsx.snap @@ -0,0 +1,142 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` should render 1`] = ` +.emotion-4 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + background-color: rgba(0,0,102,0.89); + -webkit-backdrop-filter: blur(10px); + backdrop-filter: blur(10px); + width: 100%; + height: 100%; +} + +.emotion-3 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; +} + +.emotion-0 { + margin-bottom: 4rem; + height: 7.5rem; +} + +.emotion-0 path { + fill: white; +} + +.emotion-1 { + font-weight: 500; + font-size: 32px; + color: #ffffff; + margin-bottom: 1.5rem; +} + +.emotion-2 { + font-size: 16px; + font-weight: 400; + color: #ffffff; + margin: 0; +} + +
+
+ +

+ primary text +

+

+ secondary text +

+
+
+`; diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/index.test.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/index.test.tsx new file mode 100644 index 00000000..1fb92188 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Overlay/Components/index.test.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import { mount, render } from 'enzyme'; +import emotionSerializer, { matchers } from 'jest-emotion'; +import { Overlay } from './index'; +import * as O from '../styles'; +import { Paragraph } from '../../../..'; + +const props = { + primaryText: 'primary text', + secondaryText: 'secondary text', +}; + +let wrapper; + +expect.addSnapshotSerializer(emotionSerializer); +expect.extend(matchers); + +describe('', () => { + beforeEach(() => { + wrapper = mount(); + }); + + it('should render', () => { + wrapper = render(); + expect(wrapper).toMatchSnapshot(); + }); + + it('should render logo, heading, paragraph', () => { + expect(wrapper.find(O.Logo).length).toBe(1); + expect(wrapper.find(O.Heading).length).toBe(1); + expect(wrapper.find(Paragraph).length).toBe(1); + }); + + it('should render heading, paragraph as passed in props', () => { + expect(wrapper.find(O.Heading).text()).toBe(props.primaryText); + expect(wrapper.find(Paragraph).text()).toBe(props.secondaryText); + }); +}); From 7ab899af96cc9ea10fb200e1bdee98cd8573d277 Mon Sep 17 00:00:00 2001 From: LilianaCaetano Date: Sat, 4 Jul 2020 19:19:01 +0100 Subject: [PATCH 33/51] logo with spin --- .../ignitus-UserInterfaceBookRoutes/index.tsx | 2 + .../ignitus-Loader/Components/index.tsx | 9 ++++ .../ignitus-Atoms/ignitus-Loader/styles.ts | 41 +++++++++++++++++++ src/ignitus-Shared/index.ts | 4 ++ .../interfaceLoader/Components/index.tsx | 11 +++++ .../InterfaceSideNavigation/constants.ts | 4 ++ 6 files changed, 71 insertions(+) create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/Components/index.tsx create mode 100644 src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/styles.ts create mode 100644 src/ignitus-UserInterfaceBook/Components/Atoms/interfaceLoader/Components/index.tsx diff --git a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx index 80f8efec..210e6d38 100644 --- a/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx +++ b/src/ignitus-Routes/ignitus-UserInterfaceBookRoutes/index.tsx @@ -6,6 +6,7 @@ import { Notfound } from '../../ignitus-Shared'; import { interfaceButttons } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceButtons/Components'; import { interfaceNavigation } from '../../ignitus-UserInterfaceBook/Components/Organisms/interfaceNavigation/Components'; import { interfaceIcons } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceIcons/Components'; +import { interfaceLoader } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceLoader/Components'; import { interfaceTypography } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceTypography/Components'; import { interfaceCards } from '../../ignitus-UserInterfaceBook/Components/Atoms/interfaceCards/Components'; import { interfaceNotFound } from '../../ignitus-UserInterfaceBook/Components/Layouts/interfaceNotFound/Components'; @@ -83,6 +84,7 @@ export const UserInterfaceBookRoutes: React.FunctionComponent = () => ( component={interfaceNavigation} /> + ( + + + + +); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/styles.ts b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/styles.ts new file mode 100644 index 00000000..20805894 --- /dev/null +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/styles.ts @@ -0,0 +1,41 @@ +import styled from '@emotion/styled'; +import { IgnitusLogo } from '../../ignitus-Assets/ignitus-Icons/ignitusLogo'; + +export const Spinner = styled.div` + position: absolute; + top: 0; + left: 0; + + margin: auto; + border: 1rem solid #f3f3f3; + border-radius: 50%; + border-top: 1rem solid #000066; + height: calc(100% - 2rem); + width: calc(100% - 2rem); + -webkit-animation: spin 2.5s linear infinite; + animation: spin 3s linear infinite; + + @keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } + } +`; + +export const Logo = styled(IgnitusLogo)` + height: 65%; + fill: #000066; +`; + +export const Container = styled.div` + position: relative; + display: flex; + justify-content: center; + align-items: center; + margin: auto; + width: 10rem; + height: 10rem; +`; diff --git a/src/ignitus-Shared/index.ts b/src/ignitus-Shared/index.ts index 050160ab..90b51fd8 100644 --- a/src/ignitus-Shared/index.ts +++ b/src/ignitus-Shared/index.ts @@ -53,6 +53,10 @@ export { export { SecondaryDropDown, } from './ignitus-DesignSystem/ignitus-Atoms/ignitus-secondaryDropDown/Components'; + +export { + Loader, +} from './ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/Components'; /** * ignitus-Layout */ diff --git a/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceLoader/Components/index.tsx b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceLoader/Components/index.tsx new file mode 100644 index 00000000..e42fbaf7 --- /dev/null +++ b/src/ignitus-UserInterfaceBook/Components/Atoms/interfaceLoader/Components/index.tsx @@ -0,0 +1,11 @@ +import React from 'react'; +import { Interface } from '../../../../styles'; +import { Heading2 } from '../../../../../ignitus-Shared'; +import { Loader } from '../../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-Loader/Components'; + +export const interfaceLoader: React.FC = () => ( + + Loaders + + +); diff --git a/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts b/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts index 49576122..5fad335f 100644 --- a/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts +++ b/src/ignitus-UserInterfaceBook/InterfaceSideNavigation/constants.ts @@ -92,6 +92,10 @@ export const allEdges: Edges[] = [ }, ], }, + { + title: 'Loader', + route: '/interface/loader', + }, ], }, { From 2f51c4cd19ab6584f013bf41e922e288d43a34e1 Mon Sep 17 00:00:00 2001 From: Dishebh Date: Sun, 5 Jul 2020 14:29:56 +0530 Subject: [PATCH 34/51] removed all useEffect warnings --- src/ignitus-AboutPage/ignitus-Team/Components/index.tsx | 2 +- .../ignitus-ProfessorSignUp/Components/index.tsx | 2 +- .../ignitus-StudentSignUp/Components/index.tsx | 2 +- .../Components/defaultIconInput/index.tsx | 2 +- .../Components/defaultPasswordInput/index.tsx | 2 +- .../ignitus-secondaryDropDown/Components/index.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ignitus-AboutPage/ignitus-Team/Components/index.tsx b/src/ignitus-AboutPage/ignitus-Team/Components/index.tsx index 2bcd38a1..6b18736a 100644 --- a/src/ignitus-AboutPage/ignitus-Team/Components/index.tsx +++ b/src/ignitus-AboutPage/ignitus-Team/Components/index.tsx @@ -33,7 +33,7 @@ export const Team = withErrorBoundary( }: TeamPropType) => { useEffect(() => { getContributorsData(); - }, []); + }, [getContributorsData]); if (isFetching) { return ; diff --git a/src/ignitus-Authentication/ignitus-ProfessorSignUp/Components/index.tsx b/src/ignitus-Authentication/ignitus-ProfessorSignUp/Components/index.tsx index 47ac4633..b9010a65 100644 --- a/src/ignitus-Authentication/ignitus-ProfessorSignUp/Components/index.tsx +++ b/src/ignitus-Authentication/ignitus-ProfessorSignUp/Components/index.tsx @@ -14,7 +14,7 @@ export const SignUp: React.FC = withErrorBoundary( const { email, password, confirmPassword } = state; - useEffect(() => () => clearPreviousSignUp(), []); + useEffect(() => () => clearPreviousSignUp(), [clearPreviousSignUp]); const handleSubmit = e => { e.preventDefault(); diff --git a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-StudentSignUp/Components/index.tsx b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-StudentSignUp/Components/index.tsx index 7995556e..1d563d02 100644 --- a/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-StudentSignUp/Components/index.tsx +++ b/src/ignitus-Authentication/ignitus-StudentSignUpFlow/ignitus-StudentSignUp/Components/index.tsx @@ -13,7 +13,7 @@ export const Signup: FunctionComponent = withErrorBoundary( const [state, setState] = useState(SignupStatePayload); const { email, password, confirmPassword } = state; - useEffect(() => () => clearPreviousSignUp(), []); + useEffect(() => () => clearPreviousSignUp(), [clearPreviousSignUp]); const handleSubmit = e => { e.preventDefault(); diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultIconInput/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultIconInput/index.tsx index 1fbccc6b..93b755f1 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultIconInput/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultIconInput/index.tsx @@ -15,7 +15,7 @@ export const DefaultIconInput = ({ useEffect(() => { handleChange(value); - }, [value]); + }, [handleChange, value]); return ( diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultPasswordInput/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultPasswordInput/index.tsx index 8a6a807a..11a97f1c 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultPasswordInput/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultIconInput/Components/defaultPasswordInput/index.tsx @@ -27,7 +27,7 @@ export const DefaultPasswordInput = ({ useEffect(() => { handleChange(value); - }, [value]); + }, [handleChange, value]); return ( diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-secondaryDropDown/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-secondaryDropDown/Components/index.tsx index 6c8a24d0..ba79fcb1 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-secondaryDropDown/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-secondaryDropDown/Components/index.tsx @@ -24,7 +24,7 @@ export const SecondaryDropDown = ({ data }) => { } else { setShowOptions(false); } - }, [searchTerm]); + }, [searchTerm, data]); return ( From 0eccc1d91c50aef26b92910044989f99e53207d8 Mon Sep 17 00:00:00 2001 From: Dishebh Date: Sun, 5 Jul 2020 16:07:10 +0530 Subject: [PATCH 35/51] fix navbar issue --- .../ignitus-Navigation/Components/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx index 37f1d442..8d9232a6 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Organisms/ignitus-Navigation/Components/index.tsx @@ -18,6 +18,7 @@ const PureNavigation: React.FC = ({ ? AuthenticatedNavigationItemsList : NonAuthenticatedNavigationItemsList; const [isExpanded, toogleIsExpanded] = useToggle(true); + return ( @@ -29,7 +30,9 @@ const PureNavigation: React.FC = ({ key={title} transparentNavigation={transparentNavigation} > - {title} + + {title} + ))} From 02b78e87c1ddb93e98945fbcbd8203a9f9f1597d Mon Sep 17 00:00:00 2001 From: Dishebh Date: Sun, 5 Jul 2020 17:16:59 +0530 Subject: [PATCH 36/51] updated unit tests for ignitus-Atom --- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 12 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 12 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 12 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../defaultIconInput/index.test.tsx | 14 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../defaultPasswordInput/index.test.tsx | 16 ++--- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 12 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 12 ++-- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 12 ++-- .../__snapshots__/defaultTag.test.tsx.snap | 64 +++++++++---------- .../Components/defaultTag.test.tsx | 10 +-- .../__snapshots__/index.test.tsx.snap | 2 +- .../Components/index.test.tsx | 13 ++-- 20 files changed, 103 insertions(+), 104 deletions(-) diff --git a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultButtonWithIcon/Components/__snapshots__/index.test.tsx.snap b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultButtonWithIcon/Components/__snapshots__/index.test.tsx.snap index 2dab096d..c8c8aa52 100644 --- a/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultButtonWithIcon/Components/__snapshots__/index.test.tsx.snap +++ b/src/ignitus-Shared/ignitus-DesignSystem/ignitus-Atoms/ignitus-defaultButtonWithIcon/Components/__snapshots__/index.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` should rendered 1`] = ` +exports[`should rendered 1`] = `