Skip to content

Commit

Permalink
Merge pull request #20 from tarnibalgoher5/Tarni
Browse files Browse the repository at this point in the history
About us page added
  • Loading branch information
Durgesh4993 authored Feb 1, 2024
2 parents a7b6ac4 + 50a915b commit c2bb6f1
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 29 deletions.
97 changes: 84 additions & 13 deletions aboutus.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,97 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!--
- favicon
-->
<!--- favicon-->
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">

<!--
- custom css link
-->
<link rel="stylesheet" href="./assets/css/style.css">

<!--
- google font link
-->
<!---custom css link-->
<link rel="stylesheet" href="./assets/css/aboutusstyle.css">
<!--- google font link-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
rel="stylesheet">
</head>
<body class="">
<h1>GameSphere</h1>
<body class="">
<div id="main-div">
<div class="mainhead"><p class="head">About Us</p> </div>

<div class="intro">


<div class="child-left">
<p class="welcome-head">Welcome to</p>
<p class="second-head">GameSphere</p>
</div>

<div class="child-right">
<p class="intro-text">
<pre>
This platform is for every user where you are
free to play any game without paying any fee
with your friend.This platform also provides
you a chance to create your own game and
get firm or reward.</pre>
</p>

</div>
</div>

<div class="contributors">
<p class="head">Contributors</p>
<div id="contributors">


</div>
</div>
<div class="contactus">
<p class="contact">
Don't Forget to connect with us
</p>
<p>
<a href="https://www.linkedin.com/company/gamesphere-multiplayer/?viewAsMember=true">
<i class="fa-brands fa-linkedin-in"></i>
</a>

<a href="https://github.com/GameSphere-MultiPlayer">
<i class="fa-brands fa-github"></i>
</a>
</p>
</div>
</div>
<script>
//contributors list
async function fetchGitHubContributors(username, repo) {
const apiUrl = `https://api.github.com/repos/${username}/${repo}/contributors`;

try {
const response = await fetch(apiUrl);
const data = await response.json();
displayContributors(data);
}
catch (error) {
console.error('Error!', error);
}
}

function displayContributors(contributors) {
const contributorsList=document.getElementById('contributors');

contributors.forEach(contributor => {
const contributorDiv = document.createElement('div');
contributorDiv.setAttribute("class","profile");
contributorDiv.innerHTML = `
<img src="${contributor.avatar_url}" alt="${contributor.login}" width="70" height="70">
<p>${contributor.login}</p>
`;
contributorsList.appendChild(contributorDiv);
});
}
fetchGitHubContributors('GameSphere-MultiPlayer', 'GameSphere3.0');

</script>
<script src="https://kit.fontawesome.com/5bda9429cc.js" crossorigin="anonymous"></script>
</body>
</html>
152 changes: 152 additions & 0 deletions assets/css/aboutusstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
/* about us page style */
:root {

/**
* colors
*/

--rich-black-fogra-29: hsl(225, 25%, 9%);
--rich-black-fogra-39: hsl(170, 21%, 5%);
--raisin-black: hsl(228, 13%, 15%);
--eerie-black: hsl(207, 19%, 11%);
--light-gray: hsl(0, 3%, 80%);
--gunmetal-1: hsl(229, 15%, 21%);
--gunmetal-2: hsl(216, 22%, 18%);
--gainsboro: hsl(0, 7%, 88%);
--citrine: hsl(187, 87%, 51%);
--xiketic: hsl(253, 21%, 13%);
--gray-x: hsl(0, 0%, 74%);
--white: hsl(0, 100%, 100%);
--black: hsl(0, 0%, 0%);
--jet: hsl(0, 0%, 20%);
/*typography */
--ff-poppins: 'Poppins', sans-serif;

--fs-1: 36px;
--fs-2: 32px;
--fs-3: 30px;
--fs-4: 24px;
--fs-5: 20px;
--fs-6: 18px;
--fs-7: 16px;
--fs-8: 15px;
--fs-9: 14px;
--fs-10: 13px;
--fs-11: 12px;
--fs-12: 11px;

--fw-500: 500;
--fw-700: 700;
/*** transition */
--transition-1: 0.15s ease;
--transition-2: 0.25s ease-in;
/*** spacing*/
--section-padding: 100px;
}
body{
background-color:var(--eerie-black);
color: white;

}

