-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from IntelligentBeaver/sfd-2024
Added Our Team Page and Minor Improvements to other pages.
- Loading branch information
Showing
12 changed files
with
253 additions
and
28 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1976,4 +1976,4 @@ video { | |
font-size: 3rem; | ||
line-height: 1; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{ | ||
"name": "Sujal Bikram Thapa", | ||
"designation": "Graphics/Web Designer", | ||
"image": "../assets/members/Sujal_Bikram_Thapa.jpeg", | ||
"socialLinks": { | ||
"facebook": "https://www.facebook.com/sujalbikramthapa", | ||
"instagram": "https://www.instagram.com/sujalbthapa/", | ||
"linkedin": "https://www.linkedin.com/in/sujalbthapa/", | ||
"github": "https://github.com/sujalbthapa", | ||
"website": "https://sujalbthapa.com.np/" | ||
} | ||
}, | ||
{ | ||
"name": "Rishav Chapagain", | ||
"designation": "Web Developer", | ||
"image": "../assets/members/Rishav.jpg", | ||
"socialLinks": { | ||
"facebook": "https://www.facebook.com/rishavosaurus", | ||
"instagram": "https://www.instagram.com/rishavosaurus/", | ||
"linkedin": "https://www.linkedin.com/in/rishav-chapagain/", | ||
"github": "https://github.com/RishavOsaurus/", | ||
"website": "#" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Function to create cards | ||
function createCard(member) { | ||
return ` | ||
<div id="members-card" class="relative w-80 rounded-3xl shadow-lg overflow-hidden"> | ||
<!-- Background Image --> | ||
<img id="profile" src="${member.image}" alt="${member.name}" class="w-full rounded-3xl h-96 object-cover border-8 border-white"> | ||
<!-- Overlay with text --> | ||
<div class="absolute text-center bottom-0 left-0 w-full bg-black bg-opacity-60 text-white p-4"> | ||
<h2 class="text-xl font-semibold">${member.name}</h2> | ||
<p class="text-sm">${member.designation}</p> | ||
<!-- Icons --> | ||
<div class="flex justify-center gap-4 mt-4"> | ||
<a href="${member.socialLinks.instagram}" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/instagram.svg" class=""> | ||
</a> | ||
<a href="${member.socialLinks.facebook}" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/facebook.svg" class=""> | ||
</a> | ||
<a href="${member.socialLinks.linkedin}" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/linkedin.svg" class=""> | ||
</a> | ||
<a href="${member.socialLinks.github}" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/github.svg" class=""> | ||
</a> | ||
<a href="${member.socialLinks.website}" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/website.svg" class=""> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
} | ||
|
||
// Function to render all cards here | ||
// Gets elemnt by id (members-container) and insert inside the tag... | ||
async function fetchCards() { | ||
try { | ||
const response = await fetch('../data/members.json'); | ||
const members = await response.json(); | ||
|
||
const container = document.getElementById('members-container'); | ||
members.forEach(member => { | ||
container.innerHTML += createCard(member); | ||
}); | ||
} catch (error) { | ||
console.error('Error fetching the JSON data', error); | ||
} | ||
} | ||
|
||
// Call the function to render cards... | ||
window.onload = fetchCards; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Our Team</title> | ||
<link rel="stylesheet" href="/css/output.css"> | ||
|
||
<style> | ||
#intro { | ||
padding: 2rem 0; | ||
text-align: center; | ||
position: relative; | ||
} | ||
|
||
#intro h1 { | ||
font-size: 2.5rem; | ||
font-weight: bold; | ||
margin-bottom: 0.5rem; | ||
position: relative; | ||
} | ||
|
||
#intro .lines-container { | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
#intro .line { | ||
position: absolute; | ||
height: 4px; | ||
transition: width 0.3s; | ||
} | ||
|
||
#intro .line.first { | ||
background-color: #FFCD29; | ||
width: 180px; | ||
top: 0; | ||
} | ||
|
||
#intro .line.middle { | ||
background-color: #208820; | ||
width: 220px; | ||
top: 8px; | ||
} | ||
|
||
#intro .line.last { | ||
background-color: #E4554E; | ||
width: 180px; | ||
top: 16px; | ||
} | ||
|
||
#profile { | ||
filter: grayscale(100%); | ||
transition: all 0.3s ease-in-out; | ||
} | ||
|
||
#profile:hover { | ||
filter: grayscale(0%); | ||
} | ||
</style> | ||
</head> | ||
|
||
<body class="bg-grid font-bahnschrift max-w-screen max-h-screen" id="body"> | ||
|
||
<section id="intro" class="py-10"> | ||
<div class="text-center"> | ||
<h1 class="text-4xl font-bold">Our Team</h1> | ||
<div class="lines-container"> | ||
<span class="line first"></span> | ||
<span class="line middle"></span> | ||
<span class="line last"></span> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
|
||
<div class="container max-w-5xl mx-auto p-6"> | ||
<div id="members-container" | ||
class="grid justify-items-center grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | ||
<!-- Members insterted --> | ||
</div> | ||
</div> | ||
|
||
|
||
<!-- Footer --> | ||
<footer></footer> | ||
|
||
<script src="/js/members.js"></script> | ||
<script src="/js/navbar.js"></script> | ||
<script src="/js/footer.js"></script> | ||
</body> | ||
|
||
</html> | ||
|
||
<!-- | ||
<div id="members-card" class="relative w-80 rounded-3xl shadow-lg overflow-hidden"> | ||
<img id="profile" src="/assets/members/Sujal_Bikram_Thapa.jpeg" alt="Profile Image" class="w-full rounded-3xl h-96 object-cover border-8 border-white"> | ||
<div class="absolute text-center bottom-0 left-0 w-full bg-black bg-opacity-60 text-white p-4"> | ||
<h2 class="text-xl font-semibold">Sujal Bikram Thapa</h2> | ||
<p class="text-sm">Graphics/Web Designer</p> | ||
<div class="flex justify-center gap-4 mt-4"> | ||
<a href="#" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/instagram.svg" class=""> | ||
</a> | ||
<a href="#" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/facebook.svg" class=""> | ||
</a> | ||
<a href="#" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/linkedin.svg" class=""> | ||
</a> | ||
<a href="#" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/website.svg" class=""> | ||
</a> | ||
<a href="#" class="bg-white rounded-full border-4 flex items-center justify-center w-8 h-8"> | ||
<img src="../assets/socialmedia/website.svg" class=""> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
--> |