Skip to content

Commit

Permalink
Merge pull request #32 from Jcruz525/main
Browse files Browse the repository at this point in the history
Fixing spacing in character select page
  • Loading branch information
chavi362 authored Jan 6, 2024
2 parents 7c6f51c + 750e3e4 commit b53da97
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
22 changes: 15 additions & 7 deletions css/characters.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
* {
box-sizing: border-box;
}
.character-page{
height: 100vh;
}

body {
margin: 0%;
Expand All @@ -26,45 +29,50 @@ h1 {
}

.logo {
margin-top: -4%;
margin-top: -7%;
margin-left: 40%;
margin-right: 40%;
width: 20%;
}

.character_photos {
display: flex;
height: 80%;
height: 65%;
width: 95%;
justify-content: space-evenly;
align-items: center;
}

.hero {
opacity: 0.5;
margin-top: -2%;
height: 300px;
}

header {
margin-bottom: 4%;
margin: 0;
}

.choose_your_hero {
margin-top: 9%;
margin: 0;
}

#hero1:hover {
width: 15%;
scale: 1.1;
opacity: 1;
cursor: pointer;
}

#hero2:hover {
width: 15%;
scale: 1.1;
opacity: 1;
cursor: pointer;
}

#hero3:hover {
width: 12%;
scale: 1.1;
opacity: 1;
cursor: pointer;
}

@media only screen and (max-width: 1485px) {
Expand Down
3 changes: 2 additions & 1 deletion css/iframe-hello-user.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
margin-top: 2%;
margin-left: 2%;
float: left;
min-width: 100px;
min-width: 150px;
min-height: 40px;
border-radius: 10px;
border: 1px solid #ccc;
color: #315bff;
Expand Down
12 changes: 6 additions & 6 deletions html/characters.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
<link rel="stylesheet" href="../css/characters.css" />
<link rel="icon" href="../image/icyTower.png" />

<title>Choose charecter</title>
<title>Choose Character</title>
</head>

<body>
<iframe src="../html/iframe-hello-user.html" frameborder="0"></iframe>
<a href="../html/icy-tower-home.html">
<img src="../image/back.png" class="back"
/></a>
<div class="character-page">
<iframe height="100px" width="200px" src="../html/iframe-hello-user.html" frameborder="0"></iframe>
<a href="../html/icy-tower-home.html">
<img src="../image/back.png" class="back"
/></a>
<header>
<img src="../image/icyTower.png" class="logo" />
<div class="choose_your_hero">
<h1>Choose your character</h1>
<h1 class="choose_your_hero">Choose your character</h1>
</div>
</header>

Expand Down
4 changes: 1 addition & 3 deletions js/iframe-hello-user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
function updateHeloUser() {
currentUser = JSON.parse(sessionStorage.getItem('currentUser'));
let spanFName = document.getElementById('user-first-name');
spanFName.innerHTML = 'hello ' + currentUser.firstName;
let spanUserName = document.getElementById('user-name');
spanUserName.innerHTML = currentUser.userName;
spanFName.innerHTML = 'Hello,' + currentUser.firstName;
}
updateHeloUser();

0 comments on commit b53da97

Please sign in to comment.