Skip to content

Commit

Permalink
improved style
Browse files Browse the repository at this point in the history
  • Loading branch information
magmalamps committed Apr 2, 2024
1 parent ae1ab82 commit d0ae2a9
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 24 deletions.
14 changes: 0 additions & 14 deletions fortunecookie/fortune.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ div.button {
border-radius: 7px;
}

a {
color: rgb(109, 109, 216);
}

a.back {
display: block;
text-align: center;
Expand All @@ -51,16 +47,6 @@ a.back {
color: aliceblue;
}

div.cookie_text {
display: flex;
align-items: center;
justify-content: center;
font-family: Arial, Helvetica, sans-serif;
background-color: aliceblue;
color: #121113;
height: 30px;
}

button.copy {
background-color: aliceblue;
color: #121113;
Expand Down
51 changes: 51 additions & 0 deletions fortunecookie/redeemcookie/redeem.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
body {
background-color: rgb(49, 49, 49);
color: aliceblue;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}

input {
width: 100%;
height: 50px;
border-radius: 7px;
border: 3px solid rgb(44, 44, 44);
background-color: rgb(72, 72, 72);
color: aliceblue;
}

button {
width: 70%;
background-color: rgb(72, 72, 72);
border-radius: 7px;
height: 40px;
border: 3px solid rgb(44, 44, 44);
color: aliceblue;
}

a {
color: rgb(155, 207, 253);
}

a.back {
color: aliceblue;
text-decoration: none;
font-size: 20px;
}

div.button {
background-color: rgb(80, 80, 80);
border-radius: 7px;
}

div.cookie_text {
text-align: center;
background-color: aliceblue;
color: rgb(38, 38, 38);
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
}

p.showmsg {
padding: 10px;
}
26 changes: 16 additions & 10 deletions fortunecookie/redeemcookie/redeemcookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

<head>
<link rel="icon" href="../../icon/favicon.ico">
<link rel="stylesheet" href="../fortune.css">
<link rel="stylesheet" href="redeem.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redeem your digital cookie</title>
<title>Digital-Cookie-Code</title>
</head>

<body>
<h1>Redeem your fortune cookie!</h1>
<h1>Redeem your fortune cookie</h1>
<p>Was someone nice and they have baked your a digital fortune cookie?
If yes cou can redeem it right here to read its message!
</p>
Expand All @@ -20,20 +20,26 @@ <h1>Redeem your fortune cookie!</h1>
<br>
<br>
<div class="button">
<br>
<button onclick="cookie_show()">Get my digital cookie!</button> <br>
<img src="" alt="" id="image" width="20%" onclick="recieve()">
<br>
<img src="" alt="" id="image" width="40%" onclick="recieve()">
<div class="cookie_text">
<p id="textdisplay"></p>
<p id="textdisplay" class="showmsg"></p>
</div>
</div>
<br> <br>
<audio src="crack_cookie.mp3" id="cookie_crack"></audio>
<p>If you want to create your own digital-fortune-cookie for your friend, you can visit this
page: <a href="../fortunecookie.html">magmalamps.github.io/fortunecookie/fortunecookie.html</a>
</p>

<p><em>This website uses JavaScript. Make sure that you have enabled it.</em></p>
<a href="../../index.html" class="back">-Go Back-</a>
<div class="information">
<p>If you want to create your own digital-fortune-cookie for your friend, you can visit this
page: <a href="../fortunecookie.html">magmalamps.github.io/fortunecookie/fortunecookie.html</a>
</p>

<p><em>This website uses JavaScript. Make sure that you have enabled it.</em></p>
<a href="../../index.html" class="back">-Go Back-</a>
</div>

</body>

<script>
Expand Down

0 comments on commit d0ae2a9

Please sign in to comment.