Skip to content

Codigotchi 2 #6

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 2 commits into
base: 03-codigotchi-01
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
8 changes: 4 additions & 4 deletions 03-codigotchi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>
<body>

<div>
<div class="container">

<!-- Add header -->
<header>
Expand All @@ -39,19 +39,19 @@
<section>

<!-- Microphone controls -->
<div>
<div class="panel">
<button>
<img src="images/mic.png" />
</button>
<h2>Activate Microphone</h2>
</div>

<!-- Commands -->
<div>
<div class="panel">
<h2>Speak a command!</h2>
<h3>Supported Commands</h3>

<div>
<div class="commands">
<ul>
<li>Eat</li>
<li>Dance</li>
Expand Down
68 changes: 68 additions & 0 deletions 03-codigotchi/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* Step one: get things to fit on the screen */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
background: linear-gradient(#838ef9, #3535ec);
background-attachment: fixed;
Comment on lines +9 to +10

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be simplified:

background: linear-gradient(#838ef9, #3535ec) fixed;

height: 100%;
font-family: 'Roboto', sans-serif;
}

main {
text-align: center;
}

.container {
width: 90%;
max-width: 720px;
margin: 0 auto;
padding: 16px;
}

img {
max-width: 100%;
height: auto;
}

/* End step one */

/* Step two: Control panels */
header img {
width: 56px;
}

h2 {
font-size: 20px;
margin-bottom: 16px;
}

h3 {
font-size: 16px;
margin-top: 24px;
margin-bottom: 12px;
color: #4c6c96;
}

.panel {
background-color: white;
border-radius: 10px;
padding: 16px 24px;
width: 100%;
margin-bottom: 16px;
}

.commands ul {
list-style: none;
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
}

.commands ul li {
font-size: 24px;
font-weight: bold;
}