diff --git a/client/src/pages/Home/index.css b/client/src/pages/Home/index.css index 7e199ab..768b480 100644 --- a/client/src/pages/Home/index.css +++ b/client/src/pages/Home/index.css @@ -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)); diff --git a/server/main.go b/server/main.go index 9475221..28dca0c 100644 --- a/server/main.go +++ b/server/main.go @@ -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)