Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
bpd01001 committed Sep 19, 2024
0 parents commit e2e1aca
Show file tree
Hide file tree
Showing 16 changed files with 106 additions and 0 deletions.
62 changes: 62 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
body {
margin: 0;
background-color: lightblue;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.home-page {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.about-page {
min-height: 100vh;
display: grid;
grid-template-columns: auto auto;
align-items: center;
justify-items: center;
gap: 1em;
}

.about-page img {
max-width: 50%;
display: inline-block;
text-align: center;
transform: scale(1);
transition: transform 0.5s;
}

.about-page img:hover {
transform: scale(1.5);
}

.home-page ul {
margin: 0;
padding: 0;
width: 75%;
background-color: white;
list-style-type: none;
text-align: center;
}

.home-page li {
border-bottom: 1px solid lightblue;
}

li a {
display: block;
padding: 1em 0;
font-size: 2em;
background-color: darkslateblue;
color: white;
text-decoration: none;
}

li a:hover {
color: darkslateblue;
background-color: white;
transition: all 0.5s;
}
23 changes: 23 additions & 0 deletions gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Gallery | Offline First Demo</title>
<script src="js/script.js"></script>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body class="about-page">
<img src="images/antelope.jpg" alt="" />
<img src="images/bobcat.jpg" alt="" />
<img src="images/caracal.jpg" alt="" />
<img src="images/caribou-bulls.jpg" alt="" />
<img src="images/caribou.jpg" alt="" />
<img src="images/cheetah.jpg" alt="" />
<img src="images/coyote.jpg" alt="" />
<img src="images/ferrets.jpg" alt="" />
<img src="images/ox.jpg" alt="" />
<img src="images/tiger.jpg" alt="" />
</body>
</html>
Binary file added images/antelope.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bear.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bison.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bobcat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/caracal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/caribou-bulls.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/caribou.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cheetah.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/coyote.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ferrets.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ox.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tiger.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Home | Offline First Demo</title>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('../sw.js');
}
</script>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body class="home-page">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="gallery.html">Photo Gallery</a></li>
</ul>
</body>
</html>
Empty file added js/script.js
Empty file.

0 comments on commit e2e1aca

Please sign in to comment.