Skip to content

Commit

Permalink
Merge pull request #10 from CodeURJC-DAW-2022-23/fix-Profile-page
Browse files Browse the repository at this point in the history
fix: profile page
  • Loading branch information
Kr4ll authored Feb 20, 2023
2 parents bf7685c + f41dab1 commit 4a3921a
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 65 deletions.
88 changes: 88 additions & 0 deletions front/src/public/extern-profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles/profile.css" rel="stylesheet">
<link href="styles/styles.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link href="styles/bootstrap/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer">
<title>Profile</title>
</head>

<body class="text-center " >
<nav class="navbar navbar-expand-lg bg-black">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-1">
<a class="navbar-brand" href="index.html">
<img src="images/alistLogo.svg" alt="" width="80" height="30">
</a>
</div>
<div class="col-3 d-flex justify-content-around ps-5 pe-2">
<i class="fa-regular fa-compass fa-xl"></i>
</div>
<div class="col-4 ps-0">
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
</form>
</div>
<div class="col-4 d-flex justify-content-around">
<i class="fa-regular fa-heart fa-xl"></i>
<i class="fa-regular fa-user fa-xl"></i>
</div>

</div>
</div>
</nav>
<div class="container-fluid ">
<div class="row ">
<div class="profile-nav col-md-3 text-white p-6 ">
<div class="profile-pic text-center" >
<img src="images/profile_picture.jpg" alt="profilePic" class="prof-pic rounded-circle ">
</div>
<div class="row text-inherit m-0 d-flex align-items-center">
<div class="col prof-name fs-2">
UserName
</div>

</div>
<div class="row fs-5">
<div class="col">
4k <br><small>Following</small>
</div>
<div class="col">
10k <br> <small>Followers</small>
</div>
</div>
<div class="btn-follow">
<button class="btn btn-primary btn-round">Follow</button>
</div>
<hr>
<div>
<p>
(づ。◕‿‿◕。)づ
<br>
-Spits facts daily
<br>
-Best opinions all around
<br>
-Don't hate pls
@gledrian.dev_
</p>
</div>
</div>
<div class="profile-info col-md-9 p-6">

</div>
</div>
</div>
</div>
</body>

</html>
128 changes: 78 additions & 50 deletions front/src/public/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,88 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles/profile.css" rel="stylesheet">
<link href="styles/styles.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link href="styles/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet"
type='text/css'>
<title>Profile</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles/profile.css" rel="stylesheet">
<link href="styles/styles.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link href="styles/bootstrap/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer">
<title>Profile</title>
</head>

<body>
<div class="container-fluid p-0">
<div class="row m-0">
<div class=" col-4 text-white p-6">
<div class="pb-3">
<img src="images/profile_picture.jpg" alt="profilePic" class="rounded-circle .img-fluid">
</div>
<div class="row text-inherit m-0 d-flex align-items-center">
<div class="col fs-2 ps-0">
Gledrian
</div>
<div class="col-2 btn-setting">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
<i class="fa fa-regular fa-gear"></i></button>
</div>
</div>
</div>
<div class="row fs-5">
<div class="col">
4 following
</div>
<div class="col">
0 Followers
</div>
</div>
<hr>
<div class="bio m-0">
(づ。◕‿‿◕。)づ
<br>
-Spits facts daily
<br>
-Best opinions all around
<br>
-Don't hate pls
@gledrian.dev_
</div>
</div>
<div class="col-8 p-6">
</div>
<body class="text-center">
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-1">
<a class="navbar-brand" href="index.html">
<img src="images/alistLogo.svg" alt="" width="80" height="30">
</a>
</div>
<div class="col-3 d-flex justify-content-around ps-5 pe-2">
<i class="fa-regular fa-compass fa-xl"></i>
</div>
<div class="col-4 ps-0">
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
</form>
</div>
<div class="col-4 d-flex justify-content-around">
<i class="fa-regular fa-heart fa-xl"></i>
<i class="fa-regular fa-user fa-xl"></i>
</div>
</div>
</div>
</nav>

<main class="row">

<div class="profile-container col-md-4 text-white">
<div class="profile-pic text-center pt-3">
<img src="images/profile_picture.jpg" alt="profilePic" class="prof-pic rounded-circle ">
</div>
<div class="row text-inherit m-0 d-flex align-items-center">
<div class="col prof-name fs-2">
Username
</div>
<div class="col btn-setting">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
<i class="fa-solid fa-gear"></i></button>
</div>
</div>
</div>
<div class="row fs-5">
<div class="col">
4k <br><small>Following</small>
</div>
<div class="col">
10k <br> <small>Followers</small>
</div>
</div>
<hr>
<div class="bio-container">
<p>
(づ。◕‿‿◕。)づ
<br>
-Spits facts daily
<br>
-Best opinions all around
<br>
-Don't hate pls
@gledrian.dev_
</p>
</div>
</div>
<div class="post-container col-md-8 p-0">
<div class="vl"></div>
</div>
</main>
</div>
</body>

</html>
58 changes: 43 additions & 15 deletions front/src/public/styles/profile.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,59 @@
.btn-setting .btn-primary {
border: none;
background-color: black;
border: 1px solid white;
background-color: inherit;
color: white;
}

.btn-setting .btn-primary:hover {
background-color: black;
}

.row {
height: inherit;
width: 100%;
.prof-pic {
max-width: 100%;
height: auto;
margin-bottom: 20px;
}

.container-fluid {
height: 100vh;
background-color: black;
.btn-follow .btn-primary {
border: none;
background-color: #2d474f;
margin-top: 20px;
margin-bottom: 20px;
}

.prof-name {
margin-left: 15%;
.btn-follow .btn-primary:hover,
.btn-follow:active .btn-primary:focus {
background-color: #63b1b1;
}

img {
display: block;
max-width: 100%;
height: auto;
@media only screen and (max-width: 320px) {
main .row {
height: auto;
}
}
/*Nav bar*/
.fa-regular {
color: white;
}

.bio {
.navbar .row {
width: 100vw;
}
nav {
border-bottom: 1px solid gray;
}

i {
cursor: pointer;
}

.vl {
border-left: 1px solid gray;
height: 100%;
width: 1px;
}

main {
height: 100vh;
padding: 0 1rem;
}
5 changes: 5 additions & 0 deletions front/src/public/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ i {
.btn-primary:active:focus {
background-color: #63b1b1;
}

hr {
color: gray !important;
opacity: 1 !important;
}

0 comments on commit 4a3921a

Please sign in to comment.