-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
290 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[.ShellClassInfo] | ||
LocalizedResourceName=@NEWS-AGGREGATOR-PROJECT,0 |
Submodule NEWS-AGGREGATOR-PROJECT
added at
d942ce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,73 @@ | ||
.dropdown-item:hover{ | ||
background-color: #edf2f7; | ||
} | ||
} | ||
|
||
|
||
|
||
.d-flex { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
|
||
.rating-container { | ||
display: flex; | ||
align-items: center; | ||
gap: 10px; /* Adjust the gap as needed */ | ||
width: 100%; /* Make the rating container full width */ | ||
} | ||
|
||
.rate { | ||
display: flex; | ||
align-items: center; | ||
gap: 5px; /* Adjust the gap as needed */ | ||
flex-direction: row-reverse; /* Reverse the order of the stars */ | ||
} | ||
|
||
.rate input[type="radio"] { | ||
display: none; /* Hide the radio buttons */ | ||
} | ||
|
||
.rate label { | ||
cursor: pointer; | ||
display: inline-block; | ||
} | ||
|
||
.rate label:before { | ||
content: '☆'; | ||
font-size: 1.5em; /* Adjust the size as needed */ | ||
margin-right: 2px; | ||
} | ||
|
||
/* Ensure all previous stars are filled when hovering or checked */ | ||
.rate input[type="radio"]:checked ~ label:before, | ||
.rate input[type="radio"]:checked + label:before, | ||
.rate input[type="radio"]:checked + label ~ label:before { | ||
content: '★'; | ||
color: gold; /* Adjust the color as needed */ | ||
} | ||
|
||
.rate label:hover ~ label:before, | ||
.rate label:hover:before { | ||
content: '★'; | ||
color: gold; | ||
} | ||
|
||
.submit-btn { | ||
padding: 3px 6px; /* Make the button smaller */ | ||
background-color: #007bff; | ||
color: white; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
margin-left: auto; /* Push the button to the rightmost end */ | ||
} | ||
|
||
.submit-btn:hover { | ||
background-color: #0056b3; | ||
} | ||
|
||
.average-rating { | ||
margin-left: 10px; /* Adjust the margin as needed */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<div style="display: flex; align-items: center; justify-content: flex-end;"> | ||
<div class="dropdown"> | ||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Category | ||
</button> | ||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton"> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='latest' %}">Latest</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='entertainment' %}">Entertainment</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='sports' %}">Sports</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='politics' %}">Politics</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='opinion' %}">Opinion</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='breaking-news' %}">Breaking News</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div style="display: flex; align-items: center; justify-content: flex-end;"> | ||
<div class="dropdown"> | ||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Category | ||
</button> | ||
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton"> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='latest' %}">Latest</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='entertainment' %}">Entertainment</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='sports' %}">Sports</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='politics' %}">Politics</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='opinion' %}">Opinion</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:scrape' name='breaking-news' %}">Breaking News</a></li> | ||
<li><a class="dropdown-item" href="{% url 'core:top_rated_articles' %}">Top Rated</a></li> | ||
|
||
</ul> | ||
</div> | ||
</div> |
Oops, something went wrong.