Skip to content

Commit dd72903

Browse files
authored
Merge pull request #151 from Pablosgit/feature/implementar-color-fondo--student-and-trainer
cambio estilos input trainer y student header component
2 parents 85ce52f + 1a759f4 commit dd72903

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

front/src/pods/trainer/components/header.component.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ export const HeaderComponent: React.FC<Props> = props => {
2020
<CopyFieldComponent
2121
labelName="Trainer Link"
2222
inputId="trainer-link"
23+
className={innerClasses.trainerBackgroundColor}
2324
urlLink={currentTrainerUrl ?? ''}
2425
/>
2526
<CopyFieldComponent
2627
labelName="Students Link"
2728
inputId="student-link"
29+
className={innerClasses.studentBackgroundColor}
2830
urlLink={currentStudentUrl ?? ''}
2931
/>
3032
</div>
@@ -37,10 +39,11 @@ interface CopyFieldProps {
3739
labelName: string;
3840
inputId: string;
3941
urlLink: string;
42+
className?: string;
4043
}
4144

4245
export const CopyFieldComponent: React.FC<CopyFieldProps> = props => {
43-
const { labelName, inputId, urlLink } = props;
46+
const { labelName, inputId, urlLink, className } = props;
4447

4548
const [open, setOpen] = React.useState(true);
4649

@@ -69,7 +72,7 @@ export const CopyFieldComponent: React.FC<CopyFieldProps> = props => {
6972
<input
7073
id={inputId}
7174
type="text"
72-
className={innerClasses.input}
75+
className={cx(innerClasses.input, className)}
7376
value={urlLink}
7477
readOnly
7578
aria-readonly

front/src/pods/trainer/components/header.styles.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ export const icon = css`
6767
font-size: 1.875rem;
6868
`;
6969

70+
export const trainerBackgroundColor = css`
71+
background-color: #F0A0A0;
72+
`;
73+
74+
export const studentBackgroundColor = css`
75+
background-color: #62A39B;
76+
`;
77+
7078
export const button = css`
7179
width: ${spacing(7.375)};
7280
height: ${spacing(7.375)};

0 commit comments

Comments
 (0)