-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents.py
81 lines (75 loc) · 2.13 KB
/
components.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import dash_bootstrap_components as dbc
from dash import html, dcc
dna_icon = html.I(className="fa-solid fa-dna")
scissors_icon = html.I(className="fa-solid fa-scissors")
upload_icon = html.I(
className="fa-solid fa-cloud-arrow-up fa-2xl",
style={"margin-top": "1%", "margin-bottom": "3%"},
)
download_icon = html.I(className="fa-solid fa-floppy-disk fa-lg")
site_header = dbc.Row(
children=[
dbc.Col(
children=[
html.H1(
id="gRNA-title",
children=[
scissors_icon,
html.A("CRISPR Cas13 gRNA Design Tool", href="/", target="_blank", title="Click to Create New Primers"),
dna_icon,
],
),
]
)
]
)
sequence_input_form = dbc.Row(
children=[
dbc.Col(
children=[
dbc.Form(
children=[
dbc.Input(
id="seq-input",
placeholder="Input Sequence",
type="text",
value="",
autocomplete=False,
),
],
),
]
)
]
)
download_button = dbc.Button(
id="download-btn",
children=[
download_icon,
"Download Sequences",
dcc.Download(id="csv-download"),
],
title="Download gRNAs as CSV",
)
page_footer = dbc.Row(
className="justify-content-center align-items-center",
id="page-footer",
children=[
html.Div(
children=[
html.A(
children=[
"Caelan Miller",
html.I(
className="fa-brands fa-github fa-fw",
style={"margin": "auto"},
),
],
target="_blank",
href="https://github.com/caelanjmiller",
id="github-link",
)
],
),
],
)