Skip to content

Commit c50937e

Browse files
committed
added real icons
1 parent 94a21e1 commit c50937e

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

data.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'duration': '2 weeks',
3232
'rating': '4.5',
3333
'price': 'Free',
34-
'imageName': 'popular-01.jpg',
34+
'imageName': 'ruby/ruby-original.svg', #fetched from devicon icon image library
3535
'description': 'Learn the basics of Ruby programming language for building robust applications.'
3636
}
3737
Python = {
@@ -42,7 +42,7 @@
4242
'duration': '3 weeks',
4343
'rating': '4.7',
4444
'price': 'Free',
45-
'imageName': 'popular-03.jpg',
45+
'imageName': 'python/python-original.svg',
4646
'description': 'Learn the basics of Python programming language for building robust applications.'
4747
}
4848
ReactJS = {
@@ -53,7 +53,7 @@
5353
'duration': '1 week',
5454
'rating': '5.0',
5555
'price': 'Free',
56-
'imageName': 'popular-01.jpg',
56+
'imageName': 'react/react-original.svg',
5757
'description': 'ReactJS is a powerful, efficient and user-friendly JavaScript library for building interactive interfaces.'
5858
}
5959
ML = {
@@ -64,7 +64,7 @@
6464
'duration': '3 week',
6565
'rating': '4.9',
6666
'price': '$7.5',
67-
'imageName': 'popular-02.jpg',
67+
'imageName': 'python/python-original.svg',
6868
'description': 'Training computers to learn from data, improving performance without explicit instructions.'
6969
}
7070
JavaScript = {
@@ -75,7 +75,7 @@
7575
'duration': '4 weeks',
7676
'rating': '4.7',
7777
'price': '$5.0',
78-
'imageName': 'popular-04.jpg',
78+
'imageName': 'javascript/javascript-original.svg',
7979
'description': 'Learn the basics of JavaScript programming for front-end and back-end development.'
8080
}
8181

@@ -87,7 +87,7 @@
8787
'duration': '5 weeks',
8888
'rating': '4.8',
8989
'price': 'Free',
90-
'imageName': 'popular-03.jpg',
90+
'imageName': 'java/java-original.svg',
9191
'description': 'Get started with Java and object-oriented programming for building robust applications.'
9292
}
9393

@@ -99,7 +99,7 @@
9999
'duration': '2 weeks',
100100
'rating': '4.5',
101101
'price': '$15',
102-
'imageName': 'popular-02.jpg',
102+
'imageName': 'cplusplus/cplusplus-original.svg',
103103
'description': 'Introduction to C++ programming language and its applications in various domains.'
104104
}
105105
Django = {
@@ -110,7 +110,7 @@
110110
'duration': '3 weeks',
111111
'rating': '4.6',
112112
'price': '$25',
113-
'imageName': 'popular-01.jpg',
113+
'imageName': 'django/django-plain.svg',
114114
'description': 'Learn the basics of Django framework for building robust web applications.'
115115
}
116116
HTML = {
@@ -121,7 +121,7 @@
121121
'duration': '3 Days',
122122
'rating': '4.5',
123123
'price': '$10',
124-
'imageName': 'popular-04.jpg',
124+
'imageName': 'html5/html5-original.svg',
125125
'description': 'Learn the basics of HTML and CSS for front-end web development.'
126126
}
127127
Angular = {
@@ -132,7 +132,7 @@
132132
'duration': '3 Days',
133133
'rating': '4.5',
134134
'price': '$10',
135-
'imageName': 'popular-04.jpg',
135+
'imageName': 'angularjs/angularjs-original.svg',
136136
'description': 'Learn the basics of Angular for front-end web development.'
137137
}
138138

