Re-did homepage styling
This commit is contained in:
parent
631693db70
commit
fdc16cc1aa
6 changed files with 13 additions and 29 deletions
|
@ -6,7 +6,7 @@ tmp_dir = "tmp"
|
||||||
args_bin = ["-ip", "127.0.0.1", "-port", "3000"]
|
args_bin = ["-ip", "127.0.0.1", "-port", "3000"]
|
||||||
bin = "./tmp/main"
|
bin = "./tmp/main"
|
||||||
pre_cmd = []
|
pre_cmd = []
|
||||||
cmd = "go build -o ./tmp/main . & cd lib/stylegen && ./gen.sh -e html -d ../../pages/templates -o ../../public/css"
|
cmd = "cd lib/stylegen && ./gen.sh -e html -d ../../pages/templates -o ../../public/css && cd ../.. && go build -o ./tmp/main ."
|
||||||
delay = 1000
|
delay = 1000
|
||||||
exclude_dir = ["assets", "tmp", "vendor", "testdata", "lib/stylegen"]
|
exclude_dir = ["assets", "tmp", "vendor", "testdata", "lib/stylegen"]
|
||||||
exclude_file = []
|
exclude_file = []
|
||||||
|
@ -15,7 +15,7 @@ tmp_dir = "tmp"
|
||||||
follow_symlink = false
|
follow_symlink = false
|
||||||
full_bin = ""
|
full_bin = ""
|
||||||
include_dir = []
|
include_dir = []
|
||||||
include_ext = ["go", "tpl", "tmpl", "html", "css"]
|
include_ext = ["go", "tpl", "tmpl", "html"]
|
||||||
include_file = []
|
include_file = []
|
||||||
kill_delay = "0s"
|
kill_delay = "0s"
|
||||||
log = "build-errors.log"
|
log = "build-errors.log"
|
||||||
|
|
|
@ -107,6 +107,9 @@ echo "module.exports = {
|
||||||
plugins: [require('daisyui'), require('@tailwindcss/typography')],
|
plugins: [require('daisyui'), require('@tailwindcss/typography')],
|
||||||
}" > tailwind.config.js
|
}" > tailwind.config.js
|
||||||
|
|
||||||
|
# Delete original CSS file if it exists
|
||||||
|
rm -f "${OUTPUT_DIR}/styles.css"
|
||||||
|
|
||||||
# Run the binary with the generated config
|
# Run the binary with the generated config
|
||||||
$BINARY build -i ./base.css -c tailwind.config.js -o "${OUTPUT_DIR}/styles.css" --minify
|
$BINARY build -i ./base.css -c tailwind.config.js -o "${OUTPUT_DIR}/styles.css" --minify
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type HomeProps struct {
|
type HomeProps struct {
|
||||||
|
Title template.HTML
|
||||||
|
Subtitle template.HTML
|
||||||
Socials []lib.IconLink
|
Socials []lib.IconLink
|
||||||
Tech []lib.IconLink
|
Tech []lib.IconLink
|
||||||
ButtonsLinks []lib.ButtonLink
|
ButtonsLinks []lib.ButtonLink
|
||||||
|
@ -119,6 +121,8 @@ func Home(c echo.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
props := HomeProps{
|
props := HomeProps{
|
||||||
|
Title: "Hi, I'm Atridad",
|
||||||
|
Subtitle: "Researcher, Full-Stack Developer, and IT Professional.",
|
||||||
Socials: socials,
|
Socials: socials,
|
||||||
Tech: tech,
|
Tech: tech,
|
||||||
ButtonsLinks: buttons,
|
ButtonsLinks: buttons,
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
{{define "title"}}
|
|
||||||
Atridad Lahiji // [SOMEPAGE]
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "headercontent"}}
|
|
||||||
Atridad Lahiji // [SOMEPAGE]
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "head"}}
|
|
||||||
<link rel="stylesheet" href="/public/css/styles.css" />
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "main"}}
|
|
||||||
<h1 class="text-4xl font-extrabold text-white sm:text-8xl">
|
|
||||||
New <span class="bg-gradient-to-r from-pink-500 to-blue-500 bg-clip-text text-transparent">Page</span>
|
|
||||||
</h1>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{define "foot"}}
|
|
||||||
<script src="/public/js/htmx.base.js"></script>
|
|
||||||
<script src="/public/js/htmx.sse.js"></script>
|
|
||||||
<script src="/public/js/hyperscript.js"></script>
|
|
||||||
{{end}}
|
|
|
@ -11,13 +11,13 @@ Atridad Lahiji // Root
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
|
|
||||||
<h1 class="text-4xl font-extrabold text-white sm:text-8xl">
|
<h1 class="text-4xl font-extrabold text-white sm:text-8xl">
|
||||||
Hi, I'm <span
|
<span class="bg-gradient-to-r from-pink-500 to-blue-500 bg-clip-text text-transparent">{{.Title}}</span>
|
||||||
class="text-transparent bg-clip-text bg-gradient-to-r from-pink-500 via-purple-500 to-blue-500">Atridad</span>
|
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<h2 class="text-2xl font-extrabold tracking-tight text-white sm:text-[2rem]">
|
<h2 class="text-2xl font-extrabold tracking-tight text-white sm:text-[2rem]">
|
||||||
Researcher, Full-Stack Developer, and IT Professional.
|
{{.Subtitle}}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
|
|
2
public/css/styles.css
vendored
2
public/css/styles.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue