Changeset e958037 for reactapp/src/Pages


Ignore:
Timestamp:
07/30/22 20:37:52 (2 years ago)
Author:
Viktor <mlviktor23@…>
Branches:
main
Children:
5347491
Parents:
2998dc4
Message:

added styling to /professor/{professorId} page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Pages/Professor.js

    r2998dc4 re958037  
    33import JSOG from "jsog";
    44import OpinionTree from "../Components/OpinionTree";
     5import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
     6import {
     7  solid,
     8  regular,
     9  brands,
     10} from "@fortawesome/fontawesome-svg-core/import.macro";
     11
     12import {
     13  ProfessorCard,
     14  ProfessorCardDetails,
     15  ProfessorCardName,
     16  ProfessorCardSeparator,
     17} from "../Components/ProfessorCard.style";
    518
    619function Professor(props) {
     
    3245    return (
    3346      <div>
    34         <h2>{professor.professorName}</h2>
    35         <h3>{professor.faculty.facultyName}</h3>
    36         <h3>Мислења</h3>
     47        <ProfessorCard>
     48          <ProfessorCardName>{professor.professorName}</ProfessorCardName>
     49          <ProfessorCardSeparator />
     50          <div style={{ marginTop: "20px" }}>
     51            <ProfessorCardDetails fontSize="20px">
     52              {professor.faculty.facultyName}
     53            </ProfessorCardDetails>
     54            <ProfessorCardDetails fontSize="15px">
     55              {professor.faculty.university.universityName}
     56            </ProfessorCardDetails>
     57          </div>
     58        </ProfessorCard>
     59        <h3>{professor.relatedOpinions.length} мислења</h3>
    3760        <div className="opinionTree">
    3861          <OpinionTree professor={professor} />
Note: See TracChangeset for help on using the changeset viewer.