generated from schrodinger/hacking-the-gender-stack-2024-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eabcb6
commit 9d55713
Showing
7 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
body { | ||
background-color: #F8F9FA; | ||
} | ||
|
||
.container { | ||
background-color: #fff; | ||
padding: 20px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
margin-top: 50px; | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
color: #333; | ||
} | ||
|
||
.btn-custom { | ||
background-color: #4CAF50; | ||
color: #fff; | ||
border: 2px solid #4CAF50; | ||
} | ||
|
||
.btn-custom:hover { | ||
background-color: #45A049; | ||
color: #fff; | ||
} | ||
|
||
.btn-secondary-custom { | ||
background-color: #3498DB; | ||
color: #fff; | ||
border: 2px solid #3498DB; | ||
} | ||
|
||
.btn-secondary-custom:hover { | ||
background-color: #2980B9; | ||
color: #fff; | ||
} |
Empty file.
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
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,9 +1,13 @@ | ||
from django.urls import path | ||
from django.conf import settings | ||
from django.conf.urls.static import static | ||
from . import views | ||
|
||
urlpatterns = [ | ||
path("home/", views.home, name="home"), | ||
path("inputMolecules/", views.inputMolecules, name="inputMolecules"), | ||
path("inputOneMolecule/", views.inputOneMolecule, name="inputOneMolecule"), | ||
path("inputTwoMolecules/", views.inputTwoMolecules, name="inputTwoMolecules") | ||
] | ||
path("oneMolecule/", views.oneMolecule, name="oneMolecule"), | ||
path("views.twoMolecules/", views.twoMolecules, name="twoMolecules"), | ||
path("collectDataOne/", views.collectInputOne, name="collectInputOne"), | ||
path("collectDataTwo/", views.collectInputTwo, name="collectInputTwo"), | ||
path("processData/", views.processData, name="processData") | ||
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |
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,17 +1,23 @@ | ||
from django.shortcuts import render | ||
from django.http import HttpResponse | ||
#from .forms import oneMolecule | ||
from subunitIdent import subunitIdent | ||
|
||
def home(request): | ||
return render(request, "projectApp/home.html") | ||
|
||
def inputMolecules(request): | ||
molecule = request.POST.get("molecule") | ||
print(molecule) | ||
return HttpResponse("Recieved molecule!") | ||
|
||
def inputOneMolecule(request): | ||
def oneMolecule(request): | ||
return render(request, "projectApp/oneMolecule.html") | ||
|
||
def inputTwoMolecules(request): | ||
return render(request, "projectApp/twoMolecules.html") | ||
def twoMolecules(request): | ||
return render(request, "projectApp/TwoMolecules.html") | ||
|
||
def collectInputOne(request): | ||
return render(request, 'projectApp/oneMolecule.html') | ||
|
||
def collectInputTwo(request): | ||
return render(request, 'projectApp/twoMolecules.html') | ||
|
||
def processData(request): | ||
input = request.POST.get("user-input") | ||
output = subunitIdent(input) | ||
return render(request, "projectApp/oneMolecules.html", {"molecular_data": output.molecular_data}) |