Skip to content

Commit ebf9223

Browse files
author
TAN0013\Tandin Wangchen
committed
beautify
1 parent 17fb0c4 commit ebf9223

3 files changed

Lines changed: 39 additions & 31 deletions

File tree

frontend/src/Home/aboutUs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, {Component} from 'react';
22
import './styles/aboutus.css'
3-
import profilepic from "./images/profilepic.jpg";
43
import img from './images/ab2.png'
54
import img1 from './images/ab1.png'
65

@@ -20,7 +19,7 @@ class AboutUs extends Component {
2019
<p className="aboutus_titles"><h1> About us </h1></p>
2120
<p className="about_content">
2221
We are a leading non-state degree awarding institute approved by the University Grants Commission (UGC) under the Universities Act. We are members of the Association of Commonwealth Universities (ACU), as well as the International Association of Universities (IAU). We are also the first Sri Lankan institute to be accredited by the Institution of Engineering & Technology, UK.
23-
SLIIT was established in 1999. We opened our doors to 400 students in Metro Campus in Colombo. Currently, we offer both undergraduate and postgraduate courses and accommodate over 9000 students, including international students from various regions in the world. More than 9000 alumni have graduated from our faculties. We take great pride in producing graduates who make meaningful contributions to their communities and professions.
22+
Taprobane was established in 1999. We opened our doors to 400 students in Metro Campus in Colombo. Currently, we offer both undergraduate and postgraduate courses and accommodate over 9000 students, including international students from various regions in the world. More than 9000 alumni have graduated from our faculties. We take great pride in producing graduates who make meaningful contributions to their communities and professions.
2423
</p>
2524
</div>
2625
</div>

frontend/src/components/Profile.js

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,48 @@
11
import React from "react";
22
import AuthService from "../services/auth.service";
3+
import img from './images/profile.png'
34

45
const Profile = () => {
56
const currentUser = AuthService.getCurrentUser();
67
return (
7-
<div className="container">
8-
<header className="jumbotron">
9-
10-
<center><h1>Profile</h1></center>
11-
<h3>
12-
<strong>UserName: </strong>{currentUser.username}
13-
</h3>
14-
</header>
15-
16-
<header className="jumbotron">
17-
<p>
18-
<strong>Token:</strong> {currentUser.accessToken.substring(0, 20)} ...{" "}
19-
{currentUser.accessToken.substr(currentUser.accessToken.length - 20)}
20-
</p>
21-
<p>
22-
<strong>Id:</strong> {currentUser.id}
23-
</p>
24-
<p>
25-
<strong>Email:</strong> {currentUser.email}
26-
</p>
27-
<p>
28-
<strong>Phone Number:</strong> +94 {currentUser.number}
29-
</p>
30-
<strong>Authorities:</strong>
31-
<ul>
32-
{currentUser.roles &&
33-
currentUser.roles.map((role, index) => <li key={index}>{role}</li>)}
34-
</ul>
35-
</header>
8+
<div className="container mt-4 shadow p-3 mb-5 bg-body rounded">
9+
<div className="p-3 row">
10+
<div className="col-md-6">
11+
<img src={img} height="400px" alt="" className="mt-0 ml-5"/>
12+
</div>
13+
14+
<div className="col-md-6">
15+
<div className="container">
16+
<div className="col-sm-12 col-md-9">
17+
<p className="aboutus_titles"><br/><br/>
18+
<h1> Profile </h1>
19+
</p>
20+
<p className="con">
21+
<p>
22+
<strong>Token:</strong> {currentUser.accessToken.substring(0, 20)} ...{" "}
23+
{currentUser.accessToken.substr(currentUser.accessToken.length - 20)}
24+
</p>
25+
<p>
26+
<strong>Id:</strong> {currentUser.id}
27+
</p>
28+
<p>
29+
<strong>Email:</strong> {currentUser.email}
30+
</p>
31+
<p>
32+
<strong>Phone Number:</strong> +94 {currentUser.number}
33+
</p>
34+
<strong>Authorities:</strong>
35+
<ul>
36+
{currentUser.roles &&
37+
currentUser.roles.map((role, index) => <li key={index}>{role}</li>)}
38+
</ul>
39+
</p>
40+
</div>
41+
</div>
42+
</div>
43+
</div>
3644
</div>
45+
3746
);
3847
};
3948

42.3 KB
Loading

0 commit comments

Comments
 (0)