-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
964251d
commit 1de0005
Showing
8 changed files
with
134 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.