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;
word-break: break-word;
}
section {
padding: 1.75rem 1.25rem !important;
}
}
header {
@@ -26,6 +30,13 @@ header h1 {
color: var(--crimson);
}
@media (max-width: 768px) {
header h1 {
font-size: 3.25rem !important;
margin-bottom: 1rem !important;
}
}
header p {
font-size: 1.5rem;
font-weight: 400;
@@ -60,20 +71,6 @@ header .cta {
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 {
padding: 2.5rem 1.25rem;
@@ -112,6 +109,13 @@ header .cta {
color: var(--crimson);
}
@media (max-width: 768px) {
.benefits h2 {
font-size: 3.25rem !important;
margin-bottom: 1rem !important;
}
}
.benefits-wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+7 -1
View File
@@ -24,10 +24,16 @@ func main() {
PORT = "8080"
}
ALLOWED_ORIGIN := os.Getenv("ALLOWED_ORIGIN")
if len(ALLOWED_ORIGIN) == 0 {
ALLOWED_ORIGIN = "https://touch-programming.hazemkrimi.tech"
}
ech := echo.New()
ech.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: []string{"https://touch-programming.hazemkrimi.tech"},
AllowOrigins: []string{ALLOWED_ORIGIN},
}))
ech.GET("/generate", handlers.Generate)