Worked on homepage, added assets
This commit is contained in:
parent
8a8b88c811
commit
05011e22fe
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -0,0 +1,2 @@
|
|||
.vscode
|
||||
mbot
|
2
main.go
2
main.go
|
@ -12,7 +12,7 @@ type Index struct {
|
|||
}
|
||||
|
||||
var data = &Index {
|
||||
Title: "Website",
|
||||
Title: "MBot",
|
||||
}
|
||||
|
||||
func aboutHandler(w http.ResponseWriter, req *http.Request) {
|
||||
|
|
1
src/assets/home/background.svg
Normal file
1
src/assets/home/background.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 20"><path fill="#04083d" d="M0 0H48V20H0"/><path style="filter:blur(3px);fill:none;stroke:#034f7e;stroke-width:6" d="M-6 11c30-13 26 8 62 4M1 26 15-5m8 0 8 31M33-5Q35 7 54 5"/></svg>
|
After Width: | Height: | Size: 238 B |
BIN
src/assets/home/blue-graident-background.png
Normal file
BIN
src/assets/home/blue-graident-background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 KiB |
BIN
src/assets/home/bot-profile-compressed.png
Normal file
BIN
src/assets/home/bot-profile-compressed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 234 B |
BIN
src/assets/home/bot-profile.png
Normal file
BIN
src/assets/home/bot-profile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
|
@ -1,5 +1,6 @@
|
|||
{{ define "footer" }}
|
||||
<footer>
|
||||
<h2>My footer!</h2>
|
||||
<h2>MBot</h2>
|
||||
<p>Discord.js</p>
|
||||
</footer>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ define "navbar" }}
|
||||
<nav>
|
||||
<h1>navbar</h1>
|
||||
<h1>MBot</h1>
|
||||
<ul>
|
||||
<a href="/">
|
||||
<li>Home</li>
|
||||
|
|
93
src/fonts/poppins/OFL.txt
Normal file
93
src/fonts/poppins/OFL.txt
Normal file
|
@ -0,0 +1,93 @@
|
|||
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://openfontlicense.org
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
src/fonts/poppins/Poppins-Black.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Black.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-BlackItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-Bold.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Bold.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-BoldItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-ExtraBold.ttf
Normal file
BIN
src/fonts/poppins/Poppins-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-ExtraBoldItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-ExtraBoldItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-ExtraLight.ttf
Normal file
BIN
src/fonts/poppins/Poppins-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-ExtraLightItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-Italic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Italic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-Light.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Light.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-LightItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-LightItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-Medium.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Medium.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-MediumItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-Regular.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Regular.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-SemiBold.ttf
Normal file
BIN
src/fonts/poppins/Poppins-SemiBold.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-SemiBoldItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-SemiBoldItalic.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-Thin.ttf
Normal file
BIN
src/fonts/poppins/Poppins-Thin.ttf
Normal file
Binary file not shown.
BIN
src/fonts/poppins/Poppins-ThinItalic.ttf
Normal file
BIN
src/fonts/poppins/Poppins-ThinItalic.ttf
Normal file
Binary file not shown.
|
@ -6,7 +6,19 @@
|
|||
<body>
|
||||
{{ define "body" }}
|
||||
<header>
|
||||
<h1>Home page!</h1>
|
||||
<div id="header-wrapped-content">
|
||||
<div id="header-wrapped-text">
|
||||
<h1>Welcome to MBot!</h1>
|
||||
<p>MBot is a new Discord bot that allows you do powerful moderation, play music with your friends, and is built to do way more in the future! This project is currentaly in alpha and MBot is very limited, please wait paintely for new updates comming your way! 😎</p>
|
||||
</div>
|
||||
<div id="header-wrapped-profile">
|
||||
<img src="/src/assets/home/bot-profile-compressed.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div id="what-about">
|
||||
<h2>What is MBot?</h2>
|
||||
<p>MBot is a Discord bot powered by Discord.js to help the user in moderation of their server, this bot can help ban, kick any user (as long as it has permission to do so) to help fight off anyone who could be doing anything against what the server goes for! It can also clear messages incase any big chunks of unwanted messages appear. If you want music for your server this is the bot for that! This bot is able to play about any music you want as long as it is a public link.</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</body>
|
||||
|
|
|
@ -1,5 +1,71 @@
|
|||
header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin: -20px -20px 0;
|
||||
width: calc(100% + 40px);
|
||||
height: 600px;
|
||||
background-image: url(/src/assets/home/background.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
|
||||
#header-wrapped-content {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
max-width: 1920px;
|
||||
width: 100%;
|
||||
padding: 20px 100px;
|
||||
|
||||
img {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
#header-wrapped-text {
|
||||
max-width: 600px;
|
||||
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
p{
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
#header-wrapped-profile {
|
||||
border-radius: 50% !important;
|
||||
overflow: hidden;
|
||||
height: 300px !important;
|
||||
width: 300px !important;
|
||||
border-style: solid;
|
||||
border-color: white;
|
||||
border-width: 3px;
|
||||
aspect-ratio: 1 / 1;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#what-about {
|
||||
margin-top: 30px;
|
||||
|
||||
h2 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
p{
|
||||
font-size: 1.3rem;
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,25 @@
|
|||
@font-face {
|
||||
font-family: Poppins;
|
||||
src: url(/src/fonts/poppins/Poppins-Medium.ttf);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Poppins;
|
||||
src: url(/src/fonts/poppins/Poppins-Light.ttf);
|
||||
font-weight: 200;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Poppins;
|
||||
src: url(/src/fonts/poppins/Poppins-Bold.ttf);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font: 'Poppins', sans-serif;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
|
@ -12,6 +34,10 @@ body {
|
|||
margin: auto;
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
background-color: #121212;
|
||||
color: white;
|
||||
font-family: var(--font);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
a {
|
||||
|
@ -20,24 +46,41 @@ a {
|
|||
}
|
||||
|
||||
nav {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
z-index: 999;
|
||||
width: calc(100% - 40px);
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
float: right;
|
||||
gap: 10px;
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
font-weight: 200;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
position: relative;
|
||||
margin-top: auto;
|
||||
padding-top: 20px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
p {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue