Skip to content

Commit

Permalink
fix styling problem in mentorship services
Browse files Browse the repository at this point in the history
  • Loading branch information
JennGuz committed Sep 13, 2024
1 parent 6a4d279 commit 5a3a797
Showing 1 changed file with 140 additions and 139 deletions.
279 changes: 140 additions & 139 deletions breathecode/mentorship/templates/pick_service.html
Original file line number Diff line number Diff line change
@@ -1,152 +1,153 @@
{% extends "base.html" %}
{% block content %}
<style>
body {
font-family: "Roboto", sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}
a{text-decoration: none;}
.card {
background-color: white;
width: auto;
box-sizing: content-box;
padding: 20px 24px;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
margin: 0px auto;
max-width: 400px;
}
.card .card-title {
border-left: 8px solid #00aeef;
padding: 16px 30px;
margin-left: -24px;
font-size: 1.5em;
font-weight: 400;
}

.sh-list {
min-width: 340px;
}
.sh-list .sh-list-item {
padding: 16px;
cursor: pointer;
}
.sh-list .sh-list-item:hover {
background-color: #f3f3f3;
}
.sh-list .sh-list-item .sh-list-content,
.sh-list .sh-list-item .sh-list-icon {
vertical-align: middle;
display: table-cell;
background-size: contain;
}
.sh-list .sh-list-item .whitespace{
content: "a";
width: 10px;
background: transparent;
display: table-cell;
}
.sh-list .sh-list-item .sh-list-item-title {
color: #2c2d30;
padding: 2px 0;
font-weight: 600;
font-size: 16px;
}
.sh-list .sh-list-item .sh-list-item-sub-title {
color: #717274;
font-weight: 200;
font-size: 12px;
}
.sh-list .sh-list-item .sh-list-icon {
margin-right: 10px;
background-color: #d2d2d2;
width: 40px;
height: 40px;
display: table-cell;
text-align: center;
line-height: 42px;
font-size: 1.2em;
font-weight: 100;
color: white;
border-radius: 50%;
}
.sh-list .sh-list-item .sh-list-icon.add {
background-color: #00aeef;
}
.sh-list .sh-list-item > a {
display: block;
position: relative;
}
.sh-list .sh-list-item .sufix {
display: inline-block;
font-size: 24px;
position: absolute;
right: 20;
top: 0;
}
.sh-list .sh-list-item .sufix i {
margin-top: 10px;
}

h4 {
display: block;
box-sizing: border-box;
height: 48px;
padding: 16px;
margin: 0;
font-size: 14px;
font-weight: 500;
color: rgba(0, 0, 0, 0.54);
}
body {
font-family: "Roboto", sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}

a {
text-decoration: none;
}

.card {
background-color: white;
width: auto;
box-sizing: content-box;
padding: 20px 24px;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
margin: 0px auto;
max-width: 400px;
}

.card .card-title {
border-left: 8px solid #00aeef;
padding: 16px 30px;
margin-left: -24px;
font-size: 1.5em;
font-weight: 400;
}

.sh-list {
min-width: 340px;
}

.sh-list .sh-list-item {
padding: 16px;
cursor: pointer;
}

.sh-list .sh-list-item:hover {
background-color: #f3f3f3;
}


.sh-list .sh-list-item .sh-list-content,
.sh-list .sh-list-item .sh-list-icon {
vertical-align: middle;
display: table-cell;
background-size: contain;
}
.sh-list .sh-list-item .sh-list-item-title {
color: #2c2d30;
padding: 2px 0;
font-weight: 600;
font-size: 16px;
}

.sh-list .sh-list-item .sh-list-item-sub-title {
color: #717274;
font-weight: 200;
font-size: 12px;
}

.sh-list .sh-list-item .sh-list-icon {
margin-right: 10px;
background-color: #d2d2d2;
width: 40px;
height: 40px;
display: table-cell;
text-align: center;
line-height: 42px;
font-size: 1.2em;
font-weight: 100;
color: white;
border-radius: 50%;
}

.sh-list .sh-list-item .sh-list-icon.add {
background-color: #00aeef;
}

.sh-list .sh-list-item>a {
display: block;
position: relative;
}

.sh-list .sh-list-item .sufix {
display: inline-block;
font-size: 24px;
}

h4 {
display: block;
box-sizing: border-box;
height: 48px;
padding: 16px;
margin: 0;
font-size: 14px;
font-weight: 500;
color: rgba(0, 0, 0, 0.54);
}
</style>
<div class="content text-center">
<tr>
<td align="left" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; width: 87.5%;
<tr>
<td align="left" valign="top" style="border-collapse: collapse; border-spacing: 0; margin: 0; padding: 0; width: 87.5%;
padding-bottom: 5px;">
<div class=card>
<div class="card-title">Choose service</div>
<div class="sh-list">
{% if services|length == 0 %}
<div class="sh-list-item">
This mentor not have service too.
<div class=card>
<div class="card-title">Choose services</div>
<div class="sh-list">
{% if services|length == 0 %}
<div class="sh-list-item">
This mentor not have service too.
</div>
{% endif %}

{% for s in services %}
<div class="sh-list-item">

<a href="{{ baseUrl }}/service/{{s.slug}}?token={{token}}" style="display: flex; justify-content: space-between; align-items: center; gap: 10px;">
<section style="display: grid; grid-template-columns: 50px 1fr; align-items: center;">
{% if s.logo_url %}
<div class="sh-list-icon" style="background-image: url('{{ s.logo_url }}')">
{% else %}
<div class="sh-list-icon">
{% endif %}

{% if s.logo_url %}
<i class="fas fa-user-friends"></i>
{% endif %}
</div>
{% endif %}

{% for s in services %}
<div class="sh-list-item">
<a href="{{ baseUrl }}/service/{{s.slug}}?token={{token}}"
style="display: block;">
{% if s.logo_url %}
<div class="sh-list-icon"
style="background-image: url('{{ s.logo_url }}')">
{% else %}
<div class="sh-list-icon">
{% endif %}

{% if s.logo_url %}
<i class="fas fa-user-friends"></i>
{% endif %}
</div>
<div class="whitespace"></div>
<div class="sh-list-content">
<div class="sh-list-item-title">
{{ s.name }}
</div>
{% if s.academy %}
<div class="sh-list-item-sub-title">{{ s.academy.name }}</div>
{% endif %}
</div>
<div class="sufix"><i class="fas fa-angle-right"></i></div>
</a>
<div class="sh-list-content">
<div class="sh-list-item-title">
{{ s.name }}
</div>
{% if s.academy %}
<div class="sh-list-item-sub-title">{{ s.academy.name }}</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</section>
<div class="sufix"><i class="fas fa-angle-right"></i></div>
</a>
</div>
{% endfor %}
</div>
</div>


</td>
</tr>
</td>
</tr>
</div>
{% endblock %}

0 comments on commit 5a3a797

Please sign in to comment.