Improve styles and allowed origin setting

This commit is contained in:
2025-04-14 14:55:02 +01:00
parent efd4b666d9
commit e27535875e
2 changed files with 25 additions and 15 deletions
+18 -14
View File
@@ -8,6 +8,10 @@
padding: 0rem; padding: 0rem;
word-break: break-word; word-break: break-word;
} }
section {
padding: 1.75rem 1.25rem !important;
}
} }
header { header {
@@ -26,6 +30,13 @@ header h1 {
color: var(--crimson); color: var(--crimson);
} }
@media (max-width: 768px) {
header h1 {
font-size: 3.25rem !important;
margin-bottom: 1rem !important;
}
}
header p { header p {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 400; font-weight: 400;
@@ -60,20 +71,6 @@ header .cta {
text-decoration: none; text-decoration: none;
} }
@media (max-width: 768px) {
header h1 {
font-size: 2.5rem;
}
header p {
font-size: 1.25rem;
}
header .cta {
font-size: 1rem;
}
}
.features { .features {
padding: 2.5rem 1.25rem; padding: 2.5rem 1.25rem;
@@ -112,6 +109,13 @@ header .cta {
color: var(--crimson); color: var(--crimson);
} }
@media (max-width: 768px) {
.benefits h2 {
font-size: 3.25rem !important;
margin-bottom: 1rem !important;
}
}
.benefits-wrapper { .benefits-wrapper {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+7 -1
View File
@@ -24,10 +24,16 @@ func main() {
PORT = "8080" PORT = "8080"
} }
ALLOWED_ORIGIN := os.Getenv("ALLOWED_ORIGIN")
if len(ALLOWED_ORIGIN) == 0 {
ALLOWED_ORIGIN = "https://touch-programming.hazemkrimi.tech"
}
ech := echo.New() ech := echo.New()
ech.Use(middleware.CORSWithConfig(middleware.CORSConfig{ ech.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: []string{"https://touch-programming.hazemkrimi.tech"}, AllowOrigins: []string{ALLOWED_ORIGIN},
})) }))
ech.GET("/generate", handlers.Generate) ech.GET("/generate", handlers.Generate)