Skip to content

Commit 87ff27b

Browse files
committed
card border fix
1 parent c725f5a commit 87ff27b

File tree

7 files changed

+9
-33
lines changed

7 files changed

+9
-33
lines changed

data.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
11
#imageName, courseName varible only gets used for menu.html macro on search results
22
#NAmes should match the courseName in lecturesData.py
3-
watchHistory = [
4-
{
5-
'topic': 'HTML/CSS',
6-
'courseName': 'ReactJS',
7-
'date': '23/Feb',
8-
'duration': '1 Hour',
9-
'price': 'Free'
10-
},
11-
{
12-
'topic': 'JavaScript',
13-
'courseName': 'ReactJS',
14-
'date': '23/Feb',
15-
'duration': '2 Hour',
16-
'price': 'Free'
17-
},
18-
{
19-
'topic': 'UI/UX',
20-
'courseName': 'ReactJS',
21-
'date': '23/Feb',
22-
'duration': '1.6 Hour',
23-
'price': '$10'
24-
}
25-
]
3+
264
ruby = {
275
'courseName': 'Ruby',#used on search results & link route
286
'name': 'Ruby Programming',

menuData.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
data.HTML, #lecture added
1717
data.Angular,
1818
data.Android,
19-
data.NodeJS,
2019
data.SQL,
2120
data.PHP,
2221
data.Rails,

routes/index_routes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
@index_blueprint.route('/',endpoint='index')
77
def index():
88
trending = menuData.trending
9-
lecturesData = data.watchHistory
10-
return render_template('index.html', trending=trending, lecturesData=lecturesData)
9+
return render_template('index.html', trending=trending)

static/assets/sass/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ figcaption {
1313
display: none;
1414
}
1515

16-
.item {
16+
.cardborder {
1717
border: 5px solid transparent;
1818
transition: border 0.3s;
1919
}
2020

21-
.item:hover {
21+
.cardborder:hover {
2222
border: 5px #01111d solid;
2323
}
2424

static/assets/sass/style.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ figcaption
2121
::-webkit-scrollbar
2222
display: none
2323

24-
.item
24+
.cardborder
2525
border: 5px solid transparent
2626
transition: border 0.3s
2727

28-
.item:hover
28+
.cardborder:hover
2929
border: 5px $darkblue-color solid
3030

3131

templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ <h4>#<em> Popular</em> Courses</h4>
2828
<div class="gaming-library">
2929
<div class="col-lg-12">
3030
<div class="heading-section">
31-
<h4># <em>History</em></h4>
31+
<h4># <em>FAQs</em></h4>
3232
</div>
33-
{{ lecture_list(lecturesData) }}
33+
3434
</div>
3535
</div>
3636
<!-- ***** Gaming Library End ***** -->

templates/macros/menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% macro project_list(data) %}
22
{% for project in data %}
33
<div class="col-lg-3 col-sm-6">
4-
<div class="item" data-href="{{ url_for('browse.browse_details', course_name=project['courseName']) | safe }}">
4+
<div class="item cardborder" data-href="{{ url_for('browse.browse_details', course_name=project['courseName']) | safe }}">
55

66
<img style="height: 130px; margin: 10px 0px 10px 0px; " src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/{{ project['imageName'] }}" />
77

0 commit comments

Comments
 (0)