This repository was archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathLink.bs.js
More file actions
61 lines (55 loc) · 1.76 KB
/
Link.bs.js
File metadata and controls
61 lines (55 loc) · 1.76 KB
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
// Generated by ReScript, PLEASE EDIT WITH CARE
import * as CssJs from "bs-css-emotion/src/CssJs.bs.js";
import * as Theme from "../../lib/Theme.bs.js";
import * as React from "react";
import * as Caml_option from "rescript/lib/es6/caml_option.js";
var link = CssJs.style([
CssJs.fontFamily(Theme.fontFamily),
CssJs.color(CssJs.hex(Theme.Colors.blue)),
CssJs.fontSize(CssJs.rem(2.0)),
CssJs.position(CssJs.relative),
CssJs.cursor(CssJs.pointer),
CssJs.zIndex(1),
CssJs.background(CssJs.transparent),
CssJs.transition(100, undefined, undefined, "color"),
CssJs.padding(CssJs.px(2)),
CssJs.after([
CssJs.zIndex(-1),
CssJs.contentRule({
NAME: "text",
VAL: " "
}),
CssJs.height(CssJs.px(2)),
CssJs.width(CssJs.pct(100.0)),
CssJs.background(CssJs.hex(Theme.Colors.blue)),
CssJs.position(CssJs.absolute),
CssJs.bottom(CssJs.px(-3)),
CssJs.left(CssJs.zero),
CssJs.transition(100, undefined, undefined, "height")
]),
CssJs.hover([
CssJs.transition(100, undefined, undefined, "color"),
CssJs.color(CssJs.hex(Theme.Colors.white)),
CssJs.after([
CssJs.transition(100, undefined, undefined, "height"),
CssJs.height(CssJs.pct(100.0))
])
])
]);
function Link(Props) {
var href = Props.href;
var children = Props.children;
var tmp = {
className: link
};
if (href !== undefined) {
tmp.href = Caml_option.valFromOption(href);
}
return React.createElement("a", tmp, children);
}
var make = Link;
export {
link ,
make ,
}
/* link Not a pure module */