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

Feature/home page #7

Merged
merged 39 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9e59db9
basic home page ready
maharshi-gor Sep 8, 2023
7bc3e70
Good looking home page
maharshi-gor Sep 12, 2023
db546eb
Pushing Week14 BlogPost
shilpiprd Aug 31, 2023
b516a8a
Fixing Week Number
shilpiprd Aug 31, 2023
4455d52
more cleaning
skoudoro Sep 8, 2023
223a655
update readme
skoudoro Sep 8, 2023
0b471c9
add some actions
skoudoro Sep 8, 2023
5ea3a0c
fix build
skoudoro Sep 8, 2023
e6c4501
Update website link
skoudoro Sep 8, 2023
6b8de95
update pr management
skoudoro Sep 8, 2023
43b01fc
menu update
skoudoro Sep 8, 2023
e139333
update version and secrets name
skoudoro Sep 8, 2023
fd9e0d1
update permissions
skoudoro Sep 8, 2023
43146b6
all permissions to see if it works
skoudoro Sep 8, 2023
b7c5dce
update permissions
skoudoro Sep 8, 2023
d6aac92
new test for permissions
skoudoro Sep 9, 2023
e39d044
update permissions
skoudoro Sep 9, 2023
4a04deb
use string
skoudoro Sep 9, 2023
9a4133a
change token
skoudoro Sep 9, 2023
210af59
back to initial test
skoudoro Sep 9, 2023
f5ebaa0
use pull request target
skoudoro Sep 11, 2023
8c288ba
add some conditions
skoudoro Sep 11, 2023
360c3f8
allow write to content
skoudoro Sep 11, 2023
f121056
update condition
skoudoro Sep 12, 2023
5332880
debug info
skoudoro Sep 12, 2023
dfe3d44
test null
skoudoro Sep 12, 2023
33a09ef
make sure to deploy
skoudoro Sep 12, 2023
f452985
basic home page ready
maharshi-gor Sep 8, 2023
982b455
Good looking home page
maharshi-gor Sep 12, 2023
e675ceb
menu update
skoudoro Sep 8, 2023
57b10ea
Merge branch 'master' into feature/home-page
maharshi-gor Sep 12, 2023
b94f0d4
deleted not used file
maharshi-gor Sep 12, 2023
74de37c
few changes for the slide
maharshi-gor Sep 13, 2023
41127bd
small changes fixed
maharshi-gor Sep 13, 2023
88d976f
icons-added
maharshi-gor Sep 13, 2023
72c7027
Comments addressed
maharshi-gor Sep 13, 2023
f2c095c
changes complete
maharshi-gor Sep 13, 2023
96b8c8e
carousel start
maharshi-gor Sep 13, 2023
3b2004d
Update conf.py with tomli
skoudoro Sep 14, 2023
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
reference/
_build
__pycache__
__pycache__
.DS_Store
12 changes: 2 additions & 10 deletions _static/css/common/override.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@ This CSS file represents all the style changes to
override the pydata-theme and sphinx.
*/

