Skip to content
Merged
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
1 change: 1 addition & 0 deletions Domains/AR-VR/MiniProjects/Wearable-Translation-Glasses
Submodule Wearable-Translation-Glasses added at 27774d
15 changes: 8 additions & 7 deletions Domains/AR-VR/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ YourARVRProject/
## 📊 Project Template

```markdown
# Project Name
# Wearable Translation Glasses

**Contributor:** YourGitHubUsername
**Contributor:** Mansi13-6
**Domain:** AR-VR
**Difficulty:** [Beginner/Intermediate/Advanced]
**Platform:** [AR / VR / Mixed Reality]
**Difficulty:** [Intermediate]
**Platform:** [AR / VR]

## Description
Brief description of the AR/VR experience.
Expand Down Expand Up @@ -321,9 +321,10 @@ Android Build Support (for Quest)
\`\`\`
Window → Package Manager
Install:
- XR Plugin Management
- XR Interaction Toolkit
- Oculus XR Plugin (for Quest)
# pip install numpy==1.24.4
# pip install opencv-python
# pip install easyocr
# pip install googletrans==4.0.0-rc1
\`\`\`

### 3. Project Settings
Expand Down
5 changes: 5 additions & 0 deletions Domains/Frontend/MiniProjects/Currency Converter/.hintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"development"
]
}
11 changes: 11 additions & 0 deletions Domains/Frontend/MiniProjects/Currency Converter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**Contributor:** Mansi13-6

## Description
A simple web app that converts different currencies.
## Tech Stack
- HTML
- CSS
- JavaScript

## How to Run
1. Open the `index.html` file in your web browser.
50 changes: 50 additions & 0 deletions Domains/Frontend/MiniProjects/Currency Converter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Currency Converter</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<h1>💱 Currency Converter</h1>

<div class="converter-box">
<div class="amount-box">
<label>Amount:</label>
<input type="number" id="amount" value="1" min="1" />
</div>

<div class="currency-box">
<div>
<label>From:</label>
<select id="fromCurrency">
<option value="USD">USD</option>
<option value="INR">INR</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
<option value="JPY">JPY</option>
</select>
</div>
<div>
<label>To:</label>
<select id="toCurrency">
<option value="INR">INR</option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
<option value="JPY">JPY</option>
</select>
</div>
</div>

<button id="convertBtn">Convert</button>

<div id="result" class="result">Converted amount will appear here</div>
</div>
</div>

<script src="script.js"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions Domains/Frontend/MiniProjects/Currency Converter/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const convertBtn = document.getElementById("convertBtn");
const amountInput = document.getElementById("amount");
const fromCurrency = document.getElementById("fromCurrency");
const toCurrency = document.getElementById("toCurrency");
const result = document.getElementById("result");

// Static exchange rates (approximate values)
const rates = {
USD: 1,
INR: 83,
EUR: 0.92,
GBP: 0.79,
JPY: 151
};

convertBtn.addEventListener("click", () => {
const amount = parseFloat(amountInput.value);
const from = fromCurrency.value;
const to = toCurrency.value;

if (isNaN(amount) || amount <= 0) {
result.textContent = "Please enter a valid amount.";
return;
}

// Convert to USD base, then to target currency
const convertedAmount = (amount / rates[from]) * rates[to];

result.textContent = `${amount} ${from} = ${convertedAmount.toFixed(2)} ${to}`;
});
66 changes: 66 additions & 0 deletions Domains/Frontend/MiniProjects/Currency Converter/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
* {
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}

body {
background: linear-gradient(135deg, #824ab6, #e2a4f0);
color: #fff;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.container {
background: rgba(255, 255, 255, 0.1);
padding: 30px;
border-radius: 15px;
text-align: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
width: 90%;
max-width: 400px;
}

h1 {
margin-bottom: 20px;
font-size: 26px;
}

.converter-box {
display: flex;
flex-direction: column;
gap: 15px;
}

.amount-box input,
.currency-box select {
padding: 10px;
border-radius: 8px;
border: none;
width: 100%;
}

button {
background-color: #fff;
color: #0077ff;
font-weight: bold;
border: none;
border-radius: 8px;
padding: 10px;
cursor: pointer;
transition: 0.3s;
}

button:hover {
background-color: #0077ff;
color: #fff;
}

.result {
margin-top: 10px;
font-size: 18px;
background: rgba(255,255,255,0.15);
padding: 10px;
border-radius: 10px;
}
1 change: 1 addition & 0 deletions ProjectHive
Submodule ProjectHive added at ae02db
Loading