initial state organization.html

This commit is contained in:
xfarrow 2024-02-29 11:05:07 +01:00
parent bcd1f6980b
commit 69bc104b68
4 changed files with 86 additions and 2 deletions

View File

@ -0,0 +1,43 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.container {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
position: relative; /* To position the badge relative to the container */
}
h1, h2 {
text-align: center;
}
img.logo {
width: 150px;
height: 150px;
border-radius: 50%;
}
.organization-details {
margin-bottom: 10px;
}
.hiring-status {
margin-top: 20px;
text-align: center;
}
.logo-div {
text-align: center;
}
.hiring-badge {
position: absolute;
top: 20px;
right: 20px;
background-color: #4CAF50;
color: #fff;
padding: 5px 10px;
border-radius: 5px;
font-weight: bold;
}

View File

@ -54,9 +54,9 @@ footer {
}
.profile-picture {
width: 150px; /* Adjust size as needed */
width: 150px;
height: 150px;
border-radius: 50%; /* Make it circular */
border-radius: 50%;
margin-bottom: 10px;
}

View File

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
<link rel="stylesheet" href="../css/organization.css">
</head>
<body>
<div class="container">
<div class="hiring-badge">Now Hiring</div>
<div class="logo-div">
<img class="logo" src="../content/blink-logo-small.jpg" alt="Company Logo">
</div>
<h1>Blink</h1>
<div class="organization-details">
<p><b>Location: </b><label id="address">Naples, Italy</label></p>
<p><b>Email: </b><label id="email">contacts@blink-corporation.com</label></p>
<p><b>Hiring: </b><label id="isHiring">Yes</label></p>
</div>
<h2>About Us</h2>
<p id="description">Blink aims at creating a libre and decentralized LinkedIn alternative</p>
</div>
<script src="../js/constants.js"></script>
<script src="../js/utils.js"></script>
<script>
window.addEventListener("load", async function() {
loadOrganization();
});
function loadOrganization (){
const idToDisplay = new URLSearchParams(window.location.search).get('id');
}
</script>
</body>
</html>

View File

@ -69,6 +69,7 @@
});
}
else {
// To implement
response = await fetch(`${API_URL}/person/${idToDisplay}`, {
headers: {
"Content-type": "application/json; charset=UTF-8",