Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/TobiasSchaeuble-EH/LunchHeroes
- Loading branch information
Showing
13 changed files
with
340 additions
and
297 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
"""Lunchheros: Backend to match people for lunch based on their interests.""" | ||
"""Lunchheros: Backend to match people for lunch based on their interests.""" | ||
from lunchheros import match | ||
|
||
__all__ = ["match"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
"""Subpackage related to matching between users into groups.""" | ||
|
||
from lunchheros.match import matching | ||
|
||
__all__ = ["matching"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+393 Bytes
(140%)
backend/src/routes/users/__pycache__/userFunctions.cpython-311.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,76 @@ | ||
import React from "react"; | ||
import "../SCSS/scheduling.css"; | ||
|
||
import React from 'react'; | ||
import '../SCSS/scheduling.css'; | ||
const Scheduling = (props) => { | ||
const generateTimeSlots = () => { | ||
let slots = []; | ||
for (let i = 11; i <= 14; i++) { | ||
for (let j = 0; j < 60; j += 30) { | ||
if (i === 14 && j > 0) break; // Avoid adding 14:30 | ||
const hour = String(i).padStart(2, '0'); | ||
const minute = String(j).padStart(2, '0'); | ||
slots.push(`${hour}:${minute}`); | ||
const generateTimeSlots = () => { | ||
let slots = []; | ||
for (let i = 11; i <= 14; i++) { | ||
for (let j = 0; j < 60; j += 30) { | ||
if (i === 14 && j > 0) break; // Avoid adding 14:30 | ||
const hour = String(i).padStart(2, '0'); | ||
const minute = String(j).padStart(2, '0'); | ||
slots.push(`${hour}:${minute}`); | ||
} | ||
} | ||
} | ||
return slots; | ||
}; | ||
|
||
const featureSoon = () => { | ||
window.alert("Feature coming soon!"); | ||
} | ||
return ( | ||
<div className="scheduling-container"> | ||
<div className="scheduling-header"> | ||
Fancy having lunch together with interesting people? | ||
</div> | ||
<div className="time-dropdown-guests-slider"> | ||
<div className="time-dropdown"> | ||
<div> | ||
<strong>Time Slot:</strong> | ||
<select | ||
value={props.timeSlot} | ||
onChange={(e) => props.onTimeSlotChange(e.target.value)} | ||
> | ||
{generateTimeSlots().map((slot, index) => ( | ||
<option key={index} value={slot}> | ||
{slot} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
</div> | ||
<div className="guests-slider"> | ||
<div className="slider"> | ||
<strong>Group Size:</strong> | ||
<input | ||
type="range" | ||
min="2" | ||
max="4" | ||
value={props.groupSize} | ||
onChange={(e) => props.onGroupSizeChange(e.target.value)} | ||
/> | ||
{props.groupSize} Persons | ||
</div> | ||
</div> | ||
return slots; | ||
}; | ||
const featureSoon = () => { | ||
window.alert('Feature coming soon!'); | ||
}; | ||
return ( | ||
<div className="scheduling-container"> | ||
<div className="scheduling-header"> | ||
Fancy having lunch together with interesting people? | ||
</div> | ||
<div className="time-dropdown-guests-slider"> | ||
<div className="time-dropdown"> | ||
<div> | ||
<strong>Time Slot:</strong> | ||
<select | ||
value={props.timeSlot} | ||
onChange={(e) => | ||
props.onTimeSlotChange(e.target.value) | ||
} | ||
> | ||
{generateTimeSlots().map((slot, index) => ( | ||
<option key={index} value={slot}> | ||
{slot} | ||
</option> | ||
))} | ||
</select> | ||
</div> | ||
</div> | ||
<div className="guests-slider"> | ||
<div className="slider"> | ||
<strong>Group Size:</strong> | ||
<input | ||
type="range" | ||
min="2" | ||
max="4" | ||
value={props.groupSize} | ||
onChange={(e) => | ||
props.onGroupSizeChange(e.target.value) | ||
} | ||
/> | ||
{props.groupSize} Persons | ||
</div> | ||
</div> | ||
</div> | ||
<div className="actions-container"> | ||
<div className="quick-actions"> | ||
<button className="view-all-button">Randomize</button> | ||
<p>Use default settings for a quick match.</p> | ||
</div> | ||
<div className="advanced-actions"> | ||
<button className="view-all-button" onClick={featureSoon}> | ||
Customize | ||
</button> | ||
<p>Adjust settings to find your perfect match.</p> | ||
</div> | ||
</div> | ||
<div className="view-all-container"> | ||
<button className="view-all-button">View All Matches</button> | ||
</div> | ||
</div> | ||
<div className="actions-container"> | ||
<div className="quick-actions"> | ||
<button className="randomize-button">Randomize</button> | ||
<p>Use default settings for a quick match.</p> | ||
</div> | ||
<div className="advanced-actions"> | ||
<button className="customize-button" onClick={featureSoon}>Customize</button> | ||
<p>Adjust settings to find your perfect match.</p> | ||
</div> | ||
</div> | ||
<div className="view-all-container"> | ||
<button className="view-all-button">View All Matches</button> | ||
</div> | ||
</div> | ||
); | ||
); | ||
}; | ||
|
||
export default Scheduling; | ||
export default Scheduling; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
.profile-container { | ||
border: 1px solid #e0e0e0; | ||
padding: 20px; | ||
border-radius: 10px; | ||
max-width: 400px; | ||
margin: 20px auto; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
text-align: center; | ||
} | ||
|
||
.profile-container h2 { | ||
color: black | ||
} | ||
.profile-picture { | ||
width: 300px; | ||
height: 300px; | ||
border-radius: 50%; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.profile-detail, .profile-interests { | ||
margin: 10px 0; | ||
} | ||
|
||
.profile-interests ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
border: 1px solid #E0E0E0; | ||
padding: 20px; | ||
border-radius: 10px; | ||
max-width: 400px; | ||
margin: 20px auto; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
text-align: center; | ||
} | ||
.profile-container h2 { | ||
color: black | ||
} | ||
.profile-picture { | ||
width: 300px; | ||
height: 300px; | ||
border-radius: 50%; | ||
margin-bottom: 15px; | ||
} | ||
.profile-detail, .profile-interests { | ||
margin: 10px 0; | ||
} | ||
.profile-interests ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} |
Oops, something went wrong.