working from 42
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -108,10 +108,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<section class="main-stats">
|
<section class="main-stats">
|
||||||
<h4>Match Statistics</h4>
|
<h4>Match Statistics</h4>
|
||||||
<p>Total: {user.stats.totalGame}</p>
|
|
||||||
<p>Victories: {user.stats.winGame}</p>
|
<p>Victories: {user.stats.winGame}</p>
|
||||||
<p>Losses: {user.stats.loseGame}</p>
|
<p>Losses: {user.stats.loseGame}</p>
|
||||||
<p>Draws: {user.stats.drawGame}</p>
|
<p>Draws: {user.stats.drawGame}</p>
|
||||||
|
<p class="highlight">Total: {user.stats.totalGame}</p>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -174,6 +174,30 @@
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.highlight{
|
||||||
|
grid-column: 1 / span 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
section.main-stats{
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
section.main-stats h4{
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
section.main-stats p{
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Glittery Star Stuff */
|
/* Glittery Star Stuff */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,16 +22,17 @@
|
|||||||
|
|
||||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<header>
|
<header>
|
||||||
<img src="/img/potato_logo.png" alt="Potato Pong Logo" on:click={() => (push('/'))}>
|
<div>
|
||||||
<h1>Potato Pong</h1>
|
<img src="/img/potato_logo.png" alt="Potato Pong Logo" on:click={() => (push('/'))}>
|
||||||
|
<h1>Potato Pong</h1>
|
||||||
|
</div>
|
||||||
<nav>
|
<nav>
|
||||||
<button class:selected="{current === '/game'}" on:click={() => (push('/game'))}>Play</button>
|
<button class:selected="{current === '/game'}" on:click={() => (push('/game'))}>Play</button>
|
||||||
<button class:selected="{current === '/spectator'}" on:click={() => (push('/spectator'))}>Spectate</button>
|
<button class:selected="{current === '/spectator'}" on:click={() => (push('/spectator'))}>Spectate</button>
|
||||||
<button class:selected="{current === '/ranking'}" on:click={() => (push('/ranking'))}>Ranking</button>
|
<button class:selected="{current === '/ranking'}" on:click={() => (push('/ranking'))}>Ranking</button>
|
||||||
<button class:selected="{current === '/profile'}" on:click={() => (push('/profile'))}>My Profile</button>
|
<button class:selected="{current === '/profile'}" on:click={() => (push('/profile'))}>My Profile</button>
|
||||||
<!-- <button class:selected="{current === '/profile/settings'}" on:click={() => (push('/profile/settings'))}>Settings</button> -->
|
<button class:selected="{current === '/profile/friends'}" on:click={() => (push('/profile/friends'))}>Friends</button>
|
||||||
<button class:selected="{current === '/profile/friends'}" on:click={() => (push('/profile/friends'))}>Friends</button>
|
<button on:click={handleClickLogout}>Log Out</button>
|
||||||
<button on:click={handleClickLogout}>Log Out</button>
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -76,8 +77,11 @@
|
|||||||
/* for some reason this doesn't do shit! */
|
/* for some reason this doesn't do shit! */
|
||||||
position: sticky;
|
position: sticky;
|
||||||
/* position: absolute; */
|
/* position: absolute; */
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
/* display: grid; */
|
||||||
|
/* grid-template-columns: 1fr 1fr 1fr; */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Headers */
|
/* Headers */
|
||||||
@@ -104,18 +108,39 @@
|
|||||||
justify-self: left;
|
justify-self: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header div {
|
||||||
|
display: flex;
|
||||||
|
justify-self: center;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
nav{
|
nav{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: right;
|
/* justify-content: flex-end; */
|
||||||
|
justify-content: space-evenly;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav button{
|
nav button{
|
||||||
margin: 7px 20px;
|
margin: 7px 20px;
|
||||||
|
/* margin: 7px auto; */
|
||||||
/* padding: 5px; */
|
/* padding: 5px; */
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .none{
|
|
||||||
|
|
||||||
} */
|
@media screen and (max-width: 350px) {
|
||||||
|
nav button{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
header div{
|
||||||
|
flex-wrap: wrap;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
</ChatBox>
|
</ChatBox>
|
||||||
|
|
||||||
<!-- TMP DEBUG -->
|
<!-- TMP DEBUG -->
|
||||||
<Debug bind:layouts />
|
<!-- <Debug bind:layouts /> -->
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export const profileRoutes = {
|
|||||||
'/': ProfileDisplay,
|
'/': ProfileDisplay,
|
||||||
'/settings': ProfileSettings,
|
'/settings': ProfileSettings,
|
||||||
'/friends': ProfileFriends,
|
'/friends': ProfileFriends,
|
||||||
|
// '/friends/:username': AProfile,
|
||||||
'*': NotFound
|
'*': NotFound
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user