Skip to content

Commit

Permalink
add file restructuring (#17)
Browse files Browse the repository at this point in the history
* compress images

* delete unnecessary theme files

* add necessary files

* edit configuration files

* update readme.md

* add a size of about

* add responsive text
  • Loading branch information
rickmort authored Apr 9, 2020
1 parent 47f9bd3 commit 1e2c397
Show file tree
Hide file tree
Showing 105 changed files with 434 additions and 2,389 deletions.
45 changes: 36 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,54 @@
Planet Decred website
======

This is the code for the [planetdecred.org](https://www.planetdecred.org) website.



## Requirements

* `Go` 1.11
* `Hugo` 0.63.0
* `Hugo-extended` 0.63.0

You should now be able to access the site at `http://localhost:1313`

## Setting Up
## Testing

* Installing Go
* Minimum supported version is 1.11.4. Installation instructions can be found [here](https://golang.org/doc/install).

* Installing Hugo
* The instructions for your OS can find [here](https://gohugo.io/getting-started/installing/).

## Start the Hugo server
#### Start the Hugo server

* ` hugo server -D `

* ` http://localhost:1313/ `
* ` http://localhost:1313/ `

## Static Deploy

For a static deployment you must use the command ` hugo `.

This will create a `Public` folder in the main path.
Upload files to hosting or server.

#### Some issues
If the sass files are not displayed correctly, try changing the baseurl in the configuration file
~~~
config.toml
baseurl = "URL"
~~~
## Another Options of Deployment

For a another options of deployment you can consult the following documentation.

- [Hugo Deploy](https://gohugo.io/hosting-and-deployment/hugo-deploy/).
- [Host-Agnostic Deploys with Nanobox](https://gohugo.io/hosting-and-deployment/deployment-with-nanobox/).
- [Host on Render](https://gohugo.io/hosting-and-deployment/hosting-on-render/).
- [Host on AWS Amplify](https://gohugo.io/hosting-and-deployment/hosting-on-aws-amplify/).
- [Host on Netlify](https://gohugo.io/hosting-and-deployment/hosting-on-netlify/).
- [Host on GitHub](https://gohugo.io/hosting-and-deployment/hosting-on-github/).
- [More Options](https://gohugo.io/hosting-and-deployment/)...

#### Some issues
If the sass files are not displayed correctly, try changing the baseurl in the configuration file
~~~
config.toml
baseurl = "URL"
~~~
6 changes: 0 additions & 6 deletions archetypes/default.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
}

::selection {
color: $text-color;
background: $complement-color;
color: $white;
background: $green;
}

html {
Expand All @@ -16,8 +16,8 @@ html {
}

body {
color: $alt-bg-color;
background-color: $bg-color;
color: $dark;
background-color: $dark;
font-family: $text-font-family;
font-size: 1.6em;
font-weight: 300;
Expand All @@ -27,16 +27,9 @@ body {
}
}

hr{
background: $secundary-color;
border-style: none;
height: 2px;
width: 350px;
}

a {
font-weight: 300;
color: $link-color;
color: $green;
text-decoration: none;
&:focus,
&:hover {
Expand All @@ -53,14 +46,14 @@ h5,
h6,
p {
font-family: $text-font-family;
color: $text-color;
color: $white;
margin: 5px 0px;
line-height: 3.6rem;
}

p {
font-size: 2rem;
color: $alt-bg-color;
color: $dark;
font-weight: 200;
}

Expand Down Expand Up @@ -113,65 +106,6 @@ b, strong {
font-weight: 700;
}

.highlight > div,
.highlight > pre {
margin: 0 0 2rem;
padding: 1rem;
border-radius: 1rem;
}

pre {
display: block;
font-family: $text-font-family;
font-size: 1.6rem;
font-weight: 400;
overflow-x: auto;
margin: 0;
code {
display: inline-block;
background-color: inherit;
color: inherit;
}
}

code {
font-family: $text-font-family;
font-size: 1.6rem;
font-weight: 400;
background-color: $alt-bg-color;
color: $text-color;
}

blockquote {
border-left: 2px solid $alt-bg-color;
padding-left: 2.0rem;
font-weight: 400;
font-style: italic;
}

th, td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td, table th {
border: 2px solid $alt-fg-color;
}
table tr:first-child th {
border-top: 0;
}
table tr:last-child td {
border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}

img {
max-width: 100%;
Expand All @@ -192,31 +126,6 @@ img {
padding-right: 1.0rem;
}

.fab {
font-weight: 400;
}

.fas {
font-weight: 700;
}

.float-right {
float: right;
}

.float-left {
float: left;
}

.fab {
font-weight: 400;
}

.fas {
font-weight: 900;
}


img,
p,
a,
Expand Down
112 changes: 112 additions & 0 deletions assets/scss/_content.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
.centered {
display: flex;
align-items: center;
justify-content: center;
.main {
text-align: center;
width: 100%;
h1 {
font-weight: 700;
color: $white;
}
h2 {
font-weight: 300;
}
ul {
list-style: none;
margin: 3.0rem 0 1.0rem 0;
padding: 0;
li {
display: inline-block;
position: relative;
a {
color: $white;
text-transform: uppercase;
margin-left: 1.0rem;
margin-right: 1.0rem;
font-size: 1.6rem;
&:hover,
&:focus {
color: $green;
}
@media only screen and (max-width : 768px) {
font-size: 1.4rem;
}
i {
font-size: 3.2rem;
}
}
}
}
}
}

.home{
height: 100vh;
background-image: url(../images/bg.jpg);
background-size: cover;
}

.about{
text-align: center;
width: 100%;
height: 100vh;
margin: 0 auto;
h2{
border-bottom: 1px solid $green;
padding-bottom: 15px;
margin-bottom: 35px;
}
h3 {
font-weight: 300;
text-align: justify;
@media only screen and (max-width : 768px){
text-align: left;
}
}
}

.downloads{
width: 100%;
height: 100vh;
.downloads-container{
display: grid;
align-items: center;
justify-items: center;

h2{
border-bottom: 1px solid $green;
padding-bottom: 15px;
margin-bottom: 35px;
}
img{
margin: 20px;
width: 250px;
display: block;
}
}
}

.chat{
text-align: center;
width: 100%;
height: 100vh;
h2{
border-bottom: 1px solid $green;
padding-bottom: 15px;
margin-bottom: 35px;
}
.chat-info-container{
margin-top: 20px;
text-align: justify;
}
p, h3{
margin: 10px 0px;
@media only screen and (max-width : 768px){
text-align: left;
}
}
h3{
font-weight: 300;
}
}
Loading

0 comments on commit 1e2c397

Please sign in to comment.