mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-01 18:20:26 +00:00
Improve styles and allowed origin setting
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user