Skip to content

Commit c472e04

Browse files
committed
fix(website): 💄 made github button same size as get started button on index page
Follow-up from #54.
1 parent aced234 commit c472e04

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

‎website/website/src/templates/index.rs

+16-14
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,22 @@ pub fn index_page() -> SycamoreTemplate<G> {
2121
p(class = "text-7xl xs:text-8xl sm:text-9xl p-2 font-extrabold") { (t!("perseus")) }
2222
p(class = "text-lg") { (t!("index-caption")) }
2323
br()
24-
a(
25-
class = "py-3 px-4 m-2 font-semibold rounded-lg shadow-2xl text-white bg-indigo-500 hover:bg-indigo-400 transition-colors duration-200",
26-
href = link!("/docs")
27-
) { (t!("index-get-started")) }
28-
a(
29-
// The difference in y-axis padding is deliberate, it looks better with the ring
30-
class = "inline-flex items-center py-2 px-4 m-2 font-semibold rounded-lg shadow-2xl dark:text-white ring-4 ring-indigo-500 hover:ring-indigo-400 transition-colors duration-200",
31-
href = "https://github.com/arctic-hen7/perseus"
32-
) {
33-
span(
34-
class = "m-1",
35-
dangerously_set_inner_html = GITHUB_SVG
36-
)
37-
span { (format!(" {}", t!("index-github"))) }
24+
div(class = "flex items-center justify-center") {
25+
a(
26+
class = "py-3 px-4 m-2 font-semibold rounded-lg shadow-2xl text-white bg-indigo-500 hover:bg-indigo-400 transition-colors duration-200",
27+
href = link!("/docs")
28+
) { (t!("index-get-started")) }
29+
a(
30+
// The difference in y-axis padding is deliberate, it looks better with the ring
31+
class = "inline-flex items-center py-2 px-4 m-2 font-semibold rounded-lg shadow-2xl dark:text-white ring-4 ring-indigo-500 hover:ring-indigo-400 transition-colors duration-200",
32+
href = "https://github.com/arctic-hen7/perseus"
33+
) {
34+
span(
35+
class = "mr-1",
36+
dangerously_set_inner_html = GITHUB_SVG
37+
)
38+
span { (format!(" {}", t!("index-github"))) }
39+
}
3840
}
3941
}
4042
}

0 commit comments

Comments
 (0)