Skip to content

Commit

Permalink
feat: reduce the amount of copy on the home page & improve other text
Browse files Browse the repository at this point in the history
  • Loading branch information
akarras committed Nov 19, 2023
1 parent 734c345 commit 2fea9f4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
5 changes: 4 additions & 1 deletion ultros-frontend/ultros-app/src/components/select.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use leptos::{html::{Div, Input}, *};
use leptos::{
html::{Div, Input},
*,
};
#[cfg(feature = "hydrate")]
use leptos_use::use_element_hover;

Expand Down
10 changes: 8 additions & 2 deletions ultros-frontend/ultros-app/src/components/world_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ pub fn WorldOnlyPicker(
.0;
match local_worlds {
Ok(worlds) => {
let data = create_memo(move |_| worlds.iter().filter_map(|w| w.as_world()).cloned().collect::<Vec<_>>());
view!{
let data = create_memo(move |_| {
worlds
.iter()
.filter_map(|w| w.as_world())
.cloned()
.collect::<Vec<_>>()
});
view! {
<Select items=data.into()
as_label=move |w| w.name.clone()
choice=current_world
Expand Down
37 changes: 16 additions & 21 deletions ultros-frontend/ultros-app/src/routes/home_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,23 @@ pub fn HomePage() -> impl IntoView {
</div>
<div class="flex flex-col">
<h1 class="text-3xl">"Ultros Alpha"</h1>
<Title text="Ultros The Ultra Fast Market Tool"/>
<div>
<div class="flex p-8 flex-col md:flex-row">
<ul>
<h2 class="text-3xl p-1">"Fast Prices"</h2>
<ul class="list-disc text-xl p-2">
<li>"fastest search in the west"</li>
<li>"view associated recipes with an item and the price to craft it"</li>
<li>"explore prices to buy job gear quickly and easily, for example- "<A href="/items/jobset/SAM">"all Samurai gear"</A></li>
</ul>
<Title text="Ultros: The Ultra Fast Market Tool"/>
<div class="p-8 flex flex-col md:flex-row">
<div class="flex flex-col">
<h2 class="text-3xl p-1">"Fast Prices"</h2>
<ul class="list-disc text-xl p-2">
<li>"Fastest search in the west"</li>
<li>"View associated recipes and crafting costs"</li>
<li>"Explore prices for job gear, e.g., "<A href="/items/jobset/SAM">"all Samurai gear"</A></li>
</ul>
</div>
</div>
<div class="p-8 grow flex-auto flex flex-col md:flex-row">
<div class="flex flex-col">
<span class="text-3xl p-1">"Analyzer"</span>
<ul class="list-disc text-xl p-2">
<li>"Make tons of gil with market arbitrage, find items cheap on other worlds and resell on yours"</li>
<li>"Quickly filter by roi, profit, and estimated sale date"</li>
<li>"Profit from market arbitrage"</li>
<li>"Filter by ROI, profit, and estimated sale date"</li>
</ul>
</div>
<div class="flex md:ml-20 flex-col text-right align-top">
Expand All @@ -59,7 +57,7 @@ pub fn HomePage() -> impl IntoView {
<CharacterRetainerList character=None retainers=vec![(Retainer {
id: 0,
world_id: 9,
name: "Retainer 1".to_string(),
name: "your-best-retainer".to_string(),
retainer_city_id: 1
}, vec![ActiveListing {
id: 0,
Expand All @@ -83,7 +81,6 @@ pub fn HomePage() -> impl IntoView {
</div>
<div class="flex flex-col p-8 h-full w-full bg-gradient-to-br from-[#100a13] to-transparent">
<span class="text-3xl p-1">"Retainers"</span>
<br/>
<ul class="list-disc text-xl p-2">
<li>"Track your retainer's listings online"</li>
<li>"View undercut items in one place"</li>
Expand All @@ -93,21 +90,19 @@ pub fn HomePage() -> impl IntoView {
</div>
<div class="p-8 grow">
<span class="content-title">"Lists"</span>
<br/>
<ul>
<li>"Make shopping lists and find the cheapest prices"</li>
<ul class="list-disc text-xl p-2">
<li>"Create shopping lists with the best prices"</li>
<li>"Import entire recipes"</li>
<li>"Honestly not as good as Teamcraft, but maybe it'll be better one day"</li>
<li>"Ongoing improvements for a better experience"</li>
</ul>
</div>
<Ad />
<div class="p-8 flex flex-col md:flex-row">
<div class="flex flex-col p-2">
<span class="content-title">"Discord Bot"</span>
<br/>
<ul>
<li>"Use many features of the site through a Discord bot"</li>
<li>"Get alerts via notifications through the bot"</li>
<li>"Use site features through a Discord bot"</li>
<li>"Receive alerts via bot notifications"</li>
</ul>
</div>
<a class="flex flex-col p-4 bg-slate-950 text-lg rounded-md b-solid border-2 border-violet-950 text-white items-center text-center ml-10" href="/invitebot">
Expand Down
2 changes: 1 addition & 1 deletion ultros-frontend/ultros-app/src/routes/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn HomeWorldPicker() -> impl IntoView {
<span>"The home world will default for the analyzer and several other pages"</span>
<label class="text-lg">"default price zone"</label>
<WorldPicker current_world=price_region set_current_world=set_price_region />
<span>"The price zone is where each price will be shown"</span>
<span>"what world/region to show prices by default for within search/"<a href="/items">"items"</a>" pages"</span>
</div>
</div>}
}
Expand Down

0 comments on commit 2fea9f4

Please sign in to comment.