Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Milestone 3 : Final touches #3

Merged
merged 2 commits into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ <h1>Leaderboard</h1>
<div class="content">
<form>
<h2>Add your score</h2>
<input type="text" placeholder="Your name" required id="name" />
<input type="text" placeholder="Your score" required id="score" />
<input type="text" placeholder="Your name" name="user" required id="name" />
<input type="text" placeholder="Your score" name="score" required id="score" />
<input type="submit" value="submit" id="submit" />
</form>
<section class="left">
Expand Down
14 changes: 12 additions & 2 deletions dist/main.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified src/images/ScreenShoot.PNG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 37 additions & 7 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
}

main {
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 20px;
background-color: rgb(109, 109, 207);
top: 0;
bottom: 0;
right: 0;
left: 0;
}

main h1 {
Expand Down Expand Up @@ -39,14 +45,28 @@ main .content form h2 {
}

main .content form input {
border: 3px solid black;
border: 1px solid #fff;
padding: 5px 10px;
width: 200px;
border-radius: 5px;
}

main .content form input:focus {
border: none;
}

main .content form input[type="submit"] {
box-shadow: 2px 2px 2px black;
background: #fff;
background: rgba(69, 158, 69, 0.61);
align-self: flex-end;
padding: 8px 10px;
font-size: 18px;
color: #fff;
border: 2px solid rgba(151, 224, 148, 0.623);
}

main .content form input[type="submit"]:focus,
main .content form input[type="submit"]:hover {
background: green;
}

main .content section {
Expand All @@ -67,17 +87,27 @@ main .content section .scorestitle h2 {
}

main .content section .scorestitle button {
box-shadow: 2px 2px 2px black;
background: rgba(69, 158, 69, 0.61);
align-self: flex-end;
padding: 5px 10px;
background: #fff;
font-size: 15px;
color: #fff;
border: 2px solid rgba(151, 224, 148, 0.623);
}

main .content section .scorestitle button:focus,
main .content section .scorestitle button:hover {
background: green;
}

main .content section .scores {
border: 2px solid black;
border: 2px solid rgb(60, 163, 211);
width: 300px;
height: 200px;
height: 300px;
overflow: hidden;
overflow-y: scroll;
padding: 10px;
box-shadow: 3px 3px 5px rgba(151, 224, 148, 0.623);
}

main .content section .scores li {
Expand Down