changes
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
|
import Image from 'next/image';
|
||||||
import styles from './Home.module.css';
|
import styles from './Home.module.css';
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return <div className={styles.content}></div>
|
return <>
|
||||||
|
<h1 style={{textAlign: "center", fontSize: "40px", fontWeight: "bold"}}>Wyst</h1>
|
||||||
|
<h1 style={{textAlign: "center", fontSize: "27px", fontWeight: "revert"}}>A Modern Low Level Language</h1>
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"index": "Introduction",
|
"index": "Introduction"
|
||||||
"declarations": "Declarations"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
# Variables
|
# Defining functions
|
||||||
```c
|
|
||||||
int x = 20;
|
|
||||||
```
|
|
||||||
|
|
||||||
# Functions
|
|
||||||
```c
|
```c
|
||||||
int my_func(int x) {
|
int my_func(int x) {
|
||||||
printf("the number is: %d", x)
|
printf("the number is: %d", x)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Calling functions
|
||||||
|
```c
|
||||||
|
my_func(69);
|
||||||
|
```
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# Defining a structure
|
||||||
|
```c
|
||||||
|
struct Point {
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
|
int z;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
# Using a structure as a variable
|
||||||
|
```rust
|
||||||
|
Point my_point { x: 0, y: 10, z: 20 };
|
||||||
|
```
|
||||||
|
|
||||||
|
# Using a structure
|
||||||
|
```rust
|
||||||
|
Point { x: 30, y: 40, z: 50 }
|
||||||
|
```
|
||||||
|
|
||||||
|
# Getting items from a structure
|
||||||
|
```rust
|
||||||
|
my_point.x
|
||||||
|
```
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
import Home from './components/home'
|
||||||
|
|
||||||
|
<Home/>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 700 700" width="700" height="700" opacity="1"><defs><linearGradient gradientTransform="rotate(150, 0.5, 0.5)" x1="50%" y1="0%" x2="50%" y2="100%" id="ffflux-gradient"><stop stop-color="hsl(0, 0%, 0%)" stop-opacity="1" offset="0%"></stop><stop stop-color="hsl(0, 0%, 0%)" stop-opacity="1" offset="100%"></stop></linearGradient><filter id="ffflux-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||||
|
<feTurbulence type="fractalNoise" baseFrequency="0.001 0.002" numOctaves="2" seed="327" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence"></feTurbulence>
|
||||||
|
<feGaussianBlur stdDeviation="100 100" x="0%" y="0%" width="100%" height="100%" in="turbulence" edgeMode="duplicate" result="blur"></feGaussianBlur>
|
||||||
|
<feBlend mode="color-dodge" x="0%" y="0%" width="100%" height="100%" in="SourceGraphic" in2="blur" result="blend"></feBlend>
|
||||||
|
|
||||||
|
</filter></defs><rect width="700" height="700" fill="url(#ffflux-gradient)" filter="url(#ffflux-filter)"></rect></svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
+1
-1
@@ -15,7 +15,7 @@ const config: DocsThemeConfig = {
|
|||||||
return {
|
return {
|
||||||
titleTemplate: '%s - Wyst'
|
titleTemplate: '%s - Wyst'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default config
|
export default config
|
||||||
|
|||||||
Reference in New Issue
Block a user