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

Add gif page #24 #92

Merged
merged 1 commit into from
Oct 28, 2024
Merged
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
4 changes: 4 additions & 0 deletions assets/images/three-dots-vertical-svgrepo-com.svg
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 assets/images/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 96 additions & 0 deletions gif.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<!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" />
<script src="https://kit.fontawesome.com/72fc4d72f1.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="styles/normalize.css" />
<link rel="stylesheet" href="styles/gif.css" />
<script src="scripts/favs.js" defer></script>
<title>Giphy Search | @lcrojano</title>
</head>
<body>
<div class="navbar">
<div class="container">
<div class="logo">
<img src="assets/images/logo.png" alt="Giphy Explorer" />
<h1>GIPHY</h1>
</div>
<div class="pages">
<a href="">Reactions</a>
<a href="">Entertainment</a>
<a href="">Sports</a>
<a href="">Stickers</a>
<a href="">Artists</a>
<img src="three-dots-vertical-svgrepo-com.svg" alt="Menu" style="height: 20px; width: 20px;"/>
<button class="upload">Upload</button>
<button class="create">Create</button>
<button class="log-in" style="display: flex; align-items: center; padding: 10px 20px; background-color: #f0f0f0; border: none; cursor: pointer;">
<img src="https://img.icons8.com/?size=100&id=99268&format=png&color=000000" alt="login-icon"
style="width: 24px; height: 24px; margin-right: 10px;" />
Log In
</button>

</div>
<div style="position: relative; width: 300px;">
<input type="text" placeholder="@username + tag to search with a verified channel"
style="width: 100%; padding: 10px; padding-right: 40px; box-sizing: border-box;" />
<img src="https://img.icons8.com/?size=100&id=14079&format=png&color=000000" alt="search"
style="position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 24px; height: 24px; cursor: pointer;" />
</div>
</div>
</div>
<div id="profile">
<div class="profile-header">
<div class="profile-avatar">
<img src="assets/images/user.png" alt="Demic" />
</div>
<div class="profile-info">
<div class="profile-username">
<h2>Demic</h2>
<i class="fas fa-badge-check verified-badge"></i>
</div>
<p>@jerseydemic</p>
<div class="social-links">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-tumblr"></i></a>
</div>
<div class="source-link">
<a href="twitter.com/kingdemic">twitter.com/kingdemic</a>
</div>
</div>
</div>

<div class="gif-container">
<h3>Happy Little Girl GIF By Demic</h3>
<div class="gif-actions">
<button class="action-button favorite">
<i class="fas fa-heart"></i>
Favorite
</button>
<button class="action-button share">
<i class="fas fa-share"></i>
Share
</button>
<button class="action-button embed">
<i class="fas fa-code"></i>
Embed
</button>
</div>
<div class="gif-player">
<img src="assets/images/no.gif" alt="No Way GIF By Demic" />
</div>
</div>

<div class="virtual-bg">
<h3>Make Your Own Virtual Background</h3>
<!-- Virtual background player would go here -->
</div>
</div>

<script src="scripts/gif.js"></script>
</body>
</html>
181 changes: 181 additions & 0 deletions styles/gif.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
/* Global Styles */
:root {
--primary-purple: #9933FF;
--primary-green: #00FF99;
--dark-bg: #121212;
--text-light: #ffffff;
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--dark-bg);
color: var(--text-light);
margin: 0;
}

/* Navbar Styles */
.navbar {
background-color: var(--dark-bg);
padding: 1rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
align-items: center;
gap: 2rem;
}

.logo {
display: flex;
align-items: center;
gap: 0.5rem;
}

.logo img {
height: 35px;
}

.logo h1 {
color: var(--text-light);
font-size: 1.5rem;
margin: 0;
}

.pages {
display: flex;
align-items: center;
gap: 1.5rem;
}

.pages a {
color: var(--text-light);
text-decoration: none;
font-weight: 500;
}

.pages button {
padding: 0.5rem 1rem;
border-radius: 4px;
border: none;
font-weight: 600;
cursor: pointer;
}

.upload {
background-color: var(--primary-purple);
color: var(--text-light);
}

.create {
background-color: var(--primary-green);
color: var(--dark-bg);
}

.log-in {
background-color: transparent;
border: 1px solid rgba(255, 255, 255, 0.2) !important;
color: var(--text-light);
}

/* Profile Section */
#profile {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}

.profile-header {
display: flex;
gap: 2rem;
margin-bottom: 2rem;
}

.profile-info {
flex: 1;
}

.profile-avatar {
width: 100px;
height: 100px;
border-radius: 50%;
overflow: hidden;
}

.profile-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

.profile-username {
display: flex;
align-items: center;
gap: 0.5rem;
}

.verified-badge {
color: #00b8ff;
}

.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}

.social-links a {
color: var(--text-light);
text-decoration: none;
}

.source-link {
margin-top: 1rem;
color: #666;
}

.gif-container {
position: relative;
margin-top: 2rem;
cursor: pointer;
transition: transform 0.2s ease;
align-items: center;
}

.gif-container:hover {
transform: scale(1.01);
}

.gif-actions {
position: absolute;
right: 1rem;
top: 1rem;
display: flex;
flex-direction: column;
gap: 1rem;
}

.action-button {
background-color: rgba(0, 0, 0, 0.7);
color: white;
border: none;
padding: 0.5rem;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
}

.gif-player {
width: 100%;
border-radius: 8px;
overflow: hidden;
}

.virtual-bg {
margin-top: 2rem;
}
Loading