Skip to content

Commit

Permalink
style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
colarusso committed Aug 20, 2023
1 parent b1f5666 commit 52263c0
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<title>My Alogrithmic RSS Reader</title>
<title>My RSS Algo</title>
<style>
/* Your custom styles can go here */
.read-article .card {
Expand Down Expand Up @@ -82,18 +82,27 @@
.btn-group {
margin-top: auto; /* Push the button group to the bottom of the card */
}
.my-4 {
margin-top: 0;
padding-top: 0;
line-height: 0;
}


</style>
</head>
<body>
<div class="container">
<h1 class="my-4">My Alogrithmic RSS Reader</h1>
<div class="my-3">
<div style="float:left;width:100%;margin-top: 20px;">
<div style="float:left"><h1 class="my-4">My RSS Algo</h1></div>
<div style="float:right;">
<button id="add-feed" class="btn btn-primary">+</button>
<button id="manage-feeds" class="btn btn-secondary">My Feeds</button>
</div>
<div class="my-3" style="float:left;width:100%;">
<span id="unread-count" class="text-danger">Unread: 0</span>
<span id="read-count" class="text-success">Read/Skiped: 0</span>
<button id="add-feed" class="btn btn-primary">Add A Feed</button>
<button id="manage-feeds" class="btn btn-secondary">Manage Feeds</button>
</div>
</div>
<div id="news-feed" class="row">
<!-- News articles will be dynamically added here -->
Expand Down Expand Up @@ -225,9 +234,9 @@ <h5 class="card-title">${title}</h5>
<div>
<button class="btn btn-success upvote ${hasUpvote ? 'thumbs-up' : ''}" data-item-id="${itemId}">👍</button>
<button class="btn btn-danger downvote ${hasDownvote ? 'thumbs-down' : ''}" data-item-id="${itemId}">👎</button>
<button class="btn btn-secondary skip ${isRead ? 'skip-read' : ''}" data-item-id="${itemId}">Skip</button>
<button class="btn btn-secondary skip ${isRead ? 'skip-read' : ''}" data-item-id="${itemId}">Pass</button>
</div>
<a href="${link}" class="btn btn-${isRead ? 'secondary' : 'primary'} read-button" target="_blank">${isRead ? 'Read Again' : 'Read More'}</a>
<a href="${link}" class="btn btn-${isRead ? 'secondary' : 'primary'} read-button" target="_blank">${isRead ? 'Read Again' : 'Read'}</a>
</div>
</div>
<div class="card-footer">
Expand Down

0 comments on commit 52263c0

Please sign in to comment.