Skip to content

Codigotchi 3 #7

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

Open
wants to merge 1 commit into
base: 03-codigotchi-02
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 03-codigotchi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
<main>

<!-- Add the codigotchi and its screen -->
<section>
<section class="codigotchi">
<img src="images/codigotchi.png" />
<div class="codigotchi-screen"></div>
</section>

<!-- Add control elements -->
Expand Down
28 changes: 28 additions & 0 deletions 03-codigotchi/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,31 @@ h3 {
font-size: 24px;
font-weight: bold;
}

/* Step 3: Codigotchi and Button */

button {
border: none;
background-color: #f71469;
border-radius: 8px;
padding: 12px 16px;
margin: 12px;
}

.codigotchi {
position: relative;
width: 230px;
margin: 0 auto 24px auto;
}

.codigotchi-screen {
position: absolute;
top: 118px;
left: 56px;
width: 120px;
height: 120px;
background-image: url('./images/static.png');
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
}