Skip to content

Commit a7f0423

Browse files
chore: Add jeweler logo to bill templates
1 parent 363be31 commit a7f0423

File tree

9 files changed

+28
-21
lines changed

9 files changed

+28
-21
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Our mission is to simplify the process of calculating gold prices for jewellers and customers alike. We aim to provide a user-friendly tool that allows for accurate and efficient calculations, ensuring transparency and trust in every transaction.
66

7+
## Demo
8+
9+
- Demo is live on the [Render](https://goldsilverbilling.onrender.com/)
10+
711
## Building and Running the Docker Container
812

913
1. **Build the Docker image:**

config/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"JEWELLER_EMAIL" : "[email protected]",
66
"JEWELLER_WEBSITE": "https://www.example.com",
77
"JEWELLER_GSTIN": "27AABCU9876Z1Z1",
8-
"GOLD_PRICE_PER__GRAM": 5000
8+
"GOLD_PRICE_PER__GRAM": 5000,
9+
"JEWELLER_LOGO": "images/logo.png"
910

1011
}

static/images/logo.png

16.7 KB
Loading

templates/ext/navbar.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<nav class="navbar navbar-expand-lg navbar-custom">
2-
<a class="navbar-brand" href="/">Homepage</a>
2+
<a class="navbar-brand" href="/">
3+
<i class="fas fa-home"></i>
4+
Home</a>
35
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
46
<span class="navbar-toggler-icon"></span>
57
</button>
6-
<div class="collapse navbar-collapse" id="navbarNav">
7-
<ul class="navbar-nav">
8-
<li class="nav-item"><a class="nav-link" href="/features">Features</a></li>
9-
<li class="nav-item"><a class="nav-link" href="/pricing">Pricing</a></li>
10-
<li class="nav-item"><a class="nav-link" href="/about">About</a></li>
11-
</ul>
12-
</div>
8+
139
</nav>

templates/gold_bill.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ <h2>Calculation Details (Gold)</h2>
5353
<!-- Sidebar -->
5454
<div class="sidebar">
5555
<h2>Jeweler Details</h2>
56+
<img src="{{ url_for('static', filename=config['JEWELLER_LOGO']) }}" alt="Jeweler Logo" class="img-fluid" style="max-width: 200px;">
5657
<p><strong>Name:</strong> {{ config["JEWELLER_NAME"] }}</p>
5758
<p><strong>Address:</strong> {{ config["JEWELLER_ADDRESS"] }}</p>
5859
<p><strong>Contact:</strong> {{ config["JEWELLER_CONTACT"] }}</p>

templates/gold_calculator.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ <h1>Gold Price Calculator</h1>
1212
<p class="text-center">It's quick, easy, and accurate! with a clear and intuitive design.</p>
1313
<form action="/gold-calculator" method="POST" class="form-card shadow p-4 bg-white rounded">
1414
<div class="form-group">
15-
<label for="weight">Weight (grams):</label>
15+
<label for="weight">Weight (grams): <i class="fa-solid fa-scale-balanced"></i></label>
1616
<input type="number" step="0.01" name="weight" id="weight" class="form-control" placeholder="Enter weight in grams" required>
1717
</div>
1818
<div class="form-group">
19-
<label>Gold Purity:</label>
19+
<label>Gold Purity: <i class="fa-solid fa-magnifying-glass"></i></label>
2020
<div class="form-check">
2121
<input type="radio" name="purity" value="18k" id="18k" class="form-check-input">
2222
<label for="18k" class="form-check-label">18k</label>
@@ -31,16 +31,16 @@ <h1>Gold Price Calculator</h1>
3131
</div>
3232
</div>
3333
<div class="form-group">
34-
<label for="price_per_gram">Price per gram (INR):</label>
34+
<label for="price_per_gram">Price per gram (INR): <i class="fa-solid fa-weight-hanging"></i></label>
3535
<input type="number" step="0.01" name="price_per_gram" id="price_per_gram" class="form-control" placeholder="Enter price per gram" value="{{ price_per_gram }}" required>
3636
</div>
3737

3838
<div class="form-group">
39-
<label for="service_charge">Service Charge (%):</label>
39+
<label for="service_charge">Service Charge (%): <i class="fa-solid fa-file-invoice-dollar"></i></label>
4040
<input type="number" step="0.01" name="service_charge" id="service_charge" class="form-control" placeholder="Enter service charge percentage" value="{{ service_charge }}" required>
4141
</div>
4242
<div class="form-group">
43-
<label for="tax">Tax (%):</label>
43+
<label for="tax">Tax (%): <i class="fa-solid fa-file-invoice-dollar"></i></label>
4444
<input type="number" step="0.01" name="tax" id="tax" class="form-control" placeholder="Enter tax percentage" value="{{ tax }}" required>
4545
</div>
4646
<button type="submit" class="btn btn-hero btn-block mt-4">Generate Estimate Bill</button>
@@ -49,6 +49,7 @@ <h1>Gold Price Calculator</h1>
4949
<!-- Sidebar -->
5050
<div class="sidebar">
5151
<h2>Jeweler Details</h2>
52+
<img src="{{ url_for('static', filename=config['JEWELLER_LOGO']) }}" alt="Jeweler Logo" class="img-fluid" style="max-width: 200px;">
5253
<p><strong>Name:</strong> {{ config["JEWELLER_NAME"] }}</p>
5354
<p><strong>Address:</strong> {{ config["JEWELLER_ADDRESS"] }}</p>
5455
<p><strong>Contact:</strong> {{ config["JEWELLER_CONTACT"] }}</p>

