Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update header #607

Merged
merged 5 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/common/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ pub const ESTIMATED_ROW_HEIGHT: usize = 48;
pub const DEFAULT_ESTIMATED_NON_TABLE_SPACE_IN_SECTIONS: usize = 160;
pub const EPOCH_SLOTS: u16 = 7140;
pub const DEFAULT_USER_INPUT_DEBOUNCE_INTERNVAL: f64 = 500.0;
pub const GLOBAL_SEARCH_PLACEHOLDER_TEXT: &str = "Paste, Enter, and Go!";
pub const GLOBAL_SEARCH_PLACEHOLDER_TEXT: &str =
"Paste -> Enter -> Explore the Mina blockchain";
pub const LIVE_RELOAD_INTERVAL: u64 = 60000;
18 changes: 1 addition & 17 deletions src/common/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,7 @@ pub fn GlobalSearchBar() -> impl IntoView {

view! {
<PreSectionContainer>
<div class="pl-8 md:pl-0 flex flex-col md:pr-4">
<span class="text-white font-bold text-2xl p-1 whitespace-nowrap">
"Mina Blockchain Explorer"
</span>
<span class="text-white font-medium text-base p-1 whitespace-nowrap">
<span class="whitespace-pre">
"Powered by "
<a
href="https://granola.team"
class="hover:text-granola-orange hover:underline hover:decoration-2"
>
"Granola"
</a>
</span>
</span>
</div>
<div class="mx-2 my-2 md:mx-0 md:w-full relative align-stretch flex items-center">
<div class="mx-2 my-2 md:mx-0 md:w-full -mt-2 relative align-stretch flex items-center">
<form class="flex grow" on:submit=on_submit>
<input
id="searchbar"
Expand Down
13 changes: 11 additions & 2 deletions src/footer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,17 @@ pub fn Footer() -> impl IntoView {
},
];
view! {
<footer class="overflow-x-auto bg-main-background w-full h-12 min-h-12 flex flex-wrap justify-end">
<div class="w-full flex justify-between sm:justify-end p-4">
<footer class="overflow-x-auto bg-main-background w-full h-14 min-h-14 flex flex-wrap justify-between">
<span class="text-white text-sm p-4 whitespace-nowrap">
"Powered by "
<a
href="https://granola.team"
class="text-granola-orange hover:underline hover:decoration-2"
>
"Granola"
</a>
</span>
<div class="flex justify-between sm:justify-end p-4">
<GAOptOut/>
{links
.into_iter()
Expand Down