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

finished product #10

Open
wants to merge 9 commits into
base: main
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
142 changes: 142 additions & 0 deletions copy-of-last-working-set/copy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@

.container {
display: grid;
height: 100vh;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-auto-columns: minmax(10px, auto);
/* grid-template-rows: 1.25fr 1.5fr 1.5fr 1.5fr; */
grid-template-areas:
"a a a a"
"b c c d"
"b c c d"
"b c c e";
}

header {
text-align: center;
padding: 2%;
background: turquoise;
border-style: double;
grid-area: a;
}

main {
text-align: center;
border: dotted red;
grid-area: c;

}
#one {
padding-left: 2%;
border: dotted purple;
grid-area: d;
}

#two {
padding-left: 2%;
border: dotted navy;
grid-area: b;
}

.forecast {
grid-area: e;
display:grid;
text-align: center;
/* grid-template-areas:unset; */
border: dotted green;
}


.today {

}
.tmrrw
.afterTmrw

/* .forecast #today {
border: dashed yellow;
/* padding: 2%;
background: pink;
}

.forecast #tmrrw {
/* display: */
/* padding: 2%;
border: dashed grey;
background: rgb(158, 58, 75);
}

.forecast #afterTmrw {
/* padding: 2%;
border: dashed;
background: rgb(202, 117, 131);
}
*/

/* Original formating
body {
background-color: #add8e6;
margin: 20px;
}

.container {
display:grid;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-gap: 5px;
grid-auto-rows: minmax(80px, auto);
row-gap: 1ch;
height: auto;
}

span {
font-weight: bold;
}

header {
background-color: turquoise;
padding: 20px;
height: auto;
grid-area: 1 / 1 / span 1 / span 7;
text-align: center;
border-style: double;
}

.view_weather {
padding: 5px;
text-align:center;
border: dotted;
grid-area: 2 / 2 / span 2 / span 4;
}


.previous_searches{
text-align:center;
grid-area: 2 / 6 / span 2 / span 2;
border: dotted purple;
height: auto;
}

.forecast {
display: grid;
grid-area: 4 / 1 / span 1 / span 7;
grid-template-areas: "a b c";
border: double red;
}

/* TODAY TMRRW & NEXT DAY DOESN'T work */

/* .today
.tmrrw
.afterTmrw {
text-align: center;
width: 100%;
height: auto;
float: left;
border: dotted black;
}
.convertTemp {
padding-left: 5px;
grid-area: 2 / 1 / span 1 / span 1;
border: dotted purple;
} */
73 changes: 73 additions & 0 deletions copy-of-last-working-set/copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" />
<script defer src="index.js"></script>
<title>Weather App</title>
</head>

<body>
<div class="container">
<!-- header -->
<header>
<h1>Weather App</h1>
<form>
<label>Pick a Location
<input id="pick_location" type='text' required />
</label>
<input type="submit" value="Get Weather"></input>
</form>
</header>
</br>
<!-- main .view_weather -->
<main class="view_weather">
<p>Choose a location to view the weather</p>
</main>
<main class="forecast">
<div class="threeDay">
<div id="today"></div>
<div id="tmrrw"></div>
<div id="afterTmrw"></div>
</div>
</main>

<aside id='one'class="previous_searches">
<section>
<h4>Previous Searches</h4>
<p>No previous searches</p>

<ul>

</ul>

</section>
</aside>

<aside id="two">
<form class="convertTemp">
<p>Convert the temperature:</p>
<input type="number" id="temp-to-convert">
</br>
<label>To Celcius
<input type="radio" id="to-c" name="convert-temp" value="c" required>
</label>
</br>
<label>To Fahrenheit
<input type="radio" id="to-f" name="convert-temp" value="f">
</label>
<input type="submit">
<h4>
0.00
</h4>
</form>
</aside>

</div>

</body>

</html>
Loading