Skip to content

Commit

Permalink
Show full australia map with highlighted states
Browse files Browse the repository at this point in the history
  • Loading branch information
r-tae committed Aug 21, 2024
1 parent f8f507e commit 0c8ef99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 61 deletions.
53 changes: 0 additions & 53 deletions assets/css/region_map.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,56 +54,3 @@
fill: var(--region-map-fill--selected);
}

/*
NOTE: this will be broken if two individual states are selected, I don't think this
is present in the data as of June 2024
*/
/* Hide other states when single state is selected */
.region_map_svg__select_vic #root > *,
.region_map_svg__select_wa #root > *,
.region_map_svg__select_sa #root > *,
.region_map_svg__select_nt #root > *,
.region_map_svg__select_qld #root > *,
.region_map_svg__select_nsw #root > *,
.region_map_svg__select_tas #root > * {
display: none;
}

.region_map_svg__select_qld #QLD {
display: block;
transform: translateX(-100%) scale(1.7);
}

.region_map_svg__select_qld #QLD {
display: block;
transform: translateX(-100%) scale(1.7);
}

.region_map_svg__select_vic #VIC {
display: block;
transform: translateX(-170%) translateY(-180%) scale(3);
}
.region_map_svg__select_wa #WA {
display: block;
transform: translateX(0%) translateY(-10%) scale(1.4);
}
.region_map_svg__select_sa #SA {
display: block;
transform: translateX(-70%) translateY(-70%) scale(2);
}
.region_map_svg__select_nt #NT {
display: block;
transform: translateX(-100%) scale(1.7);
}
.region_map_svg__select_qld #QLD {
display: block;
transform: translateX(-100%) scale(1.7);
}
.region_map_svg__select_nsw #NSW {
display: block;
transform: translateX(-150%) translateY(-90%) scale(2.2);
}
.region_map_svg__select_tas #TAS {
display: block;
transform: translateY(-320%) translateX(-280%) scale(4);
}
10 changes: 2 additions & 8 deletions lib/signbank_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,10 @@ defmodule SignbankWeb.Router do

live "/dictionary", SignLive.Index, :index

live "/advanced-search", SignLive.Index, :index

live "/dictionary/sign/:id", SignLive.BasicView, :show
live "/dictionary/sign/:id/linguistic", SignLive.LinguisticView, :show

# TODO: decide what to do with these
# These are routes from the "recreated_signbank" project
# live "/dictionary", SignLive.Index, :index
# live "/dictionary/edit", SignLive.Edit, :new
# live "/dictionary/edit/:id_gloss", SignLive.Edit, :edit
# get "/dictionary/sign/:id_gloss", DictionaryController, :sign
# get "/dictionary/sign/:id_gloss/detail", DictionaryController, :detail_sign
end

# Editor routes
Expand Down

0 comments on commit 0c8ef99

Please sign in to comment.