diff --git a/.DS_Store b/.DS_Store index 1b9ee60..6ba1a3b 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/app.py b/app.py index 9930a66..86c7f26 100644 --- a/app.py +++ b/app.py @@ -97,6 +97,10 @@ def assignTeam(idUser, idTeam): team.idUser = idUser db.session.commit() +def get_team_logo(idTeam): + # Supposons que les logos sont stockés dans le dossier 'static/logos/' avec des noms comme 'team1.png', 'team2.png', etc. + return f"static/logo/team_nba/team_{idTeam}.png" + def createEvent(summary, start_time, end_time): event = Event() event.add('summary', summary) @@ -133,8 +137,7 @@ def index(): if (Team.query.filter_by(idUser=user.id, idTeam=i).first() is None): otherTeams.append(i) - return render_template('index.html', userTeams=getTeams(user.id), otherTeams=otherTeams, getTeamName=getTeamName) - + return render_template('index.html', userTeams=getTeams(user.id), otherTeams=otherTeams, getTeamName=getTeamName, getTeamLogo=get_team_logo) return redirect("/login", code=302) diff --git a/static/.DS_Store b/static/.DS_Store index 58dc58f..82ca717 100644 Binary files a/static/.DS_Store and b/static/.DS_Store differ diff --git a/static/logo/.DS_Store b/static/logo/.DS_Store index 9cde008..a395de6 100644 Binary files a/static/logo/.DS_Store and b/static/logo/.DS_Store differ diff --git a/static/logo/logo.png b/static/logo/logo.png new file mode 100644 index 0000000..d5f9aca Binary files /dev/null and b/static/logo/logo.png differ diff --git a/static/logo/team_nba/.DS_Store b/static/logo/team_nba/.DS_Store new file mode 100644 index 0000000..be43199 Binary files /dev/null and b/static/logo/team_nba/.DS_Store differ diff --git a/static/logo/team_nba/team_1.png b/static/logo/team_nba/team_1.png new file mode 100755 index 0000000..01cd9fe Binary files /dev/null and b/static/logo/team_nba/team_1.png differ diff --git a/static/logo/team_nba/team_10.png b/static/logo/team_nba/team_10.png new file mode 100644 index 0000000..01e315e Binary files /dev/null and b/static/logo/team_nba/team_10.png differ diff --git a/static/logo/team_nba/team_11.png b/static/logo/team_nba/team_11.png new file mode 100644 index 0000000..98065f5 Binary files /dev/null and b/static/logo/team_nba/team_11.png differ diff --git a/static/logo/team_nba/team_12.png b/static/logo/team_nba/team_12.png new file mode 100644 index 0000000..fd46099 Binary files /dev/null and b/static/logo/team_nba/team_12.png differ diff --git a/static/logo/team_nba/team_13.png b/static/logo/team_nba/team_13.png new file mode 100644 index 0000000..0138074 Binary files /dev/null and b/static/logo/team_nba/team_13.png differ diff --git a/static/logo/team_nba/team_14.png b/static/logo/team_nba/team_14.png new file mode 100644 index 0000000..15d5cc0 Binary files /dev/null and b/static/logo/team_nba/team_14.png differ diff --git a/static/logo/team_nba/team_15.png b/static/logo/team_nba/team_15.png new file mode 100644 index 0000000..572b3fb Binary files /dev/null and b/static/logo/team_nba/team_15.png differ diff --git a/static/logo/team_nba/team_16.png b/static/logo/team_nba/team_16.png new file mode 100644 index 0000000..5f1b918 Binary files /dev/null and b/static/logo/team_nba/team_16.png differ diff --git a/static/logo/team_nba/team_17.png b/static/logo/team_nba/team_17.png new file mode 100644 index 0000000..9bd1a9d Binary files /dev/null and b/static/logo/team_nba/team_17.png differ diff --git a/static/logo/team_nba/team_18.png b/static/logo/team_nba/team_18.png new file mode 100644 index 0000000..c3cda0c Binary files /dev/null and b/static/logo/team_nba/team_18.png differ diff --git a/static/logo/team_nba/team_19.png b/static/logo/team_nba/team_19.png new file mode 100644 index 0000000..772ef46 Binary files /dev/null and b/static/logo/team_nba/team_19.png differ diff --git a/static/logo/team_nba/team_2.png b/static/logo/team_nba/team_2.png new file mode 100644 index 0000000..310dade Binary files /dev/null and b/static/logo/team_nba/team_2.png differ diff --git a/static/logo/team_nba/team_20.png b/static/logo/team_nba/team_20.png new file mode 100644 index 0000000..e629f6c Binary files /dev/null and b/static/logo/team_nba/team_20.png differ diff --git a/static/logo/team_nba/team_21.png b/static/logo/team_nba/team_21.png new file mode 100644 index 0000000..ce87f48 Binary files /dev/null and b/static/logo/team_nba/team_21.png differ diff --git a/static/logo/team_nba/team_22.png b/static/logo/team_nba/team_22.png new file mode 100644 index 0000000..94fe3e1 Binary files /dev/null and b/static/logo/team_nba/team_22.png differ diff --git a/static/logo/team_nba/team_23.png b/static/logo/team_nba/team_23.png new file mode 100644 index 0000000..7711183 Binary files /dev/null and b/static/logo/team_nba/team_23.png differ diff --git a/static/logo/team_nba/team_24.png b/static/logo/team_nba/team_24.png new file mode 100644 index 0000000..bde215a Binary files /dev/null and b/static/logo/team_nba/team_24.png differ diff --git a/static/logo/team_nba/team_25.png b/static/logo/team_nba/team_25.png new file mode 100644 index 0000000..29e094a Binary files /dev/null and b/static/logo/team_nba/team_25.png differ diff --git a/static/logo/team_nba/team_26.png b/static/logo/team_nba/team_26.png new file mode 100644 index 0000000..fb2fdcc Binary files /dev/null and b/static/logo/team_nba/team_26.png differ diff --git a/static/logo/team_nba/team_27.png b/static/logo/team_nba/team_27.png new file mode 100644 index 0000000..05394f2 Binary files /dev/null and b/static/logo/team_nba/team_27.png differ diff --git a/static/logo/team_nba/team_28.png b/static/logo/team_nba/team_28.png new file mode 100644 index 0000000..4a9ec78 Binary files /dev/null and b/static/logo/team_nba/team_28.png differ diff --git a/static/logo/team_nba/team_29.png b/static/logo/team_nba/team_29.png new file mode 100644 index 0000000..870dd49 Binary files /dev/null and b/static/logo/team_nba/team_29.png differ diff --git a/static/logo/team_nba/team_3.png b/static/logo/team_nba/team_3.png new file mode 100644 index 0000000..f5a113c Binary files /dev/null and b/static/logo/team_nba/team_3.png differ diff --git a/static/logo/team_nba/team_30.png b/static/logo/team_nba/team_30.png new file mode 100644 index 0000000..baa3ae9 Binary files /dev/null and b/static/logo/team_nba/team_30.png differ diff --git a/static/logo/team_nba/team_4.png b/static/logo/team_nba/team_4.png new file mode 100644 index 0000000..94a696f Binary files /dev/null and b/static/logo/team_nba/team_4.png differ diff --git a/static/logo/team_nba/team_5.png b/static/logo/team_nba/team_5.png new file mode 100644 index 0000000..08e61e3 Binary files /dev/null and b/static/logo/team_nba/team_5.png differ diff --git a/static/logo/team_nba/team_6.png b/static/logo/team_nba/team_6.png new file mode 100644 index 0000000..a3bfb55 Binary files /dev/null and b/static/logo/team_nba/team_6.png differ diff --git a/static/logo/team_nba/team_7.png b/static/logo/team_nba/team_7.png new file mode 100644 index 0000000..d61cb6b Binary files /dev/null and b/static/logo/team_nba/team_7.png differ diff --git a/static/logo/team_nba/team_8.png b/static/logo/team_nba/team_8.png new file mode 100644 index 0000000..9f6ab1b Binary files /dev/null and b/static/logo/team_nba/team_8.png differ diff --git a/static/logo/team_nba/team_9.png b/static/logo/team_nba/team_9.png new file mode 100644 index 0000000..ba0b1f0 Binary files /dev/null and b/static/logo/team_nba/team_9.png differ diff --git a/templates/index.html b/templates/index.html index 22422a9..3264e9a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,7 +20,7 @@ align-items: center; } .logo { - width: 150px; + width: 250px; height: auto; } .header-links { @@ -37,8 +37,7 @@ color: #ffffff; } .container { - background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), /* White faded background */ - linear-gradient(to right, #0C2340, #1D428A, #006BB6); /* Background for the content */ + background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), grey; /* Background for the content */ padding: 20px; border-radius: 10px; margin-top: 20px; @@ -47,7 +46,7 @@ display: flex; justify-content: space-between; align-items: center; - background-color: #1D428A; + background-color: #343434; color: #ffffff; border: none; margin-bottom: 5px; @@ -56,15 +55,20 @@ margin-right: 5px; } + .team-logo { + width: 75px; + height: auto; + margin-right: 10px; + } + .list-group-item.d-none { display: none !important; } -
+