h1, h2, h3, h4, h5, h6 {
color: var(--pst-color-text-base);
font-weight: 600;
.navbar-brand.logo {
padding: 1.1rem 1.1rem 1.1rem 0;
}

h1 {
font-size: 2.5em;
}

.bd-sidebar-primary .sidebar-primary-items__end {
margin-top: 0 !important;
}
34 changes: 0 additions & 34 deletions _static/css/common/section-list.css

This file was deleted.

16 changes: 12 additions & 4 deletions _static/css/common/variables.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
html[data-theme="light"] {
--pst-color-primary: #FD8D25;
--pst-color-secondary: #1B8BF4;
--gst-color-primary: #FD8D25;
--gst-color-secondary: #1B8BF4;
--gst-color-bg: var(--bs-white);
--gst-color-bg-gray: var(--bs-gray-100);
--gst-color-light-border: var(--pst-color-border);
}

--pst-color-link-hover: var(--pst-color-secondary);
--pst-color-border: rgb(229,229,229);
html[data-theme="dark"] {
--gst-color-primary: #FD8D25;
--gst-color-secondary: #1B8BF4;
--gst-color-bg: var(--bs-gray-900);
--gst-color-bg-gray: var(--bs-gray-900);
--gst-color-light-border: transparent;
}
8 changes: 7 additions & 1 deletion _static/css/dipy.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/* Index CSS file */
/* Do not add any css directly here.... */

/* util css is no longer required as it is fetched from grg-sphinx-theme */

/* Common CSS */

@import url("./common/variables.css");
@import url("./common/section-list.css");
@import url("./common/override.css");

/* Home CSS */
@import "./home/index.css";
21 changes: 21 additions & 0 deletions _static/css/home/carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.carousel-item {
height: 520px;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
color: var(--gst-color-primary);
background: none;
font-size: 40px;
font-weight: 900;
}

.carousel-indicators [data-bs-target] {
background-color: var(--gst-color-primary);
}

@media only screen and (max-width: 768px) {
.carousel-item {
height: 260px;
}
}
59 changes: 59 additions & 0 deletions _static/css/home/cite.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.cite {
display: grid;
grid-template-columns: 100px 1fr;
gap: 1em;
border: 2px solid var(--gst-color-light-border);
background-color: var(--gst-color-bg);
border-radius: 12px;
width: fit-content;
margin: 0 auto;
}

.cite-icon-bg {
height: 90px;
width: 90px;
border-radius: 50%;

background-color: var(--gst-color-primary);
color: var(--bs-white);
font-size: 52px;
margin: 0 auto;

display: flex;
justify-content: center;
align-items: center;

box-shadow: var(--pst-shadow);
}


.cite-detail {
display: flex;
flex-direction: column;
align-items: start;
justify-content: center;
}

.cite-detail p {
margin: 0;
margin-bottom: 0;
font-size: 18px;
}

.cite-link,
.cite-link:visited {
color: var(--gst-color-primary);
text-decoration: underline;
font-weight: 600;
}

@media only screen and (max-width: 768px) {
.cite {
grid-template-columns: 1fr;
}

.cite-detail {
flex-direction: column;
align-items: start;
}
}
32 changes: 32 additions & 0 deletions _static/css/home/explore.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.explore {
display: grid;
gap: 3em;
}

.explore-tile {
box-shadow: var(--pst-shadow);
border-radius: 12px;
/* TODO This should be removed as the util will be available */
/* padding: 48px 20px; */
background-color: var(--gst-color-bg);
}

.explore-tile-icon {
background-color: var(--gst-color-primary);
height: 55px;
width: 55px;
border-radius: 12px;
/* TODO This should be removed as the util will be available */
padding: 12px;
margin-bottom: 24px;
box-shadow: var(--pst-shadow);
}

.explore-tile-title {
font-weight: 600;
}

.explore-tile-know-more,
.explore-tile-know-more:visited {
color: var(--gst-color-primary);
}
31 changes: 31 additions & 0 deletions _static/css/home/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@import "./intro.css";
@import "./explore.css";
@import "./carousel.css";
@import "./sponsors.css";
@import "./cite.css";

/* CSS which is common across the home page */
.dipy-highlight {
color: var(--pst-color-primary);
}

div.section:nth-child(n+3) {
margin: 72px 0;
padding: 0 20px;
}

h2.section-title {
padding: 10px 0;
margin: 10px 0;
text-align: center;
font-weight: 900;
font-size: 50px;
color: var(--gst-color-heading);
}

@media only screen and (max-width: 768px) {
/* Your CSS styles for phones go here */
h2.section-title {
font-size: 30px;
}
}
38 changes: 38 additions & 0 deletions _static/css/home/intro.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.intro {
width: 100%;
padding: 96px 32px;
text-align: center;
}

.tagline {
color: var(--gst-color-heading);
font-size: 76px;
line-height: 1.25;
font-weight: 900;
margin: 0 auto;
}

.description {
line-height: 1.25;
font-size: 20px;
max-width: 900px;
margin: 24px auto 40px;
color: var(--pst-color-text-muted);
}

.actions {
margin: 0 auto;
}

@media only screen and (max-width: 768px) {
/* Your CSS styles for phones go here */
.intro {
padding: 90px 20px;
}
.tagline {
font-size: 40px;
}
.description {
font-size: 16px;
}
}
15 changes: 15 additions & 0 deletions _static/css/home/sponsors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.sponsors {
gap: 5px;
}
.sponsors-item {
background-color: var(--gst-color-bg-gray);
border-radius: 2px;
display: flex;
justify-content: space-around;
align-items: center;
padding: 20px;
}

html[data-theme=dark] .sponsors-item img:not(.only-dark):not(.dark-light) {
filter: grayscale(1) invert(1);
}
Binary file added _static/images/icons/cli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/images/logos/dipy-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/images/logos/dipy-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/images/sponsors/NIH_NIBIB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/images/sponsors/gsoc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/images/sponsors/iu.webp
Binary file not shown.
Binary file added _static/images/sponsors/luddy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _static/images/sponsors/uwescience.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions _templates/components/carousel.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<div id="banners" class="carousel slide carousel-fade" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#banners" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#banners" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#banners" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://raw.githubusercontent.com/Garyfallidis/garyfallidis.github.com/master_bak/images/quickbundles_banner.jpg" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Some representative placeholder content for the first slide.</p>
</div>
</div>
skoudoro marked this conversation as resolved.
Show resolved Hide resolved
<div class="carousel-item">
<img src="https://raw.githubusercontent.com/dipy/dipy_data/master/white_matter_museum.png" class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="https://raw.githubusercontent.com/dipy/dipy_data/master/buan_profiles.png" class="d-block w-100" alt="...">
</div>
</div>
<!-- <button class="carousel-control-prev" type="button" data-bs-target="#banners" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true">
<i class="fa-solid fa-chevron-left"></i>
</span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#banners" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true">
<i class="fa-solid fa-chevron-right"></i>
</span>
<span class="visually-hidden">Next</span>
</button> -->
</div>
Empty file added _templates/components/cite.html
Empty file.
Loading
Loading