Skip to content

Commit c9fb285

Browse files
committed
minor ui ux changes
1 parent 99691fa commit c9fb285

File tree

11 files changed

+38
-38
lines changed

11 files changed

+38
-38
lines changed

data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'name': 'Ruby Programming',
77
'logo': 'ruby-plain', #used in devicon icon css library
88
'difficulty': 'Advance',
9-
'duration': '2 weeks',
9+
'duration': '2 weeks',
1010
'rating': '4.5',
1111
'price': 'Free',
1212
'imageName': 'ruby/ruby-original.svg', #fetched from devicon icon image library

menuData.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
import data
2-
trending = [data.ReactJS,
3-
data.Swift,
4-
data.JavaScript,
5-
data.Python,
6-
]
7-
82
all = [
93
data.Java, #lecture added
104
data.cplusplus,
@@ -27,3 +21,8 @@
2721
data.ruby
2822

2923
]
24+
trending = [data.ReactJS,
25+
data.Swift,
26+
data.JavaScript,
27+
data.Python,
28+
]

routes/error_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ def page_not_found(e):
88
theme_preference = request.cookies.get('theme', 'light') # Default to 'light' if cookie not found
99
theme_css = theme_preference + "_theme" # Assuming your CSS files are named "light_theme.css" and "dark_theme.css
1010

11-
return render_template('components/error.html', theme_css=theme_css), 404
11+
return render_template('components/error.html', theme_css=theme_css)

static/assets/sass/dark_theme.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ figcaption {
2424

2525
.cardborder {
2626
border: 5px solid transparent;
27-
transition: border 0.3s;
27+
transition: 0.3s;
2828
}
2929

3030
.cardborder:hover {
31-
border: 5px #01111d solid;
31+
/*border: 5px $darkblue-color solid */
32+
transform: scale(0.93);
3233
}
3334

3435
clearfix:after {

static/assets/sass/dark_theme.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/sass/dark_theme.sass

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ figcaption
3232

3333
.cardborder
3434
border: 5px solid transparent
35-
transition: border 0.3s
35+
transition: 0.3s
3636

3737
.cardborder:hover
38-
border: 5px $darkblue-color solid
38+
/*border: 5px $darkblue-color solid
39+
transform: scale(0.93)
3940

4041

4142

static/assets/sass/light_theme.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ figcaption {
2222
}
2323

2424
.cardborder {
25-
border: 5px solid transparent;
26-
transition: border 0.3s;
25+
transition: transform 0.3s;
2726
}
2827

2928
.cardborder:hover {
30-
border: 5px #a5d8ff solid;
29+
transform: scale(0.93);
3130
}
3231

3332
clearfix:after {

0 commit comments

Comments
 (0)