Skip to content

Commit

Permalink
add golang course to tv/
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi committed Dec 2, 2023
1 parent 964251d commit 1de0005
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 4 deletions.
9 changes: 9 additions & 0 deletions pages/tv/courses/django.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Layout from "../../../components/Layout";
import Head from "next/head";
import { Dialog, Section } from "..";
import Link from "next/link";
import Notice from "../../../components/Notice";

const INIT_OPEN_DIALOG = { isOpen: false, src: "" };

Expand Down Expand Up @@ -68,6 +69,14 @@ const Django = () => {
},
]}
/>
<br></br>
<Notice variant="info">
پروژه مورد استفاده در دوره فوق در{" "}
<Link href="https://github.com/liara-cloud/django-getting-started/tree/django-blog">
https://github.com/liara-cloud/django-getting-started/tree/django-blog
</Link>{" "}
قابل مشاهده و دسترسی می‌باشد.{" "}
</Notice>

{openDialog.isOpen && (
<Fragment>
Expand Down
10 changes: 10 additions & 0 deletions pages/tv/courses/dotnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Layout from "../../../components/Layout";
import Head from "next/head";
import { Dialog, Section } from "..";
import Link from "next/link";
import Notice from "../../../components/Notice";

const INIT_OPEN_DIALOG = { isOpen: false, src: "" };

Expand Down Expand Up @@ -65,6 +66,15 @@ const dotnet = () => {
]}
/>

<br></br>
<Notice variant="info">
پروژه و کدهای مورد استفاده در دوره فوق در{" "}
<Link href="https://github.com/liara-cloud/dotnet-getting-started/tree/blog">
https://github.com/liara-cloud/dotnet-getting-started/tree/blog
</Link>{" "}
قابل مشاهده و دسترسی می‌باشد.{" "}
</Notice>

{openDialog.isOpen && (
<Fragment>
<Dialog>
Expand Down
10 changes: 10 additions & 0 deletions pages/tv/courses/flask.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Layout from "../../../components/Layout";
import Head from "next/head";
import { Dialog, Section } from "..";
import Link from "next/link";
import Notice from "../../../components/Notice";

const INIT_OPEN_DIALOG = { isOpen: false, src: "" };

Expand Down Expand Up @@ -77,6 +78,15 @@ const flask = () => {
]}
/>

<br></br>
<Notice variant="info">
پروژه و کدهای مورد استفاده در دوره فوق در{" "}
<Link href="https://github.com/liara-cloud/flask-getting-started/tree/blog">
https://github.com/liara-cloud/flask-getting-started/tree/blog
</Link>{" "}
قابل مشاهده و دسترسی می‌باشد.{" "}
</Notice>

{openDialog.isOpen && (
<Fragment>
<Dialog>
Expand Down
80 changes: 80 additions & 0 deletions pages/tv/courses/golang.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import React, { Fragment, useState } from "react";
import Layout from "../../../components/Layout";
import Head from "next/head";
import { Dialog, Section } from "..";
import Link from "next/link";
import Notice from "../../../components/Notice";

const INIT_OPEN_DIALOG = { isOpen: false, src: "" };

const flask = () => {
const [openDialog, setOpenDialog] = useState(INIT_OPEN_DIALOG);

return (
<Layout>
<Head>
<title>مستندات - آموزش استفاده از لیارا</title>
</Head>

<button
style={{ background: "#cccccc11" }}
className="mb-2 py-1 px-4 rounded-md"
>
<Link id="init-a" href={"/tv"}>
<span>بازگشت</span>
</Link>
</button>

<img
style={{ borderColor: "#ffffff22", marginLeft: 20 }}
src="/static/course/go.png"
/>
<Section
name={"صفر تا صد استقرار برنامه‌های Golang در لیارا"}
style={{ marginTop: 40 }}
badge={"Golang Platform"}
setOpenDialog={setOpenDialog}
links={[
{
videoTitle: "جلسه 0: مقدمه‌ای بر پروژه",
link: "https://files.liara.ir/liara/golang/course/e00-intro-to-project.mp4",
},
]}
/>
<br></br>
<Notice variant="info">
پروژه و کدهای مورد استفاده در دوره فوق در{" "}
<Link href="https://github.com/liara-cloud/golang-getting-started">
https://github.com/liara-cloud/golang-getting-started
</Link>{" "}
قابل مشاهده و دسترسی می‌باشد.{" "}
</Notice>

{openDialog.isOpen && (
<Fragment>
<Dialog>
<div>
<button onClick={() => setOpenDialog(INIT_OPEN_DIALOG)}>
<img src={"/static/close.svg"} />
بستن
</button>
</div>
<video
autoPlay
src={openDialog.src}
controls="controls"
className="block w-full"
width="100%"
></video>
</Dialog>
<div
className="bg-disable-dialog"
onClick={() => setOpenDialog(INIT_OPEN_DIALOG)}
></div>
</Fragment>
)}
</Layout>
);
};

export default flask;
9 changes: 9 additions & 0 deletions pages/tv/courses/laravel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Layout from "../../../components/Layout";
import Head from "next/head";
import { Dialog, Section } from "..";
import Link from "next/link";
import Notice from "../../../components/Notice";

const INIT_OPEN_DIALOG = { isOpen: false, src: "" };

Expand Down Expand Up @@ -72,6 +73,14 @@ const Laravel = () => {
},
]}
/>
<br></br>
<Notice variant="info">
پروژه مورد استفاده در دوره فوق در{" "}
<Link href="https://github.com/liara-cloud/laravel-getting-started/tree/laravel-social-media">
https://github.com/liara-cloud/laravel-getting-started/tree/laravel-social-media
</Link>{" "}
قابل دسترسی می‌باشد.{" "}
</Notice>

{openDialog.isOpen && (
<Fragment>
Expand Down
9 changes: 9 additions & 0 deletions pages/tv/courses/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Layout from "../../../components/Layout";
import Head from "next/head";
import { Dialog, Section } from "..";
import Link from "next/link";
import Notice from "../../../components/Notice";

const INIT_OPEN_DIALOG = { isOpen: false, src: "" };

Expand Down Expand Up @@ -68,6 +69,14 @@ const Node = () => {
},
]}
/>
<br></br>
<Notice variant="info">
پروژه و کدهای مورد استفاده در دوره فوق در{" "}
<Link href="https://github.com/liara-cloud/nodejs-getting-started/tree/blog">
https://github.com/liara-cloud/nodejs-getting-started/tree/blog
</Link>{" "}
قابل مشاهده و دسترسی می‌باشد.{" "}
</Notice>

{openDialog.isOpen && (
<Fragment>
Expand Down
11 changes: 7 additions & 4 deletions pages/tv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Videos = () => {
<h1>آموزش جامع استقرار</h1>
</div>
</div>
<div className="grid md:grid-cols-2 gap-5">
<div className="grid md:grid-cols-3 gap-5">
<Link style={{ border: "none" }} href="/tv/courses/node">
<img
style={{ borderColor: "#ffffff22" }}
Expand All @@ -62,15 +62,18 @@ const Videos = () => {
src="/static/course/laravel.png"
/>
</Link>
</div>
<br></br>
<div className="grid md:grid-cols-3 gap-5">
<Link style={{ border: "none" }} href="/tv/courses/django">
<img
style={{ borderColor: "#ffffff22" }}
src="/static/course/django.png"
/>
</Link>
<Link style={{ border: "none" }} href="/tv/courses/golang">
<img
style={{ borderColor: "#ffffff22" }}
src="/static/course/go.png"
/>
</Link>
<Link style={{ border: "none" }} href="/tv/courses/dotnet">
<img
style={{ borderColor: "#ffffff22" }}
Expand Down
Binary file added public/static/course/go.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1de0005

Please sign in to comment.