Skip to content

Commit

Permalink
Merge pull request #10 from languageXchange/dev
Browse files Browse the repository at this point in the history
init v1
  • Loading branch information
xuelink authored Oct 22, 2023
2 parents bdc3b92 + c2b8804 commit cd268ca
Show file tree
Hide file tree
Showing 14 changed files with 132 additions and 71 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# ID of the job
run-test:
# Name of the job as it will be displayed in GitHub
name: Build and Test
name: Automatic Testing
# Machine which this action will be run on. For a list of all the machines available/how to run on self hosted machine visit
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
runs-on: ubuntu-latest
Expand All @@ -32,6 +32,9 @@ jobs:
- name: Install all dependencies
run: npm install

- name: Check svelte-kit and typescript
run: npm run check

- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 New Chapter Technology LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 23 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# create-svelte
# languageXchange

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
Welcome to languageXchange! Our app is designed to help you learn a new language through practice and immersion with native speakers from around the world. With personalized lesson plans and conversation practice, you'll be able to take your language skills to the next level.

## Creating a project
## Table of Contents

If you're seeing this, you've probably already done this step. Congrats!
- [Getting Started](#getting-started)
- [Building](#building)
- [Contributing](#contributing)
- [License](#license)

## Getting started

To create a new languageXchange project, simply run the following command:

```bash
# create a new project in the current directory
npm create svelte@latest
npm create languageXchange@latest

# create a new project in my-app
npm create svelte@latest my-app
npm create languageXchange@latest my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
Once you've created your project and installed dependencies with `npm install``, you can start a development server:

```bash
npm run dev
Expand All @@ -35,4 +40,12 @@ npm run build

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
## Contributing

We welcome contributions from the community! If you'd like to contribute to languageXchange, please fork our repository and submit a pull request. We'll review your changes and merge them if they meet our guidelines. Thank you for helping to make languageXchange even better!

languageXchange is an open source project and we welcome contributions from the community. If you're interested in contributing, please check out our GitHub repository for more information.

## License

languageXchange is released under the [MIT License](./LICENSE). If you use this project, please include the license file in your distribution.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@fontsource/fira-mono": "^4.5.10",
"@fontsource/comfortaa": "^5.0.16",
"@neoconfetti/svelte": "^1.0.0",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.20.4",
Expand Down
42 changes: 42 additions & 0 deletions src/lib/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/lib/images/svelte-logo.svg

This file was deleted.

Binary file removed src/lib/images/svelte-welcome.png
Binary file not shown.
Binary file removed src/lib/images/svelte-welcome.webp
Binary file not shown.
6 changes: 1 addition & 5 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</main>

<footer>
<p>visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to learn SvelteKit</p>
<p>Copyright 2023</p>
</footer>
</div>

Expand Down Expand Up @@ -41,10 +41,6 @@
padding: 12px;
}
footer a {
font-weight: bold;
}
@media (min-width: 480px) {
footer {
padding: 12px 0;
Expand Down
53 changes: 20 additions & 33 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
<script>
import Counter from './Counter.svelte';
import welcome from '$lib/images/svelte-welcome.webp';
import welcome_fallback from '$lib/images/svelte-welcome.png';
</script>

<svelte:head>
<title>Home</title>
<meta name="description" content="Svelte demo app" />
</svelte:head>

<section>
<h1>
<span class="welcome">
<picture>
<source srcset={welcome} type="image/webp" />
<img src={welcome_fallback} alt="Welcome" />
</picture>
</span>

to your new<br />SvelteKit app
</h1>

<h2>
try editing <strong>src/routes/+page.svelte</strong>
</h2>

<Counter />
<h1>Welcome to <span>languageXchange</span>!</h1>
<p>
Language learning can be a challenging but rewarding process. At <span>languageXchange</span>,
we believe that the best way to learn a language is through practice and immersion. That's why
we've created a platform that connects language learners from around the world, so you can
practice speaking with native speakers and improve your skills in a fun and engaging way.
</p>
<p>
Our app is coming soon and will offer a range of features to help you on your language learning
journey. From personalized lesson plans to conversation practice with native speakers, our app
has everything you need to take your language skills to the next level. Stay tuned for updates
and get ready to start your language learning adventure with <span>languageXchange</span>!
</p>
<p>
<span>languageXchange</span> is an open source project and we welcome contributions from the
community. If you're interested in contributing, please check out our
<a href="https://github.com/languageXchange/website">GitHub repository</a> for more information.
</p>
</section>

<style>
Expand All @@ -41,19 +40,7 @@
width: 100%;
}
.welcome {
display: block;
position: relative;
width: 100%;
height: 0;
padding: 0 0 calc(100% * 495 / 2048) 0;
}
.welcome img {
position: absolute;
width: 100%;
height: 100%;
top: 0;
display: block;
span {
font-weight: bold;
}
</style>
6 changes: 3 additions & 3 deletions src/routes/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script>
import { page } from '$app/stores';
import logo from '$lib/images/svelte-logo.svg';
import logo from '$lib/images/logo.svg';
import github from '$lib/images/github.svg';
</script>

<header>
<div class="corner">
<a href="https://kit.svelte.dev">
<a href="https://languagexchange.net/">
<img src={logo} alt="SvelteKit" />
</a>
</div>
Expand All @@ -29,7 +29,7 @@
</nav>

<div class="corner">
<a href="https://github.com/sveltejs/kit">
<a href="https://github.com/languagexchange/" target="_blank">
<img src={github} alt="GitHub" />
</a>
</div>
Expand Down
14 changes: 7 additions & 7 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
<h1>About this app</h1>

<p>
This is a <a href="https://kit.svelte.dev">SvelteKit</a> app. You can make your own by typing the
following into your command line and following the prompts:
Welcome to our app! We are a team of developers passionate about creating innovative solutions
to real-world problems. Our app is designed to help you streamline your workflow and increase
productivity.
</p>

<pre>npm create svelte@latest</pre>

<p>
The page you're looking at is purely static HTML, with no client-side interactivity needed.
Because of that, we don't need to load any JavaScript. Try viewing the page's source, or opening
the devtools network panel and reloading.
We are constantly working to improve our app and add new features. If you have any feedback or
suggestions, please don't hesitate to contact us. You can also check out our <a
href="https://github.com/languageXchange/website">GitHub repository</a
> to see our code and contribute to the project.
</p>
</div>
10 changes: 5 additions & 5 deletions src/routes/styles.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@import '@fontsource/fira-mono';
@import '@fontsource/comfortaa';

:root {
--font-body: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--font-mono: 'Fira Mono', monospace;
--font-body: Comfortaa, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--font-mono: 'Comfortaa', monospace;
--color-bg-0: rgb(202, 216, 228);
--color-bg-1: hsl(209, 36%, 86%);
--color-bg-2: hsl(224, 44%, 95%);
--color-theme-1: #ff3e00;
--color-theme-1: #ffc409;
--color-theme-2: #4075a6;
--color-text: rgba(0, 0, 0, 0.7);
--column-width: 42rem;
Expand Down

0 comments on commit cd268ca

Please sign in to comment.