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

Rafactor/array get random #272

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
Add flexbox styles to HTML
mikegudenau committed Apr 5, 2023
commit bcf513f68ef25506ca988f6ead425298ab552066
33 changes: 29 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css" />
<link
href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap"
rel="stylesheet"
/>
</head>
<body>

<h1>✨Self Care Center✨</h1>
<h2>Which type of message?</h2>
<div class="container">
<section class="call-to-action">
<label class="afirmation">
<input type="radio" name="option" value="option1" />
<em>affirmation</em>
</label>
<label class="mantra">
<input type="radio" name="option" value="option2" />
<em>mantra</em>
</label>
<div class="center">
<button class="receive">Receive Message</button>
</div>
</section>
</div>
<div class="message-display">
<section class="display-container">
<img src="assets/meditate.svg" alt="" />
</section>
</div>

<script type="text/javascript" src="main.js"></script>
</body>
</html>
</html>
74 changes: 73 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
@@ -5,4 +5,76 @@ light-blue - #78a7c6;
dark-blue - #134d71;
white - #ffffff;
black - #000000;
*/
*/

* {
margin: 0;
font-family: "Quicksand", sans-serif;
/* box-sizing: border-box; */
}

html {
height: 100%;
background: linear-gradient(#134d71, #78a7c6, #f7e4bf);
}

/* body {

} */

h1 {
margin-top: 50px;
margin-bottom: 100px;
color: #ffffff;
}

h2 {
margin-bottom: 5px;
color: #ffffff;
}

h1,
h2,
.container,
.message-display,
.display-container,
.center {
display: flex;
justify-content: center;
align-items: center;
}

.container {
display: flex;
justify-content: center;
}

.call-to-action {
background-color: #ffffff;
width: 475px;
height: 100px;
display: block;
border-radius: 10px;
margin-bottom: 100px;
text-align: center;
}

.receive {
background-color: #134d71;
color: white;
margin-top: 20px;
/* padding: add padding */
/* border-radius: 10px; add border radius */
}

.display-container {
width: 700px;
height: 150px;
background-color: white;
border-radius: 10px;
}

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