Skip to content

Commit

Permalink
feat: add structure for zh_tw (#198)
Browse files Browse the repository at this point in the history
* feat: add zh_tw

* fix: update links
  • Loading branch information
ouuan committed Jul 20, 2021
1 parent aaad30e commit 89a303d
Show file tree
Hide file tree
Showing 26 changed files with 1,472 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -83,7 +83,7 @@ If you are using [VS Code](https://github.com/microsoft/vscode), you can use the

## Translations

For example, the Chinese (zh) version of a page is usually `_index.zh.md` while the English version is `_index.md`.
For example, the Simplified Chinese (zh) version of a page is usually `_index.zh.md` while the English version is `_index.md`.

To add a new language, add it in [config.toml](config.toml) and add `_index.xx.md`s for it.

Expand Down
15 changes: 10 additions & 5 deletions config.toml
Expand Up @@ -67,16 +67,21 @@ title = "CP Editor"
description = "The IDE for competitive programming"
languageName = "English"
weight = 1
[languages.zh]
title = "CP Editor"
description = "专为算法竞赛设计的 IDE"
languageName = "中文"
weight = 2
[languages.ru]
title = "CP Editor"
description = "редактор, созданный для спортивного программирования"
languageName = "Русский"
weight = 2
[languages.zh]
title = "CP Editor"
description = "专为算法竞赛设计的 IDE"
languageName = "简体中文"
weight = 3
[languages.zh_tw]
title = "CP Editor"
description = "專為演算法競賽設計的 IDE"
languageName = "正體中文"
weight = 4

[markup]
[markup.goldmark]
Expand Down
292 changes: 292 additions & 0 deletions content/_index.zh_tw.html
@@ -0,0 +1,292 @@
+++
title = "CP Editor"
linkTitle = "CP Editor"

+++

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/vendors/linericon/style.css">
<link rel="stylesheet" href="/vendors/owl-carousel/owl.carousel.min.css">
<!-- main css -->
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/responsive.css">

<div style="margin: -15px;">

<!--================Home Banner Area =================-->
<div class="home_banner_area">
<div class="banner_inner">
<div class="container">
<div class="row">
<div class="col-lg-5">
<div class="banner_content">
<h2>The Missing Editor <br />for Competitive Programmers</h2>
<p>CP Editor is specially designed for competitive programming. It helps you focus on your algorithms and automates compilation, execution and testing of your code. It even fetches test cases for you from different platforms and submits solutions to Codeforces!</p>
<a class="banner_btn" href="https://github.com/cpeditor/cpeditor">View on GitHub</a>
<a class="banner_btn2" href="download">Download</a>
</div>
</div>
<div class="col-lg-7">
<div class="home_left_img">
<img class="img-fluid" src="/img/banner/home-left-white.png" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
<!--================End Home Banner Area =================-->

<!--================Work Area =================-->
<div class="work_area p_120">
<div class="container">
<div class="main_title">
<h2>How it works for you</h2>
<p>CP Editor eliminates all the repetitive and boring tasks during algorithmic contests. It automates all that's reasonably possible and allows you to purely focus on your code.</p>
</div>
<div class="work_inner row">
<div class="col-lg-4">
<div class="work_item">
<i class="lnr lnr-screen"></i>
<a><h4>Fetch test cases</h4></a>
<p>CP Editor can fetch testcases automatically from almost all competitive programming sites. Say bye to error-prone copy-pasting.</p>
</div>
</div>
<div class="col-lg-4">
<div class="work_item">
<i class="lnr lnr-code"></i>
<a><h4>Code faster</h4></a>
<p>Code faster with its amazing customizable code snippets. In just two seconds you can insert a whole DFS code into your editor.</p>
</div>
</div>
<div class="col-lg-4">
<div class="work_item">
<i class="lnr lnr-clock"></i>
<a><h4>Get verdicts</h4></a>
<p>You can get verdicts for your sample testcases in one click by built-in checkers or checkers from testlib. You can also add your own checkers.</p>
</div>
</div>
</div>
</div>
</div>
<!--================End Work Area =================-->

<!--================Made Life Area =================-->
<div class="made_life_area p_120">
<div class="container">
<div class="made_life_inner">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#withoutSaving" role="tab" aria-controls="home" aria-selected="true">Run without Saving</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#themes" role="tab" aria-controls="profile" aria-selected="false">Variety of Themes</a>
</li>
<li class="nav-item">
<a class="nav-link" id="contact-tab" data-toggle="tab" href="#linting" role="tab" aria-controls="contact" aria-selected="false">Code Linting</a>
</li>
<li class="nav-item">
<a class="nav-link" id="edge-tab" data-toggle="tab" href="#codeforces" role="tab" aria-controls="edge" aria-selected="false">Submit to Codeforces</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="withoutSaving" role="tabpanel" aria-labelledby="home-tab">
<div class="row made_life_text">
<div class="col-lg-6">
<div class="left_side_text">
<h3>Run any code<br />At any time</h3>
<h6>We know that you want to test something without a temp file</h6>
<p>You can run your code in one click without saving and the hot exit feature makes it easy to restore your code from the last session.</p>
<a class="main_btn" href="download">Get Started Now</a>
</div>
</div>
<div class="col-lg-6">
<div class="chart_img">
<img class="img-fluid" src="/img/simple.jpg" alt="">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="themes" role="tabpanel" aria-labelledby="profile-tab">
<div class="row made_life_text">
<div class="col-lg-6">
<div class="left_side_text">
<h3>Dark themes? <br />We've got you covered</h3>
<h6>Our lives are colorful, why not our coding editor</h6>
<p>We have added five different themes for you to choose from: Light, Drakula, Monkai, Solarized Light and Solarized Dark. If that does not satisfy you, ask us on our community pages and we will provide you more.</p>
<a class="main_btn" href="download">Get Started Now</a>
</div>
</div>
<div class="col-lg-6">
<div class="chart_img">
<img class="img-fluid" src="/img/themes.jpg" alt="">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="linting" role="tabpanel" aria-labelledby="contact-tab">
<div class="row made_life_text">
<div class="col-lg-6">
<div class="left_side_text">
<h3>Errors and Warnings?<br />We lint them while you are coding</h3>
<h6>Save your precious contest time with code linting</h6>
<p>Using Language Servers, we provide real-time linting for errors and warnings in your code, just like Intellisense in VSCode and Atom. You can see squiggles under the warnings and hover over them to get tooltips.</p>
<a class="main_btn" href="download">Get Started Now</a>
</div>
</div>
<div class="col-lg-6">
<div class="chart_img">
<img class="img-fluid" src="/img/linting.jpg" alt="">
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="codeforces" role="tabpanel" aria-labelledby="edge-tab">
<div class="row made_life_text">
<div class="col-lg-6">
<div class="left_side_text">
<h3>We can submit your <br/>Solutions to Codeforces</h3>
<h6>All thanks to Competitive Programming Community</h6>
<p>We have gathered the best tools in competitive programming and merged them into one editor. One such tool is called CF Tool. We have added it so you can submit and get verdicts in the editor.</p>
<a class="main_btn" href="download">Get Started Now</a>
</div>
</div>
<div class="col-lg-6">
<div class="chart_img">
<img class="img-fluid" src="/img/codeforces.jfif" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--================End Made Life Area =================-->

<!--================Screen Area =================-->
<div class="screen_area text-center p_120">
<div class="container">
<div class="main_title">
<h2>Unique Screens that work perfectly</h2>
<p> We have made a simple yet powerful UI that shouldn't confuse you when solving problems <br> Everything you need is always in front of your eyes</p>
</div>
<img class="img-fluid" src="/img/banner/home-center-2.jpg" alt="">
</div>
</div>
<!--================End Screen Area =================-->

<!--================Testimonials Area =================-->
<div class="testimonials_area p_120">
<div class="container">
<div class="main_title">
<h2>Feedback from Community</h2>
<p>Our Community support us and keep us alive. We would love to hear your feedback too!<br>See what other Competitive Programmers have to say about our editor</p>
</div>
<div class="testi_slider owl-carousel">
<div class="item">
<div class="testi_item">
<div class="media">
<div class="d-flex">
<img src="/img/testimonials/simran.jpeg" class="img-circular">
</div>
<div class="media-body">
<p>I can definitely say this is what I was looking for as a competitive programmer. Light-weight, very simple to use and best part is that compilation is fast, really helpful in competitions.</p>
<h4>Simran Gujrati</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="testi_item">
<div class="media">
<div class="d-flex">
<!-- Yatharth should add a round png of his image -->
<img src="/img/testimonials/yatharth.png" alt="yatharth" class="img-circular">
</div>
<div class="media-body">
<p>Easy to use and lightweight. It's very fast in terms of compiling and also provides the feature to parse testcases from competitive websites. It is the best editor I have ever used.</p>
<h4>Yatharth Varma</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="testi_item">
<div class="media">
<div class="d-flex">
<img src="/img/testimonials/nitish.png" alt="Nitish Kumar Singh" class="img-circular">
</div>
<div class="media-body">
<p>This is exactly what I was looking for. An Editor that automates all redundant tasks and helps me in focusing on the Algorithm. Give a try, you are gonna love me.</p>
<h4>Nitish Kumar Singh</h4>
<div class="rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--================End Testimonials Area =================-->

<!--================Made Life Area =================-->
<div class="made_life_area made_white p_120">
<div class="container">
<div class="made_life_inner">
<div class="row made_life_text">
<div class="col-lg-6">
<div class="chart_img">
<img class="img-fluid" src="/img/banner/home-left-black.png" alt="">
</div>
</div>
<div class="col-lg-6">
<div class="left_side_text">
<h3>Full support for<br />C/C++, Java and Python</h3>
<h6>Use the language you like</h6>
<p>We officially support three languages in the editor. You can set your own compilation commands and pass runtime arguments to your code. It really gets exciting when you have the opportunity to use different languages in different tabs with one-click options.</p>
<a class="main_btn" href="download">Get Started Now</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!--================End Made Life Area =================-->

<!--================Impress Area =================-->
<div class="impress_area p_120">
<div class="container">
<div class="impress_inner">
<h2>Impressed by our features?</h2>
<p>We are excited that you have chosen to try out this editor. <br>We hope that our Editor will fulfill all your needs in Competitive Programming. <br>CP Editor is, "by competitive programmers, to competitive programmers, for competitive programmers".</p>
<a class="banner_btn2" href="download">Try it now</a>
</div>
</div>
</div>
<!--================End Impress Area =================-->

<script src="/vendors/owl-carousel/owl.carousel.min.js"></script>
<script src="/js/index.js"></script>

</div>
43 changes: 43 additions & 0 deletions content/about/_index.zh_tw.html
@@ -0,0 +1,43 @@
---
title: About CP Editor
linkTitle: About
menu:
main:
weight: 10

---


{{< blocks/cover title="About CP Editor" image_anchor="bottom" height="min" >}}

<p class="lead mt-5">An IDE specially designed for competitive programming</p>

{{< /blocks/cover >}}

{{% blocks/lead %}}
CP Editor is a Qt-based, lightweight and cross-platform IDE specially designed for competitive programming.

It's free software distributed under GPL-3.0. The source code is available on <a class="text-light" href="https://github.com/cpeditor/cpeditor" target="_blank">GitHub</a>.
{{% /blocks/lead %}}

{{< blocks/lead >}}

You can:

<ul class="list-group">
<li class="list-group-item list-group-item-primary">Learn about the <a href="..">Features</a></li>
<li class="list-group-item list-group-item-success"><a href="../download">Download</a> and have a try</li>
<li class="list-group-item list-group-item-warning">Read the <a href="../docs">Documentation</a></li>
<li class="list-group-item list-group-item-info">Join the <a href="../community">Community</a></li>
<li class="list-group-item list-group-item-dark">Become a <a href="https://github.com/cpeditor/cpeditor/blob/master/DONATE.md" target="_blank">Sponsor</a></li>
</ul>

{{< /blocks/lead >}}

{{< blocks/lead >}}

This website is built by <a href="https://gohugo.io/" target="_blank">Hugo</a> with the <a href="https://www.docsy.dev/" target="_blank">Docsy</a> theme.

The <a href="..">home page</a> is based on the <a href="https://colorlib.com/" target="_blank">Colorlib</a> template.

{{< /blocks/lead >}}

0 comments on commit 89a303d

Please sign in to comment.