Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadi Sinaee <sinaee.hadi@gmail.com>2019-08-24 14:44:40 +0300
committerHadi Sinaee <sinaee.hadi@gmail.com>2019-08-24 14:44:40 +0300
commita19dfe2e441ec1c0dca498843dfaacc815a348a1 (patch)
treecd3ffbe8df01f7213114a96d39d92aefe5fb832b
parentcb6e5f87d7a54e0e715ffea342fe6b24b98e3781 (diff)
feat: project view added
-rw-r--r--exampleSite/content/projects/prometeo/index.md12
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/_default/single.html11
-rw-r--r--static/css/main.css10
4 files changed, 34 insertions, 1 deletions
diff --git a/exampleSite/content/projects/prometeo/index.md b/exampleSite/content/projects/prometeo/index.md
new file mode 100644
index 0000000..1f3e1ac
--- /dev/null
+++ b/exampleSite/content/projects/prometeo/index.md
@@ -0,0 +1,12 @@
+---
+title: "Prometeo"
+date: 2019-08-19T17:41:27+02:00
+draft: false
+---
+
+# Prometeo Desktop
+
+Prometeo is a Windows desktop application, wrote in C#. It allows its user to exchange files and folders across the LAN in a peer-to-peer architectural model.
+Every user in the network that has the application can act both as a client and as a server.
+The actual exchange of data involves two stages. Initially, an UDP-based communication protocol is used to search other peers on the LAN, as well as to periodically signal its own presence.
+Then, a TCP-based transfer protocol performs the exchange in a similar but simplified way as FTP protocol does.
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5f8e2ec..0305c4d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -4,7 +4,7 @@
<body>
{{- partial "header.html" . -}}
<div id="content">
- {{- block "main" . }}{{- end }}
+ {{- block "main" . }}{{- end -}}
</div>
{{- partial "footer.html" . -}}
</body>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..93ef78c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+
+ <div class="header">
+ <img src="logo.png" class="logo">
+ </div>
+
+ <div class="content wrapper">
+ {{ .Content | markdownify }}
+ </div>
+
+ {{end}}
diff --git a/static/css/main.css b/static/css/main.css
index fa873fd..55e595a 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -273,6 +273,16 @@ ul {
max-height: 15px;
}
+/* header for projects */
+.header .logo {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ max-width: 15%;
+ height: auto;
+ border-radius: 50%;
+}
+
.email {
/* color: #a00; */
font-size: 16px;