-
Notifications
You must be signed in to change notification settings - Fork 93
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
An embarrassment which we hope to discuss only rarely but that satisfies the ne… #77
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,35 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link href="../style/style.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
|
||
|
||
<nav class="nav"> | ||
<ul> | ||
<li>NAVIGATION</li> | ||
<li><a href=../pages/index.html> home </a></li> | ||
<li><a href=../pages/portfolio.html> - portfolio - </a></li> | ||
<li><a href=../pages/about.html> about </a></li> | ||
</ul> | ||
</nav> | ||
|
||
<header class="header"> | ||
<h1>ABOUT</h1> | ||
<p class="text-center">I am from Alaska.</p> | ||
<!-- <p><img class="container" src="../images/milky-way-map.png" alt="A map of the milky way from Wikipedia."></p> --> | ||
<p class="container card"> | ||
<img src="../images/milky-way-map.png" alt="A map of the Milky Way from Wikipedia."> | ||
<img src="../images/milky-way-map-with-alaska.png" class="img-top" alt="The same map of the Milky Way from before, edited to show Alaska's position."> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice use of alt text! Also a very funny picture 😛 |
||
</p> | ||
</header> | ||
|
||
<footer class="footer"> | ||
<ul> | ||
<li>FOOTER</li> | ||
<li>Some Things Before You Go</li> | ||
</ul> | ||
</footer> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,37 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link href="../style/style.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
||
<nav class="nav"> | ||
<ul> | ||
<li>NAV<li> | ||
<li><a href =../pages/index.html> home </a></li> | ||
<li><a href =../pages/portfolio.html> - portfolio - </a></li> | ||
<li><a href =../pages/about.html> about </a></li> | ||
</ul> | ||
</nav> | ||
|
||
<header class="header"> | ||
<ul> | ||
<li>HOME</li> | ||
<li>These images are arranged using a grid containers.</li> | ||
</ul> | ||
<ul class = "grid-container"> | ||
<li><img class = "li-image" src = "../images/top-1701-a.png" alt = "top view of saucer portion of USS Enterprise NCC-1701"></li> | ||
<li><img class = "li-image" src = "../images/top-1701-b.png" alt = "top view of saucer portion of USS Enterprise NCC-1701-B"></li> | ||
<li><img class = "li-image" src = "../images/top-1701-c.png" alt = "top view of saucer portion of USS Enterprise NCC-1701-C"></li> | ||
</ul> | ||
Comment on lines
+26
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good grid here! |
||
</header> | ||
|
||
<footer class="footer"> | ||
<ul> | ||
<li>FOOTER</li> | ||
<li>Some Things Before You Go</li> | ||
</ul> | ||
</footer> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,38 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<link href="../style/style.css" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
|
||
<nav class="nav"> | ||
<ul> | ||
<li>NAV</li> | ||
<li><a href =../pages/index.html> home </a></li> | ||
<li><a href =../pages/portfolio.html> - portfolio - </a></li> | ||
<li><a href =../pages/about.html> about </a></li> | ||
</ul> | ||
</nav> | ||
|
||
|
||
<header class="header"> | ||
<ul> | ||
<li>PORTFOLIO</li> | ||
<li>Here they are again, but with a flex-grid.</li> | ||
<li><img class="flex-container" src = "../images/top-1701-a.png" alt = "top view of saucer portion of USS Enterprise NCC-1701"> | ||
<img class="flex-container" src = "../images/top-1701-b.png" alt = "top view of saucer portion of USS Enterprise NCC-1701-B"> | ||
<img class="flex-container" src = "../images/top-1701-c.png" alt = "top view of saucer portion of USS Enterprise NCC-1701-C"> | ||
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These don't actually end up in a flexbox. We would need |
||
</li> | ||
</ul> | ||
</header> | ||
|
||
<footer class="footer"> | ||
<ul> | ||
<li>FOOTER</li> | ||
<li>Some Things Before You Go</li> | ||
</ul> | ||
</footer> | ||
|
||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
|
||
.center-text { | ||
text-align:center; | ||
} | ||
|
||
.container { | ||
/* these are just an arbitrary widths and heights to look good on our browser */ | ||
width: 100%; | ||
height: 100%; | ||
vertical-align: middle; | ||
} | ||
|
||
.grid-container { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice use of fractional units! |
||
align-content:center; | ||
|
||
} | ||
|
||
.li-image{ | ||
height:300px | ||
} | ||
|
||
/* .gridcontainer { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-auto-rows: minmax(100px, auto); | ||
grid-template-areas: | ||
". header header ." | ||
"main main main main" | ||
". footer footer ."; | ||
} */ | ||
|
||
.header { | ||
background-color: #7128a2; | ||
text-align: center; | ||
font-size: large; | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
vertical-align: middle; | ||
|
||
} | ||
|
||
.nav { | ||
text-align:center; | ||
background-color: #f0e442; | ||
} | ||
|
||
.content { | ||
background-color: #009e73; | ||
} | ||
|
||
.footer { | ||
background-color: #0072b2; | ||
text-align:center; | ||
font-size: small; | ||
display: flex; | ||
flex-direction: column | ||
} | ||
|
||
.card { | ||
vertical-align: middle; | ||
position: relative; | ||
display: flex; | ||
} | ||
.card .img-top { | ||
display: none; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: 99; | ||
} | ||
.card:hover .img-top { | ||
display: inline; | ||
} | ||
|
||
.flex-container { | ||
|
||
|
||
height: 300px; | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice use of
ul
!