diff --git a/src/Client/src/app/pages/home/home.component.css b/src/Client/src/app/pages/home/home.component.css index be3c1f6..d877bf3 100644 --- a/src/Client/src/app/pages/home/home.component.css +++ b/src/Client/src/app/pages/home/home.component.css @@ -1,6 +1,6 @@ .center-frame { - margin: 0 200px; - width: calc(100% - 400px); + margin: 0 auto; + max-width: 1400px; } .center-text { diff --git a/src/Client/src/app/pages/resumes/editor/editor.component.css b/src/Client/src/app/pages/resumes/editor/editor.component.css index ec41f96..be09ca3 100644 --- a/src/Client/src/app/pages/resumes/editor/editor.component.css +++ b/src/Client/src/app/pages/resumes/editor/editor.component.css @@ -46,13 +46,12 @@ h1 { } .resume-section { - break-inside: avoid; - background-color: #DDDDDD; margin-bottom: 10px; } .resume-sub-section { border: 1px solid #666666; + break-inside: avoid; padding: 10px; } diff --git a/src/Server/Program.cs b/src/Server/Program.cs index b4435a7..39be968 100755 --- a/src/Server/Program.cs +++ b/src/Server/Program.cs @@ -91,16 +91,23 @@ if (IPayment._PaymentType == PaymentType.StripeIntent) { RsaSecurityKey? PublicKey = null; using (HttpClient client = new HttpClient()) { while (PublicKey == null) { - HttpResponseMessage PublicKeyResponse = await client.GetAsync("https://auth.mistox.com/api/auth/publickey"); - if (PublicKeyResponse.IsSuccessStatusCode) { - string publicKey = await PublicKeyResponse.Content.ReadAsStringAsync(); - RSA rsa = RSA.Create(); - rsa.ImportFromPem(publicKey); - PublicKey = new RsaSecurityKey(rsa); - } else { + try { + HttpResponseMessage PublicKeyResponse = await client.GetAsync("https://auth.mistox.com/api/auth/publickey"); + if (PublicKeyResponse.IsSuccessStatusCode) { + string publicKey = await PublicKeyResponse.Content.ReadAsStringAsync(); + RSA rsa = RSA.Create(); + rsa.ImportFromPem(publicKey); + PublicKey = new RsaSecurityKey(rsa); + } else { + await Task.Delay(2000); // sleep the main thread for 2 seconds before sending another request. Prevent DDOS of my own equiptment + Console.WriteLine("auth.mistox.com returned error code: " + PublicKeyResponse.StatusCode); + } + } catch (Exception e) { await Task.Delay(2000); // sleep the main thread for 2 seconds before sending another request. Prevent DDOS of my own equiptment + Console.WriteLine("Error loading public key: " + e.InnerException?.Message); } } + Console.WriteLine("PublicKey loaded"); } builder.Services.AddAuthentication(options => {