Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the title of the website #32

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ The website is structured according to Flask, organized into the following compo
## Getting Started

1. Clone the repository: `git clone https://github.com/IEEE-VIT/Howzat`
2. Checkout to a new branch: `git checkout -b my-amazing-feature`
2. Checkout to a new branch: `git checkout -b branch-name`
3. Make your changes.
4. `git add .`
5. `git commit -m "A short description of the feature."`
6. `git push origin my-amazing-feature`
6. `git push origin branch-name`
7. Open a pull request to the curated issues.

To start contributing, [CONTRIBUTING.md](https://github.com/IEEE-VIT/Howzat/blob/main/CONTRIBUTING.md) . <br>Feel free to fork the repository and submit a pull request with your changes. We welcome improvements, bug fixes, and additional features!
8 changes: 6 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,29 @@

with app.app_context():
populate(config)


# routing to main page
@app.route('/')
def index():
return render_template('index.html')

# routing to standings
@app.route('/standings')
def standings():
standings = standings_scapper(SCRAPPING_URL)
return render_template('standings.html', standings=standings)

# routing to fixtures
@app.route('/fixtures')
def fixtures():
fixtures = config.Fixtures.query.all()
return render_template('fixtures.html', fixtures=fixtures)

# routing to fan poll
@app.route('/Fan_Poll')
def Fan_Poll():
return render_template('Fan_Poll.html')

if __name__ == "__main__":
app.run(debug=True)


2 changes: 1 addition & 1 deletion templates/Fan_Poll.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>World cup 2022</title>
<title>World cup 2023</title>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="{{url_for('static', filename='css/Fan_Poll.css')}}" />
{% endblock %}
Expand Down
32 changes: 30 additions & 2 deletions templates/fixtures.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>World cup 2022</title>
<title>World cup 2023</title>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="{{url_for('static', filename='css/fixtures.css')}}" />
{% endblock %}
Expand Down Expand Up @@ -39,4 +39,32 @@ <h4 class="match-time">{{ fixture.time }}</h4>
</div>
{% endfor %}
</div>
{% endblock %}
<div class="matchs" id="match-date">
{% for fixture in fixtures %}
<div class="match">
<div class="match-info">
<h4 class="venue">{{ fixture.venue }}</h4>
<h4><span class="badge">{{ fixture.matchNumber }}</span> </h4>
</div>
<div class="teams">
<div>
<h3 class="team1">{{ fixture.team_1 }}</h3>
</div>
<span class="vs">
VS
</span>
<div>
<h3 class="team2">{{ fixture.team_2 }}</h3>
</div>
</div>
<div class="time-area">
<div class="time">
<h4 class="month">{{ fixture.day_month[-3:] }}</h4>
<h4 class="date">{{ fixture.date }}<h4>
</div>
<h4 class="match-time">{{ fixture.time }}</h4>
</div>
</div>
{% endfor %}
</div>
{% endblock %}
36 changes: 26 additions & 10 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@
{% endblock %}
{% block body %}
<header>
<div class="navbar">
<div id="standings"><a class="nav" href="{{url_for('standings')}}">Standings</a></div>
<div id="fixtures"><a class="nav" href="{{url_for('fixtures')}}">Fixtures</a></div>
<div id="fantasy"><a class="nav" href="{{url_for('Fan_Poll')}}">Fan Poll</div>
</div>

<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/">ICC World Cup 2023</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="{{url_for('standings')}}">View Standings</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('fixtures')}}">Upcoming Fixtures</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('Fan_Poll')}}">Fan Polls</a>
</li>
</ul>
</div>
</nav>

<h1 id="title">Welcome to ICC World Cup 2023</h1>
</header>
<div>
Expand Down Expand Up @@ -54,22 +70,22 @@ <h1 id="title">Welcome to ICC World Cup 2023</h1>
</div>
<div class="team">
<div><span>7</span></div>
<img class='logo' src="{{url_for('static', filename='SVG/sa.svg')}}" alt="newzealand">
<img class='logo' src="{{url_for('static', filename='SVG/sa.svg')}}" alt="Newzealand">
<div>NZ</div>
</div>
<div class="team">
<div><span>8</span></div>
<img class='logo' src="{{url_for('static', filename='SVG/pak.svg')}} " alt="pakistan">
<img class='logo' src="{{url_for('static', filename='SVG/pak.svg')}} " alt="Pakistan">
<div>PAK</div>
</div>
<div class="team">
<div><span>9</span></div>
<img class='logo' src="{{url_for('static', filename='SVG/sa.svg')}}" alt="southafrica">
<img class='logo' src="{{url_for('static', filename='SVG/sa.svg')}}" alt="Southafrica">
<div>SA</div>
</div>
<div class="team">
<div><span>10</span></div>
<img class='logo' src="{{url_for('static', filename='SVG/sl.svg')}}" alt="srilanka">
<img class='logo' src="{{url_for('static', filename='SVG/sl.svg')}}" alt="Srilanka">
<div>SL</div>
</div>
</div>
Expand Down Expand Up @@ -107,4 +123,4 @@ <h5 class="footer-social__subtitle">Follow <span>Us</span> On social</h5>

</div>
</footer>
{% endblock %}
{% endblock %}
6 changes: 3 additions & 3 deletions templates/standings.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block head %}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<title>World cup 2023</title>
<link rel="stylesheet" href="{{url_for('static', filename='css/standings.css')}}">
{% endblock %}
{% block body %}
Expand All @@ -15,7 +15,7 @@
<h3></h3>
</header>


<!-- Showcasing stadning in icc world cup 2023: name, points, match played, net run rate, match won, match lost and position -->

<h3 class="standings__subtitle">
<span>Group</span> Stage
Expand Down Expand Up @@ -65,4 +65,4 @@ <h3 class="standings__subtitle">
</tbody>
</table>
</section>
{% endblock %}
{% endblock %}