-
Notifications
You must be signed in to change notification settings - Fork 1
/
Intro.elm
42 lines (37 loc) · 1.94 KB
/
Intro.elm
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
module Intro exposing (..)
import Css exposing (padding, border3, solid, margin, color, batch, fontFamilies, fontSize, fontWeight, px, normal, width, underline, hover, textDecoration, backgroundColor)
import Html.Styled exposing (Attribute, Html, section, styled, button)
import Settings exposing (theme)
homepage_description = [ ((40+5, 26, theme.step), "Welcome to our Visualization of Basic Quantum Circuits! ")
, ((44+5, 26, theme.gray), "Click the buttons to design your own quantum circuits / view instructions!")
, ((49+7, 26, theme.step), "NOTES:")
, ((52+7, 26, theme.gray), "Unlike a traditional circuit where a bit is 1 or 0, a Qubit in quantum computing can also be in a superposition of the 1 and 0 states.")
, ((58+7, 26, theme.gray), "You will be able to build a simple quantum circuit consisting of the basic quantum gates, input the initial qubit states, and then see the result!")
, ((65+7, 26, theme.gray), "In quantum mechanics, measurement make the qubits collapsed to a certain state and classical information emerged. So what we will show to you as the result of circuits are the probabilities of the outcomes depending on the quantum state they were in.")
]
homepage_description_style =
batch
[ fontFamilies ["monospace"]
, fontSize (px 16)
, fontWeight normal
, width (px 700)
]
homepage_txt clr =
styled section
[ padding (px 10)
, width (px 800)
, color clr
--, border3 (px 5) solid theme.secondary
, margin (px 12)
]
btn : List (Attribute msg) -> List (Html msg) -> Html msg
btn =
styled button
[ margin (px 12)
, fontSize (px 12)
, color theme.third
, hover
[ backgroundColor theme.secondary
, textDecoration underline
]
]