Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Freshen up the homepage #1062

Merged
merged 19 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 92 additions & 5 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}

.card-body {
padding-left: 32px;
padding-left: 0px;
padding-right: 32px;
}

Expand Down Expand Up @@ -172,7 +172,7 @@ div.sk-landing-bg-more-info dd {
div.sk-landing-bg {
background-image: linear-gradient(160deg, rgba(0,48,70,.75) 0%, rgba(0,118,179,.75) 17%, rgba(255,239,193,.75) 59%, rgba(255,149,40,.75) 100%);
margin-top: -18px !important;
margin-bottom: 45px;
margin-bottom: 0px;
}

div.sk-landing-bg-more-info {
Expand Down Expand Up @@ -233,17 +233,104 @@ div.sk-landing-footer {
}

/** Scikit-learn buttons ***************************/
a.sk-btn-orange {
/* a.sk-btn-orange {
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
font-size: 1.1rem;
font-weight: 500;
background-color: #f99f44; /* sk-orange-tint-1 */
background-color: #f99f44; // sk-orange-tint-1
color: black !important;
} */

a.sk-btn-orange {
font-size: 1.1rem;
font-weight: 500;
background-color: #f99f44; /* Original sk-orange-tint-1 */
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
color: #ffffff; /* Changed to white for better contrast */
border: 2px solid #f99f44; /* Border to match background color */
padding: 10px 20px; /* Added padding for better button size */
border-radius: 5px; /* Rounded corners for a modern look */
text-decoration: none; /* Remove underline */
transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

a.sk-btn-orange:hover {
background-color: #fcb575; /* --sk-orange-tint-3 */
background-color: #ffffff; /* Fill with white on hover */
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
color: #f99f44; /* Text color changes to match the original background color */
border: 2px solid #f99f44; /* Border remains the same on hover */
}


a.sk-btn-orange:hover {
background-color: #fbe1ca; /* --sk-orange-tint-3 */
}


.container {
max-width: 80%; /* Restrict container width for better readability */
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
}

.feature-title {
color: #f99f44; /* Darker text color for the title */
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
font-weight: 600; /* Bold font for title */
margin-bottom: 10px; /* Spacing below title */
}

.feature-text {
color: #555; /* Lighter grey for the description text */
font-size: 1rem; /* Regular font size for text */
margin-bottom: 0; /* Remove default bottom margin */
}



.hero-description {
text-align: center;
font-size: 20px;
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
margin-bottom: 40px;
}


.thin-line {
width: 100%;
height: 0.5px; /* Adjust the thickness of the line */
background-color: #12134b; /* Change the color as needed */
border: none; /* Ensures no border is applied */
margin-top: 50px;
margin-bottom: 50px;
}


.contributors-list {
Vincent-Maladiere marked this conversation as resolved.
Show resolved Hide resolved
display: flex;
flex-wrap: wrap;
justify-content: center; /* Centers the content horizontally */
gap: 30px; /* Adds space between contributors */
}
.contributor {
text-align: center;
}
.contributor img {
border-radius: 50%;
width: 80px;
height: 80px;
}
.contributor-name {
margin-top: 10px;
font-size: 14px;
font-weight: bold;
}

.home-footer {
background-color: #12134b; /* Black background color */
color: #fff; /* White text color */
text-align: center;
padding: 10px 0; /* Padding for the footer */
position: relative;
width: 100%;
bottom: 0; /* Sticks footer to the bottom */
margin-top: 50px;
}


/* Download/laucher links and top hint (sphinx-gallery) */

.sphx-glr-download-link-note,
Expand Down
Binary file added doc/_static/gap.png
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use an SVG here? Matplotlib saves very nice SVGs (I think that you need to use ", transparent=True" to savefig to have a transparent background, which comes in handy)

Copy link
Member Author

@Vincent-Maladiere Vincent-Maladiere Sep 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The transparent background is challenging to see in darkmode (see below), why do we want SVG? The image is not super big and is displayed in good quality even with a big screen

Screenshot 2024-09-09 at 18 06 46

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions doc/_templates/demo_gap_encoder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="doctest highlight-default notranslate">

<div class="highlight hl-ipython3">
<pre><span></span><span class="kn">from</span> <span class="nn">skrub</span> <span class="kn">import</span> <span class="n">GapEncoder</span>
<span class="n">gap</span> <span class="o">=</span> <span class="n">GapEncoder</span><span class="p">()</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">X</span><span class="p">[</span><span class="s2">"employee_position_title"</span><span class="p">])</span>
<span class="n">encoded_labels</span> <span class="o">=</span> <span class="n">gap</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">X</span><span class="p">[</span><span class="s2">"employee_position_title"</span><span class="p">]</span><span class="o">.</span><span class="n">head</span><span class="p">())</span>
<span class="n">plt</span><span class="o">.</span><span class="n">imshow</span><span class="p">(</span><span class="n">encoded_labels</span><span class="p">)</span></pre>
</div>
</div>
Loading