Skip to content

Commit

Permalink
ip
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Dec 4, 2023
1 parent 2f96a04 commit e186c01
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
4 changes: 2 additions & 2 deletions k6/flowramps-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export let options = {

export default function () {
// Acesse a página principal da aplicação
let response = http.get('http://goapp.172.26.58.248.nip.io/');
let response = http.get('http://goapp.172.19.119.209.nip.io/');

// Verifique se a solicitação foi bem-sucedida
check(response, {
Expand All @@ -21,7 +21,7 @@ export default function () {

// Simule cliques nos links de redes sociais
['instagram', 'linkedin', 'github'].forEach((network) => {
response = http.get(`http://goapp.172.26.58.248.nip.io/click?network=${network}`);
response = http.get(`http://goapp.172.19.119.209.nip.io/click?network=${network}`);

// Verifique se a solicitação foi bem-sucedida
check(response, {
Expand Down
34 changes: 16 additions & 18 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ func main() {
transition: background-color 300ms;
}
.image-container img {
display: block;
margin: auto;
.responsive-image {
max-width: 100%;
height: auto;
width: 100%;
border-radius: 10px;
}
Expand All @@ -100,7 +101,7 @@ func main() {
}
.navbar a {
margin-right: 5px;
margin-right: 10px;
}
/* Adicione o seguinte estilo para o botão Metrics */
Expand All @@ -119,8 +120,8 @@ func main() {
padding: 7px;
margin: 7px;
border-radius: 15px;
box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
width: 80%; /* Ajuste o tamanho conforme necessário */
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
width: 30%; /* Ajuste o tamanho conforme necessário */
}
/* Alteração para a cor branca do texto */
Expand All @@ -147,19 +148,15 @@ func main() {
}
/* Media query for smaller screens */
@media (max-width: 400px) {
.navbar {
flex-direction: column;
align-items: center;
}
.navbar a {
margin-right: 10px;
margin-bottom: 10px;
@media (max-width: 700px) {
.content {
width: 90%;
}
}
.social-links {
margin-top: 10px;
@media (max-width: 500px) {
.content {
width: 85%;
}
}
</style>
Expand All @@ -172,7 +169,7 @@ func main() {
<div class="content">
<h1>Workshop DevOps !!!!</h1>
<div class="image-container">
<img src="https://raw.githubusercontent.com/flowramps/workshop-argo/main/img/flowramps.jpg" alt="Imagem" style="width: 60%; height: auto;">
<img class="responsive-image" src="https://raw.githubusercontent.com/flowramps/workshop-argo/main/img/flowramps.jpg" alt="Imagem">
</div>
<div class="white-text">
<p>Nome do Pod: ` + hostname + `</p>
Expand All @@ -182,6 +179,7 @@ func main() {
<div class="social-links">
<a href="https://www.instagram.com/flow.ramps/" title="Instagram" target="_blank" rel="noopener"><img src="https://raw.githubusercontent.com/flowramps/workshop-argo/main/img/instagram.png"></a>
<a href="https://www.linkedin.com/in/rafaelrampasso/" title="LinkedIn" target="_blank" rel="noopener"><img src="https://raw.githubusercontent.com/flowramps/workshop-argo/main/img/linkedin.png"></a>
<a href="https://github.com/flowramps/" title="Github" target="_blank" rel="noopener"><img src="https://raw.githubusercontent.com/flowramps/workshop-argo/main/img/github.png"></a>
</div>
</div>
</body>
Expand Down

0 comments on commit e186c01

Please sign in to comment.