@@ -144,7 +144,7 @@
144144
'duration': '4 weeks',
145145
'rating': '4.6',
146146
'price': '$12',
147-
'imageName': 'popular-03.jpg',
147+
'imageName': '/php/php-original.svg',
148148
'description': 'Learn PHP scripting language for web development and server-side scripting.'
149149
}
150150
Swift = {
@@ -155,7 +155,7 @@
155155
'duration': '2 weeks',
156156
'rating': '4.8',
157157
'price': '$9',
158-
'imageName': 'popular-02.jpg',
158+
'imageName': 'swift/swift-original.svg',
159159
'description': 'Get started with Swift programming language for iOS and macOS app development.'
160160
}
161161
SQL = {
@@ -166,7 +166,7 @@
166166
'duration': '3 weeks',
167167
'rating': '4.7',
168168
'price': '$7',
169-
'imageName': 'popular-01.jpg',
169+
'imageName': 'mysql/mysql-original.svg',
170170
'description': 'Learn the basics of SQL for managing and querying databases.'
171171
}
172172
NodeJS = {
@@ -177,7 +177,7 @@
177177
'duration': '2 weeks',
178178
'rating': '4.9',
179179
'price': '$10',
180-
'imageName': 'popular-04.jpg',
180+
'imageName': 'nodejs/nodejs-original.svg',
181181
'description': 'Build scalable network applications using Node.js runtime environment.'
182182
}
183183
Rails = {
@@ -188,7 +188,7 @@
188188
'duration': '4 weeks',
189189
'rating': '4.5',
190190
'price': '$15',
191-
'imageName': 'popular-03.jpg',
191+
'imageName': 'rails/rails-original-wordmark.svg',
192192
'description': 'Learn web development with the Ruby on Rails framework.'
193193
}
194194
VueJS = {
@@ -199,7 +199,7 @@
199199
'duration': '1 week',
200200
'rating': '4.7',
201201
'price': '$8',
202-
'imageName': 'popular-02.jpg',
202+
'imageName': 'vuejs/vuejs-original.svg',
203203
'description': 'Introduction to Vue.js for building interactive user interfaces.'
204204
}
205205
DataScience = {
@@ -210,7 +210,7 @@
210210
'duration': '6 weeks',
211211
'rating': '4.8',
212212
'price': '$20',
213-
'imageName': 'popular-01.jpg',
213+
'imageName': 'python/python-original.svg',
214214
'description': 'Explore data analysis and machine learning using Python.'
215215
}
216216
Android = {
@@ -221,7 +221,7 @@
221221
'duration': '5 weeks',
222222
'rating': '4.7',
223223
'price': '$18',
224-
'imageName': 'popular-03.jpg',
224+
'imageName': 'android/android-original.svg',
225225
'description': 'Build mobile apps for the Android platform using Java and Android Studio.'
226226
}
227227
Cybersecurity = {
@@ -232,6 +232,6 @@
232232
'duration': '2 weeks',
233233
'rating': '4.5',
234234
'price': '$9',
235-
'imageName': 'popular-02.jpg',
235+
'imageName': 'javascript/javascript-original.svg',
236236
'description': 'Introduction to cybersecurity principles and practices.'
237237
}

templates/macros/menu.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
{% for project in data %}
33
<div class="col-lg-3 col-sm-6">
44
<div class="item" data-href="{{ url_for('browse.browse_details', course_name=project['courseName']) | safe }}">
5-
<img src="{{ url_for('static', filename='assets/images/' ~ project['imageName']) }}" alt="">
5+
6+
<img style="height: 130px;" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/{{ project['imageName'] }}" />
7+
8+
69
<h4>{{ project['courseName'] }}<br><span>{{ project['price'] }}</span></h4>
710
<ul>
811
<li><i class="fa fa-star" style="color: #ffec51 ;"></i> {{ project['rating'] }}</li>
@@ -13,3 +16,6 @@ <h4>{{ project['courseName'] }}<br><span>{{ project['price'] }}</span></h4>
1316

1417
{% endfor %}
1518
{% endmacro %}
19+
20+
21+

0 commit comments

Comments
 (0)