.head{
text-align: center;
margin:30px 5px 7px 5px;
font-size: 75px;
}

.welcome-head{
text-align: center;
margin-left:5%;
font-size:70px ;
margin-bottom: 0%;
margin-top:20px;
}

.second-head{
font-size: 85px;
margin: 0% auto auto 7%;
padding:5px 5px;

}

pre {
text-align: left;
font-size: 20px;
padding: 0px 0px;
font-family:var(--ff-poppins);
margin:45px 5px 5px 15px;
}

.intro{
margin-bottom: 20px;
display: flex;
margin-top: 20px;
}
.child-left{
margin-right: 20%;
}
.child-left, .child-right{
display: inline;
}

/* contributors */
.contributors{
margin-top: 5%;
margin-bottom: 5%;
}
#contributors{
display: flex;
text-align: center;
margin-left: 15%;
margin-top: 2%;
}

.profile{
display:inline;
margin: 3px 3px;
padding: 3px 3px;
}

.profile img{
border-radius: 40px;
padding: 5px 5px;
}

.profile p{
font-size: 22px;
padding: 3px 3px;
}
/* connect us section*/
.contactus{
text-align: center;
padding:15px 15px;
margin:10px 0 0 0;
transition: opacity 0.5s ease-in-out;
}

.contact{
font-size: 25px;
margin: 0%;
}

/* icons */
.fa-brands{
color: white;
margin:0 25px 0px 25px;
font-size:50px;
}

.fa-linkedin-in:hover{
font-size:55px;
color: rgb(29, 118, 153);
}

.fa-github:hover{
font-size:55px;
color:rgb(105, 29, 175)
}




23 changes: 8 additions & 15 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
--section-padding: 100px;

}

@import url(https://fonts.googleapis.com/css?family=Poiret+One);
//import url quotes added
@import url('https://fonts.googleapis.com/css?family=Poiret+One');
/******************** Loading Page ************************/
.loadFont {
font-family: 'Poiret One', cursive;
Expand Down Expand Up @@ -518,7 +518,7 @@ body.active { overflow: hidden; }
background-position: center;
min-height: 750px;
height: 100vh;
max-height: 1000px;
max-height: 1000px;
display: flex;
justify-content: flex-start;
align-items: center;
Expand Down Expand Up @@ -949,9 +949,6 @@ body.active { overflow: hidden; }
}





/*-----------------------------------*\
* #MOVIE DETAIL
\*-----------------------------------*/
Expand Down Expand Up @@ -1227,7 +1224,7 @@ body.active { overflow: hidden; }
content: "";
position: absolute;
top: 1px;
right: -20px;
right:-20px;
background: hsla(0, 0%, 100%, 0.1);
width: 2px;
height: 14px;
Expand Down Expand Up @@ -1285,14 +1282,16 @@ body.active { overflow: hidden; }
margin-inline: auto;
}

.cta .email-field { margin-bottom: 0; }
.cta .email-field {
margin-bottom: 0;
}

.cta-form-btn {
position:relative;
top: 1px;
right: 1px;
bottom: 1px;
max-height: 1 px;
max-height: 1px;
}


Expand Down Expand Up @@ -1608,12 +1607,6 @@ body.active { overflow: hidden; }
font-size: 30px;
transform: rotate(-0.25turn);
}


}

/**
* SIGN IN PAGE
*/


2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Title
-->
<title>Filmlane - Best movie collections</title>

<!--
- favicon
-->
Expand Down
26 changes: 26 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//contributors list


//on scroll animation
document.addEventListener("DOMContentLoaded", function () {
const animatedBox = document.getElementById("main-div");
function isInViewport(element) {
const rect = element.getBoundingClientRect();
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
);
}

//scroll events
function handleScroll() {
if (isInViewport(animatedBox)) {
animatedBox.classList.add("show");
}
}
handleScroll();
window.addEventListener("scroll", handleScroll);
});

0 comments on commit c2bb6f1

Please sign in to comment.