-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1690 from griidc/release/6.66.0
Release/6.66.0
- Loading branch information
Showing
30 changed files
with
756 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.active { | ||
transition: opacity 0.25s ease-in-out; | ||
opacity: 1; | ||
height: auto; | ||
} | ||
.inactive { | ||
transition: opacity 0.25s ease-in-out; | ||
opacity: 0.5; | ||
height: 0; | ||
overflow: hidden; | ||
} | ||
li { | ||
margin-bottom: revert!important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import '../../scss/landing-pages.scss'; | ||
import '../../css/activeInactive.css'; | ||
import Alpine from 'alpinejs'; | ||
import '../modules/cardClick'; | ||
|
||
window.Alpine = Alpine; | ||
Alpine.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const cardClick = () => { | ||
document.querySelectorAll('.card').forEach((card) => { | ||
const cardElement = card; | ||
cardElement.onclick = () => { | ||
if (window.getSelection().toString() === '') { | ||
const link = card.querySelector('a'); | ||
if (typeof (link) !== 'undefined' && link != null) { | ||
link.click(); | ||
} | ||
} | ||
}; | ||
}); | ||
}; | ||
|
||
export default { cardClick }; | ||
|
||
cardClick(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@layer components { | ||
.badge { | ||
@apply inline-flex items-center gap-x-1.5 py-1 px-2 rounded-md text-xs font-medium bg-blue-600 text-white shadow-sm font-bold text-[13.5px]; | ||
} | ||
|
||
.badge-pill { | ||
@apply rounded-full gap-x-1 py-1 px-2 min-w-8 text-center items-center justify-center; | ||
} | ||
|
||
.badge-primary {@apply bg-primary text-white;} | ||
.badge-secondary {@apply bg-secondary text-white;} | ||
.badge-alternate {@apply bg-alternate text-white;} | ||
.badge-itemtype {@apply bg-itemtype text-white;} | ||
.badge-restricted {@apply bg-restricted text-white;} | ||
.badge-available {@apply bg-available text-white;} | ||
.badge-submitted {@apply bg-submitted text-white;} | ||
.badge-identified {@apply bg-identified text-black;} | ||
.badge-coldstorage {@apply bg-coldstorage text-black;} | ||
.badge-ncei {@apply bg-ncei text-white;} | ||
.badge-erddap {@apply bg-erddap text-black;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@layer components { | ||
.card { | ||
@apply p-4 rounded-lg mb-4 border border-black/[.125] hover:shadow-lg hover:transition-all; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@layer components { | ||
.pagelink { | ||
@apply text-blue-600 inline-flex items-center font-medium hover:underline; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@import 'components/card.scss'; | ||
@import 'components/badge.scss'; | ||
@import 'components/links.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
|
||
namespace App\Controller\UI; | ||
|
||
use App\Entity\FundingCycle; | ||
use App\Entity\Person; | ||
use App\Entity\ResearchGroup; | ||
use App\Repository\InformationProductRepository; | ||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
use Symfony\Component\HttpFoundation\Response; | ||
use Symfony\Component\Routing\Annotation\Route; | ||
|
||
class LandingController extends AbstractController | ||
{ | ||
#[Route('/funding-cycle/about/{fundingCycle}', name: 'app_funding_cycle_land')] | ||
public function fundingCycleLand(FundingCycle $fundingCycle, InformationProductRepository $informationProductRepository): Response | ||
{ | ||
$informationProducts = $informationProductRepository->findByFundingCycle($fundingCycle); | ||
|
||
return $this->render( | ||
'LandingPages/funding-cycle-land.html.twig', | ||
[ | ||
'fundingCycle' => $fundingCycle, | ||
'informationProducts' => $informationProducts, | ||
] | ||
); | ||
} | ||
|
||
#[Route('/person/about/{person}', name: 'app_person_land')] | ||
public function personLand(Person $person, InformationProductRepository $informationProductRepository): Response | ||
{ | ||
|
||
$informationProducts = $informationProductRepository->findByPerson($person); | ||
|
||
return $this->render( | ||
'LandingPages/person-land.html.twig', | ||
[ | ||
'person' => $person, | ||
'informationProducts' => $informationProducts, | ||
] | ||
); | ||
} | ||
|
||
#[Route('/research-group/about/{researchGroup}', name: 'pelagos_app_ui_researchgroup_about')] | ||
public function researchGroupLand(ResearchGroup $researchGroup, InformationProductRepository $informationProductRepository): Response | ||
{ | ||
|
||
$informationProducts = $informationProductRepository->findOneByResearchGroupId($researchGroup->getId()); | ||
|
||
return $this->render( | ||
'LandingPages/research-group-land.html.twig', | ||
[ | ||
'researchGroup' => $researchGroup, | ||
'informationProducts' => $informationProducts, | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.