templates/homepage.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
<h1>Welcome to the Pricing Calculator</h1>
99
<p>Select a calculator to get started.</p>
1010
<div class="hero-buttons">
11-
<a href="{{ url_for('gold_calculator') }}" class="btn btn-hero">Gold Calculator</a>
12-
<a href="{{ url_for('silver_calculator') }}" class="btn btn-hero">Silver Calculator</a>
11+
<a href="{{ url_for('gold_calculator') }}" class="btn btn-hero"><i class="fa-solid fa-coins"></i> Gold Calculator</a>
12+
<a href="{{ url_for('silver_calculator') }}" class="btn btn-hero"><i class="fa-solid fa-gem"></i> Silver Calculator</a>
13+
<a href="{{ url_for('silver_calculator') }}" class="btn btn-hero"><i class="fa-solid fa-medal"></i> Features</a>
14+
<a href="{{ url_for('silver_calculator') }}" class="btn btn-hero"><i class="fa-solid fa-money-check-dollar"></i> Pricing</a>
1315
</div>
1416
</div>
1517
{% endblock %}

templates/silver_bill.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ <h2>Calculation Details (Silver)</h2>
5353
<!-- Sidebar -->
5454
<div class="sidebar">
5555
<h2>Jeweler Details</h2>
56+
<img src="{{ url_for('static', filename=config['JEWELLER_LOGO']) }}" alt="Jeweler Logo" class="img-fluid" style="max-width: 200px;">
5657
<p><strong>Name:</strong> {{ config["JEWELLER_NAME"] }}</p>
5758
<p><strong>Address:</strong> {{ config["JEWELLER_ADDRESS"] }}</p>
5859
<p><strong>Contact:</strong> {{ config["JEWELLER_CONTACT"] }}</p>

templates/silver_calculator.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ <h1>Silver Price Calculator</h1>
1111
<p class="text-center">Get accurate silver prices with our easy-to-use calculator!</p>
1212
<form action="/silver-calculator" method="POST" class="shadow p-4 bg-white rounded">
1313
<div class="form-group">
14-
<label for="weight">Weight (grams):</label>
14+
<label for="weight">Weight (grams): <i class="fa-solid fa-scale-balanced"></i></label>
1515
<input type="number" id="weight" name="weight" step="0.01" class="form-control" required>
1616
</div>
1717
<div class="form-group">
18-
<label for="purity">Purity (%):</label>
18+
<label for="purity">Purity (%): <i class="fa-solid fa-magnifying-glass"></i></label>
1919
<input type="number" id="purity" name="purity" step="0.1" max="100" min="0" class="form-control" required>
2020
</div>
2121
<div class="form-group">
22-
<label for="price_per_gram">Price(per gm) (₹):</label>
22+
<label for="price_per_gram">Price(per gm) (₹): <i class="fa-solid fa-weight-hanging"></i></label>
2323
<input type="number" id="price_per_gram" name="price_per_gram" step="0.01" class="form-control" value="{{ price_per_gram }}" required>
2424
</div>
2525
<div class="form-group">
26-
<label for="service_charge">Service Charge (%):</label>
26+
<label for="service_charge">Service Charge (%): <i class="fa-solid fa-file-invoice-dollar"></i></label>
2727
<input type="number" id="service_charge" name="service_charge" step="0.1" value="{{ service_charge }}" class="form-control">
2828
</div>
2929
<div class="form-group">
30-
<label for="tax">Tax (%):</label>
30+
<label for="tax">Tax (%): <i class="fa-solid fa-file-invoice-dollar"></i></label>
3131
<input type="number" id="tax" name="tax" step="0.1" value="{{ tax }}" class="form-control">
3232
</div>
3333
<button type="submit" class="btn btn-custom btn-block">Generate Estimate Bill</button>
@@ -37,6 +37,7 @@ <h1>Silver Price Calculator</h1>
3737
<!-- Sidebar -->
3838
<div class="sidebar">
3939
<h2>Jeweler Details</h2>
40+
<img src="{{ url_for('static', filename=config['JEWELLER_LOGO']) }}" alt="Jeweler Logo" class="img-fluid" style="max-width: 200px;">
4041
<p><strong>Name:</strong> {{ config['JEWELLER_NAME'] }}</p>
4142
<p><strong>Address:</strong> {{ config['JEWELLER_ADDRESS'] }}</p>
4243
<p><strong>Contact:</strong> {{ config['JEWELLER_CONTACT'] }}</p>

0 commit comments

Comments
 (0)