From d6de1137783b0b42eed7206790cc43477ebf249c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 2 Jul 2023 18:58:18 +0300 Subject: style(corp/rih): integrate initial new frontend styles Change-Id: Ie36fb58efab9a1c2d563dc3d891301b152de1c52 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8918 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- corp/rih/frontend/src/home.html | 390 ++++++++++++++++++++++++---------------- corp/rih/frontend/src/main.rs | 3 +- 2 files changed, 236 insertions(+), 157 deletions(-) (limited to 'corp/rih/frontend/src') diff --git a/corp/rih/frontend/src/home.html b/corp/rih/frontend/src/home.html index 697daf5148f3..3d63462b7d85 100644 --- a/corp/rih/frontend/src/home.html +++ b/corp/rih/frontend/src/home.html @@ -1,4 +1,5 @@ html! { +<>
-
-
-
-

{"Russia is Hiring"}

-

- {"Are you an IT-specialist on the hunt for a job? Well, "} - {"times are tough"} - {" in Western countries at the moment. Meanwhile tech is booming in Russia, and national support programs make life as an IT-specialist very comfortable. Why not look East?"} -

-

{"We can help you find an employer in Russia, sort out the formalities and get you started. Sign up and tell us a bit about your profile, or read on below about the benefits of life in Russia."}

+
+
+
+
+
+
+
+
+ {"Are you an IT-specialist on the hunt for a job?"} +
-
- -
-
-
- +
+ {"Well, times are tough in Western countries at the moment. Meanwhile tech is booming in Russia, and national support programs make life as an IT-specialist very comfortable. Why not look East?"} +
+ +
+ {"We can help you find an employer in Russia, sort out the formalities and get you started. Sign up and tell us a bit about your profile, or read on below about the benefits of life in Russia."} +
+ + + {"Sign up →"} + + +
+ +
+
+ {"Russia is well placed to draw highly-qualified specialists"} +
+
+ {"looking to relocate from any part of the World."} +
+
+
+
+
-
- -
-

{"Life in Russia"}

-
-
-

{"Moscow is very cool and good indeed"}

-

{"Paragraph of text beneath the heading to explain the heading. We'll add onto it with another sentence and probably just keep going until we run out of words."}

- {"Primary button"} -
-
-
-
-
-
-

{"Look they have banyas"}

-

{"Paragraph of text beneath the heading to explain the heading."}

-
- -
-
-
-

{"Wow such cultural diversity"}

-

{"Paragraph of text beneath the heading to explain the heading."}

-
-
-
-
-

{"Many nice landscapes indeed"}

-

{"Paragraph of text beneath the heading to explain the heading."}

-
+
+
+
+
+
+ {"Russia is"} +
+ {"an industrialized country"} +
+
+
+ {"and the sole European power whose economic cycle is synchronized with Asian economic growth rather than with Western economic contraction."} +
+
+ {"Despite the recent sanctions and political tensions, Russia is developing rapidly and needs skilled workers to help fuel its growth. The country has a diverse economy, with strong industries in areas such as energy, technology, finance, and manufacturing. Russian economy has much less risks compared to the Western economies, it is isolated from the Western financial sector and is not a Bubble economy."} +
+
+
+
+
+
-
-
-
-

{"And such low taxes!"}

-

{"Paragraph of text beneath the heading to explain the heading."}

-
-
+
+
+
+
+
+ {"There are opportunities for professionals in a variety of fields, from engineering and IT to marketing and finance."} +
+
+ {"So, if you're a skilled professional looking for new opportunities and want to have for you and your family a great quality of life, consider working in Russia."} +
+
+
+
+ {"The country welcomes foreign workers and their families and is ready to offer you the support you need to succeed."} +
+
+ {"Don't let politics or misconceptions hold you back - come see what Russia has to offer and help build a brighter future for all."} +
+
-
- -
-
-
- -

{"Finding Work in Russia"}

-

- {"Usually landing the most interesting jobs requires you to have a well-developed network of contacts, but this is tough when you set your eyes on a new country. Luckily we at "} - {"Vista Immigration"} - {" have contacts with many tech companies in Russia, large and small, and can help you with this!"}

-

{"Tell us a bit about yourself, the technologies you'd like to work with, and your situation in regards to relocating to Russia. We will then match up your profile with companies that match your interests, and establish contact between you and a potential employer if there is a good fit. No generic recruiter spam, guaranteed - we'd rather not send you anything, than send you something irrelevant!"}

-

- {"If you get hired, our experts can assist you with legal and other support for your move. Добро пожаловать в Россию!"} -

+ +
+
+
+
+ +
+
+
+ {"As an IT specialist you can qualify for"} +
+
+ {"a Highly Qualified Specialist work permit"} +
+
+ {"a 3 year work visa that gives you a flat 13% tax rate from day 1 on your salary"} +
+
+ {"Moreover, in case your Russian employer is an accredited IT company you are eligible to obtain a permanent residency in Russia within 3-4 months after employment"} +
+
+
-
-
-

{"Let's get started with you telling us a bit about what kind of job you would like!"}

+
+
+
+ +
+
+ {"Finding Work in"} + +
+ +
+ {"Usually landing the most interesting jobs requires you to have a well-developed network of contacts, but this is tough when you set your eyes on a new country."} +
+
+ {"Luckily we at Vista Immigration have contacts with many tech companies in Russia, large and small, and can help you with this!"} +
+
+ {"Tell us a bit about yourself, the technologies you'd like to work with, and your situation in regards to relocating to Russia. We will then match up your profile with companies that match your interests, and establish contact between you and a potential employer if there is a good fit. No generic recruiter spam, guaranteed - we'd rather not send you anything, than send you something irrelevant!"} +
+
+ {"If you get hired, our experts can assist you with legal and other support for your move."} +
+
+
+
- if !self.submitted { -
-
+
-
- - -
+ if !self.submitted { +
+ {"Welcome to Russia"} +
+ {"Добро пожаловать в Россию!"} +
-
- -
{render_technologies(link, &self.record.technologies)}
+
+ {"Let's get started with you telling us a bit"} +
+ {"about what kind of job you would like!"} +
- -
{"Press enter after each technology."}
-
+ +
-
- - -
{"Tell us about your work experience, and/or leave links to your CV on your site, LinkedIn or wherever."}
-
+
+ + +
-
- - -
{"Tell us a bit about what you're looking for in a job and in an employer."}
-
+
+ +
{render_technologies(link, &self.record.technologies)}
-
-

{"Now we also need some personal details about you:"}

+ +
{"Press enter after each technology."}
+
-
- - -
+
+ + +
{"Tell us about your work experience, and/or leave links to your CV on your site, LinkedIn or wherever."}
+
-
- - -
{"No newsletters, no spam - we will only reach out if there's a match!"}
-
+
+ + +
{"Tell us a bit about what you're looking for in a job and in an employer."}
+
-
- - {citizenship_input(self, link)} -
{"We need to know this to estimate immigration-related bureaucracy. If you hold more than one citizenship, pick the one with which you'd want to receive a work visa."}
-
+
+ {"Now we also need some personal details about you:"} +
-
- - -
{"Any specific places where you'd like to live? Would you be moving with family? Any other assistance required?"}
-
+
+ + +
+ +
+ + +
{"No newsletters, no spam - we will only reach out if there's a match!"}
+
+ +
+ + {citizenship_input(self, link)} +
{"We need to know this to estimate immigration-related bureaucracy. If you hold more than one citizenship, pick the one with which you'd want to receive a work visa."}
+
-
+ {"" /* TODO(tazjin): language knowledge selector */} - -

{"This page is still under construction! Please reach out at contact@ if you have any questions."}

- +
+ + +
{"Any specific places where you'd like to live? Would you be moving with family? Any other assistance required?"}
- } else { -
-

{"Thank you for submitting your data! We will reach out to confirm your email address, and further if any matches are found. You can contact us at contact@russiaishiring.com with any questions you might have."}

+ +
+ + +
+ +
+ +
+
- }
+ + } else { +
+

{"Thank you for submitting your data! We will reach out to confirm your email address, and further if any matches are found. You can contact us at contact@russiaishiring.com with any questions you might have."}

-
- -
-
-

+ } +

+ - - + + + } diff --git a/corp/rih/frontend/src/main.rs b/corp/rih/frontend/src/main.rs index efccaaece287..65f9c79a540e 100644 --- a/corp/rih/frontend/src/main.rs +++ b/corp/rih/frontend/src/main.rs @@ -4,7 +4,6 @@ use gloo::console; use gloo::history::{BrowserHistory, History}; use gloo::net::http; use gloo::storage::{LocalStorage, Storage}; -use gloo::utils::format::JsValueSerdeExt; use rand::seq::IteratorRandom; use rand::thread_rng; use serde::{Deserialize, Serialize}; @@ -345,7 +344,7 @@ async fn submit_data(captcha_token: &str, record: &Record) -> bool { } /// Handle the submit event, if all data was successfully collected. -fn handle_submit(app: &App, link: Scope) -> Msg { +fn handle_submit(app: &App, _link: Scope) -> Msg { let token = app.captcha_token.as_ref().unwrap().clone(); let record = app.record.clone(); -- cgit 1.4.1