-
Notifications
You must be signed in to change notification settings - Fork 1
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
feature: add i18n #21
Draft
gcor
wants to merge
4
commits into
main
Choose a base branch
from
feature-i18n
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import classNames from "classnames"; | ||
import { useTranslations } from "next-intl"; | ||
import { ACTION_LINK } from "./constants"; | ||
import styles from "./MainAction.module.css"; | ||
|
||
export function MainAction() { | ||
const t = useTranslations("Dev"); | ||
|
||
return ( | ||
<a | ||
className={classNames(styles.mainaction, styles.mainactionFooter)} | ||
href={ACTION_LINK} | ||
> | ||
Колл ту экшн | ||
</a> | ||
<div className={styles.mainaction__wrapper}> | ||
<a className={styles.mainaction} href={ACTION_LINK}> | ||
{t("Join us")} | ||
</a> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
import { useTranslations } from "next-intl"; | ||
import cn from "classnames"; | ||
import styles from "@/components/main-text/MainText.module.css"; | ||
|
||
interface MainTextProps { | ||
projects: JSX.Element; | ||
team: JSX.Element; | ||
} | ||
|
||
// TODO: translate to english | ||
export function MainText({ projects, team }: MainTextProps) { | ||
const t = useTranslations("Dev"); | ||
|
||
return ( | ||
<main className={cn(styles.page)}> | ||
<h2>Экосистема Екатеринбурга</h2> | ||
|
||
<h3>Что происходит</h3> | ||
|
||
<p> | ||
Сегодня город — это не просто место, чтобы жить жизнь, | ||
а невероятно сложная инфраструктура услуг, функций, событий, | ||
сценариев и взаимодействий, которые определяют комфорт и качество | ||
жизни. Разобраться во всём этом, мягко говоря, сложно. | ||
</p> | ||
|
||
<p> | ||
Поэтому мы планируем создать цифровую экосистему Екатеринбурга | ||
— объединение всех городских сфер в одном месте, чтобы | ||
упростить и автоматизировать жизнь горожан, бизнеса | ||
и администрации. | ||
</p> | ||
|
||
<h3>Почему здесь</h3> | ||
|
||
<p> | ||
Потому что Екатеринбург — город энтузиастов. Мы горим | ||
своим делом. Мы объединяемся, чтобы свернуть горы, | ||
а не конкурируем ради прибыли. Мы — сообщество. | ||
</p> | ||
|
||
<h3>Что уже есть и что в планах</h3> | ||
|
||
<p> | ||
Уже есть 10 проектов и заряженная команда — | ||
зацените, какой у нас | ||
<a href="https://github.com/ekaterinburgdev/" target="_blank"> | ||
гитхаб | ||
</a> | ||
. В ближайшие месяцы планируются большие анонсы всех проектов и | ||
разработка новых. | ||
</p> | ||
|
||
{projects} | ||
|
||
<h3>Кто нам нужен</h3> | ||
|
||
<p> | ||
Специалисты судьбы по следующим направлениям: AI, Big Data, | ||
Machine Learning, backend, frontend, C#, Python, Node.js, customer | ||
development, UI/UX design. | ||
</p> | ||
|
||
<p> | ||
Также мы ищем руководителей, арт-директоров, менеджеров | ||
продуктов, финансистов, продавцов, тестировщиков, аналитиков, | ||
продюсеров. | ||
</p> | ||
|
||
<p> | ||
И более того мы ищем инвесторов, спонсоров и партнёров! | ||
</p> | ||
|
||
<p> | ||
В нашей команде уже есть крутые ребята из Контура, Яндекса, | ||
Точки. И мы ждём к нам всех профессионалов, кто готов | ||
создать цифровой город будущего. | ||
</p> | ||
|
||
{team} | ||
|
||
<p> | ||
Наш локомотив уже несётся полным ходом. Залетайте, пока есть места. | ||
</p> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Dev": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my rebase updates: I have saved these texts. But they have changed and are not used yet:
|
||
"title": "Ekaterinburg code", | ||
"header": "This is the Yekaterinburg Code - a team that will achieve the impossible. The unattainable, complex, and insane. They will do what no one else can. This is the project you've dreamed of. It is the project of destiny.", | ||
"Learn more": "Find out what we will be doing", | ||
"Join us": "Join us", | ||
"Write to us": "Write to us", | ||
"Congratulations": "Congratulations! <br /> You are the most curious! <br /> We have been looking for you.", | ||
"Details": "<summary>Details for the most curious</summary> <p> Today, the city is not just a place to live, but a huge system of services, functions, events, scenarios, interactions. Only all this is not connected with each other in any way now. Culture here, medicine there, transport here, study here, power generally on the sidelines, etc. And it all looks different (and always bad), and it's difficult to work with it, and it's impossible to find anything. </p> <p> Therefore, we plan to create a full-fledged digital ecosystem of Yekaterinburg. First, we will collect in one place everything that is now scattered across an endless list of sites. There must be exactly one entry point to communicate with the city. Find out about the events, make an appointment with a therapist, get in line at kindergarten, get benefits, write an application for repairs in the house, file a complaint, download the Ecb logo, coordinate the placement of signage, support local communities, anonymously hand over a dealer, vote on an 'active citizen', automatically make a tax deduction, resolve issues with the management company and so on — all in one convenient and beautiful place. </p> <p> As information about residents accumulates, we will automate their lives. If the system knows the entire medical record, shopping in stores, registration, social payments, benefits, trips, my car, insurance, etc., it will be able to give useful suggestions: </p> <ul> <li> It's time to go to the doctor or undergo a medical examination, do you have a free Tuesday morning, let me write it down? </li> <li> Your travel card is running out, let's fill it up for a month, with your regime you will save 150₽ </li> <li> In a week there will be a fest where your favorite performer Shysha will perform, buy a ticket? </li> <li> Congratulations on the birth of a child! Let's immediately get in line at the kindergarten </li> <li> It's time to make a booster from Covid, let's go to the bar on Friday, and on Saturday evening for a vaccination? </li> <li> Over the past year, you have accumulated 32,234 ₽ tax deductions for medicine, work and mortgage. We have already arranged everything, tell me, which card to transfer money to? </li> </ul> <p> Let the machine do everything for us, we are not obliged to keep so many worries in our heads. </p>", | ||
"Description": "<p>This is more than mos.ru in Moscow. This is not an analogue of public services.</p> <p> Why is this happening in Yekaterinburg? Because this is a city of enthusiasts. We are burning with our business. We unite to move mountains, and we don't compete for profit. We are a community, not a business. </p><p> Therefore, only we and only here can do the impossible. And for this we need you: specialists in backend, frontend, c#, python, figure, product and interface design, testers, analysts, managers, managers, producers. </p><p> Our team already has cool guys from Contour, Yandex, Dot. And we are waiting for all professionals who are ready to create a city of the future. </p> <p> What to do? There are two options here: <a href='https://t.me/nibach ' target='_blank'> write to us in the cart </a> and chat, or take a look <a href='https://github.com/ekaterinburgdev /' target='_blank'> on github </a> andjust start solving puzzles right away. </p> <p> Our locomotive is already rushing at full speed. Fly in while you can. </p>" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my rebase updates:
I renamed
<Page>
to<MainText>
.It seems to be a more appropriate name