Skip to content

Commit

Permalink
M1 basic structure (#1)
Browse files Browse the repository at this point in the history
* updated .gitignore

* Created the firts part of the web.

---------

Co-authored-by: ariosramirez <[email protected]>
  • Loading branch information
ariosramirez and ariosramirez authored Jul 18, 2024
1 parent f09ae53 commit 5c93967
Show file tree
Hide file tree
Showing 16 changed files with 224 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,5 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/
.DS_Store
Binary file added src/assets/images/placeholders/image1.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 src/assets/images/placeholders/image2.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 src/assets/images/placeholders/image3.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 src/assets/images/placeholders/image4.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 src/assets/images/placeholders/image5.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 src/assets/images/placeholders/image6.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 src/assets/images/users/profile-1.avif
Binary file not shown.
Empty file added src/components/Grid.js
Empty file.
Empty file added src/components/ImageCard.js
Empty file.
110 changes: 110 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Golden Gate</title>
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/grid.css">
<script src="index.js"></script>
</head>
<body>
<header>
<h1>Golden Gate</h1>
</header>
<main>
<div id="image-grid" class="grid-container">
<div class="image-card">
<img src="assets/images/placeholders/image1.jpg" alt="Golden Gate 1">
<div class="hover-info">
<img src="public/logo.png" alt="Gokei Logo" class="logo">
<div class="bottom-info">
<img src="assets/images/users/profile-1.avif" alt="Author" class="author-img">
<span class="author-text">Courtney Hill: test</span>
</div>
</div>
<div class="tags">
<span class="tag">Bridge</span>
<span class="tag">Iconic</span>
<span class="tag">San Francisco</span>
</div>
</div>
<div class="image-card">
<img src="assets/images/placeholders/image2.jpg" alt="Golden Gate 2">
<div class="hover-info">
<img src="public/logo.png" alt="Gokei Logo" class="logo">
<div class="bottom-info">
<img src="assets/images/users/profile-1.avif" alt="Author" class="author-img">
<span class="author-text">Courtney Hill: test</span>
</div>
</div>
<div class="tags">
<span class="tag">Sunset</span>
<span class="tag">Scenic</span>
<span class="tag">Tourist Spot</span>
</div>
</div>
<div class="image-card">
<img src="assets/images/placeholders/image3.jpg" alt="Golden Gate 3">
<div class="hover-info">
<img src="public/logo.png" alt="Gokei Logo" class="logo">
<div class="bottom-info">
<img src="assets/images/users/profile-1.avif" alt="Author" class="author-img">
<span class="author-text">Courtney Hill: test</span>
</div>
</div>
<div class="tags">
<span class="tag">Fog</span>
<span class="tag">Mystical</span>
</div>
</div>
<div class="image-card">
<img src="assets/images/placeholders/image4.jpg" alt="Golden Gate 4">
<div class="hover-info">
<img src="public/logo.png" alt="Gokei Logo" class="logo">
<div class="bottom-info">
<img src="assets/images/users/profile-1.avif" alt="Author" class="author-img">
<span class="author-text">Courtney Hill: test</span>
</div>
</div>
<div class="tags">
<span class="tag">Architecture</span>
<span class="tag">Engineering</span>
</div>
</div>
<div class="image-card">
<img src="assets/images/placeholders/image5.jpg" alt="Golden Gate 5">
<div class="hover-info">
<img src="public/logo.png" alt="Gokei Logo" class="logo">
<div class="bottom-info">
<img src="assets/images/users/profile-1.avif" alt="Author" class="author-img">
<span class="author-text">Courtney Hill: test</span>
</div>
</div>
<div class="tags">
<span class="tag">Panoramic</span>
<span class="tag">Landmark</span>
</div>
</div>
<div class="image-card">
<img src="assets/images/placeholders/image6.jpg" alt="Golden Gate 6">
<div class="hover-info">
<img src="public/logo.png" alt="Gokei Logo" class="logo">
<div class="bottom-info">
<img src="assets/images/users/profile-1.avif" alt="Author" class="author-img">
<span class="author-text">Courtney Hill: test</span>
</div>
</div>
<div class="tags">
<span class="tag">Dawn</span>
<span class="tag">Reflection</span>
<span class="tag">Iconic</span>
</div>
</div>
</div>
</main>
<footer>
<p>&copy; 2024 Golden Gate</p>
</footer>
</body>
</html>
Empty file added src/index.js
Empty file.
Binary file added src/public/favicon.ico
Binary file not shown.
Binary file added src/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions src/styles/grid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 16px;
}

.image-card {
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
border: 1px solid #ddd;
border-radius: 8px;
align-items: center;
transition: transform 0.3s;
}

.image-card img {
width: 100%;
height: auto;
display: block;
}

.image-card .tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 8px;
}

.image-card .tag {
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 4px 8px;
border-radius: 4px;
}

.image-card:hover {
transform: scale(1.01);

}

.image-card .hover-info {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
color: #fff;
padding: 16px;
box-sizing: border-box;
}

.image-card:hover .hover-info {
display: flex;
flex-direction: column;
justify-content: space-between;
}

.image-card .hover-info .logo {
width: 40px;
}

.image-card .hover-info .bottom-info {
display: flex;
align-items: center;
}

.image-card .hover-info .author-img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 8px;
}

.image-card .hover-info .author-text {
font-size: 14px;
}
31 changes: 31 additions & 0 deletions src/styles/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}

header {
background-color: #333;
color: #fff;
padding: 16px;
text-align: center;
}

h1 {
margin: 0;
}

footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 16px;
position: fixed;
bottom: 0;
width: 100%;
}

main {
padding-bottom: 60px; /* To prevent content from being hidden behind the footer */
}

0 comments on commit 5c93967

Please sign in to comment.