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

Tweak style of horizontal rules #1966

Merged
merged 1 commit into from
May 21, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locales/en-US/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ learn-generating-steps = <p>Let’s write a small application with our new Rust
{ $tree }
<p><code>Cargo.toml</code> is the manifest file for Rust. It’s where you keep metadata for your project, as well as dependencies.</p>
<p><code>src/main.rs</code> is where we’ll write our application code.</p>
<hr/>
<hr class="get-started-hr" />
<p>The <code>cargo new</code> step generated a "Hello, world!" project for us! We can run this program by moving into the new directory that we made and running this in our terminal:</p>
<p><code>cargo run</code></p>
<p>You should see this in your terminal:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/es/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> es el archivo de manifiesto de Rust. Es donde mantenemos los metadatos del proyecto, así como la declaración de dependencias.</p>
<p><code>src/main.rs</code> es donde escribimos el código de nuestra aplicación.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> genera un proyecto de "Hello, world" para nosotros. Podemos ejecutar el programa si nos movemos al nuevo directorio recién creado ejecutando en tu terminal:</p>
<p><code>cargo run</code></p>
<p>Deberías ver esto en tu terminal:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/fr/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> est le fichier manifeste de Rust. C'est là que vous gardez les métadonnées pour votre projet, ainsi que les dépendances.</p>
<p><code>src/main.rs</code> est l'endroit où vous écrirez le code de notre application.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> génère pour nous un projet "Hello, world!". Nous pouvons exécuter ce programme en nous déplaçant dans le nouveau répertoire que nous avons créé et en exécutant ceci dans notre terminal :</p>
<p><code>cargo run</code></p>
<p>Vous devriez voir ceci dans votre terminal :</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/it/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> è il manifest per i progetti Rust. Contiene i metadati, così come l'elenco delle dipendenze.</p>
<p><code>src/main.rs</code> il file che conterrà il codice della nostra applicazione.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> crea un progetto del tipo "Hello, world!"! Possiamo eseguire questo programma scendendo nella directory che abbiamo appena creato e poi lanciare:</p>
<p><code>cargo run</code></p>
<p>Questo l'output che dovrebbe apparire sulla console:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/ja/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code>はRust用のマニフェストファイルです。プロジェクトのメタデータに加え依存関係も記録されます。</p>
<p><code>src/main.rs</code>がアプリケーションのコードを書く場所です。</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code>は「Hello, world!」プロジェクトを生成します!ターミナルで作成した新しいディレクトリに移動し、以下を実行することでこのプログラムを実行できます:</p>
<p><code>cargo run</code></p>
<p>以下の出力が得られるはずです:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/pl/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> to plik manifestowy projektu Rust. Jest to miejsce, w którym trzymane są metadane dotyczące naszego projektu oraz jego zależności w postaci rozmaitych bibliotek kodu.</p>
<p><code>src/main.rs</code> to plik, w którym będziemy pisać nasz program.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> tworzy dla nas domyślny projekt "Hello, world!". Możemy uruchomić tak powstałą aplikację, wchodząc w katalog projektu i uruchamiając następujące polecenie:</p>
<p><code>cargo run</code></p>
<p>Na ekranie powinniśmy zobaczyć:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/pt-BR/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> é o manifesto de um projeto Rust. Aqui você encontra todos os metadados do projeto, assim como as declarações de dependência.</p>
<p><code>src/main.rs</code> é onde nos vamos escrever nossa aplicação.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> gera um projeto "Hello, world!" para você! Você pode executar esse programa entrando no diretório recém criado e executando o seguinte no seu terminal:</p>
<p><code>cargo run</code></p>
<p>Você deveria ver a seguinte saída no terminal:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/ru/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> - это файл манифеста. Здесь хранятся метаданные вашего проекта, такие как описание.</p>
<p>В файле <code>src/main.rs</code> вы пишете код приложения.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> создал для нас проект "Hello, world!". Для запуска этой программы мы перейдём в директорию, которая была создана, и запустим в терминале:</p>
<p><code>cargo run</code></p>
<p>Вы должны увидеть следующее:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/tr/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code>, Rust için manifesto dosyasıdır. Burası projenizin metaverisini sakladığınız yer olmakla birlikte, bağımlılıkların da belirtildiği yerdir.</p>
<p>Uygulama kodunuzun bulunduğu yer ise <code>src/main.rs</code>'dir.</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code>, bizim için yeni bir "Merhaba, dünya!" projesi oluşturur! Bu programı yeni bir dizine taşıyıp, aşağıdaki kodla uçbirimimizde çalıştırabiliriz:</p>
<p><code>cargo run</code></p>
<p>Uçbiriminizde şu çıktıyı almanız gerekmektedir:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/zh-CN/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> 为 Rust 的清单文件。其中包含了项目的元数据和依赖库。</p>
<p><code>src/main.rs</code> 为编写应用代码的地方。</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> 会生成一个新的“Hello, world!”项目!我们可以进入新创建的目录中,执行下面的命令来运行此程序:</p>
<p><code>cargo run</code></p>
<p>您应该会在终端中看到如下内容:</p>
Expand Down
2 changes: 1 addition & 1 deletion locales/zh-TW/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ learn-generating-steps =
{ $tree }
<p><code>Cargo.toml</code> 是 Rust 的 manifest 檔案,它是保存專案 metadata 與相依套件資訊的地方。</p>
<p><code>src/main.rs</code> 是我們要編寫程式碼的地方。</p>
<hr/>
<hr class="get-started-hr" />
<p><code>cargo new</code> 會為我們產生一個「Hello, world!」的專案!我們可以移動到這個新的目錄並在我們的終端機上執行:</p>
<p><code>cargo run</code></p>
<p>您應該會在終端機上看到以下訊息:</p>
Expand Down
7 changes: 7 additions & 0 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,13 @@ blockquote::before {
width: 80%;
}

.get-started-hr {
background-color: white;
height: 1px;
border: 0px;
margin: 25px 0px;
}

.hidden {
border: 0;
clip: rect(0 0 0 0);
Expand Down
3 changes: 1 addition & 2 deletions templates/components/what/embedded/get-started.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
</div>
</div>
</div>
<hr>
<div class="tc pl4-l">
<div class="tc pl4-l mt4">
<p>
<a href="https://docs.rust-embedded.org/" class="button button-secondary">
{{fluent "embedded-get-started-more-documentation-link"}}
Expand Down
6 changes: 3 additions & 3 deletions templates/learn/get-started.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</header>
<p>{{fluent "learn-play"}}</p>
<a href="https://play.rust-lang.org/" class="button button-secondary">{{fluent "learn-play-button"}}</a>
<hr />
<hr class="get-started-hr" />

<h3>{{fluent "learn-install-rustup-header"}}</h3>
<p>{{fluent "learn-install-rustup"}}</p>
Expand All @@ -25,12 +25,12 @@
<p>{{#fluent "learn-install-rustup-update"}}{{#fluentparam "update-command"}}<code>rustup update</code>{{/fluentparam}}{{/fluent}}</p>
<br />
<a href="{{baseurl}}/tools/install" class="button button-secondary">{{fluent "learn-install-rustup-button"}}</a>
<hr />
<hr class="get-started-hr" />

<h3>{{fluent "learn-install-cargo-header"}}</h3>
{{fluent "learn-install-cargo"}}
<a href="https://doc.rust-lang.org/cargo/index.html" class="button button-secondary">{{fluent "learn-install-cargo-button"}}</a>
<hr />
<hr class="get-started-hr" />

<h3>{{fluent "learn-install-other"}}</h3>
<p>{{fluent "learn-install-editors"}}</p>
Expand Down
Loading