Skip to content

Commit

Permalink
Add blur option to hero image
Browse files Browse the repository at this point in the history
  • Loading branch information
Guysnacho committed Feb 14, 2024
1 parent d82d93f commit c70f150
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion src/components/Hero.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
<script>
export let blur = false;
export let headerText = '';
export let imageSrc = '';
</script>

<div class="w-full h-96">
<header class="align-middle mx-auto relative text-center flex justify-center h-5/6 mb-16">
<img src={imageSrc} alt="Abstract submission" class="w-full overflow-clip object-cover" />
<img
src={imageSrc}
alt="Abstract submission"
class={blur
? 'w-full overflow-clip object-cover blur-sm'
: 'w-full overflow-clip object-cover'}
/>
<div
class="w-full py-3 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-slate-900 bg-opacity-40"
>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import Committee from '$lib/assets/background/mapbox-LJtfV2Dkp4U-unsplash.jpg';
import ChangSu from '$lib/assets/committee/Chang-Su.jpg';
import HongQin from '$lib/assets/committee/Hong-Qin.png';
import HuixiaoHong from '$lib/assets/committee/Huixiao-Hong.jpg';
Expand All @@ -7,7 +8,7 @@
import KunZhao from '$lib/assets/committee/Kun-Zhao.jpg';
import ManojBhasin from '$lib/assets/committee/Manoj-Bhasin.jpg';
import MarkBorodovsky from '$lib/assets/committee/Mark-Borodovsky.jpg';
import MatthewReyna from "$lib/assets/committee/Matthew-Reyna.jpg";
import MatthewReyna from '$lib/assets/committee/Matthew-Reyna.jpg';
import PaulSchliekelman from '$lib/assets/committee/Paul-Schliekelman.jpg';
import PengQiu from '$lib/assets/committee/Peng-Qiu.jpg';
import Steve from '$lib/assets/committee/Qin-Steve.jpg';
Expand All @@ -21,12 +22,11 @@
import ZhanaDuren from '$lib/assets/committee/Zhana-Duren.jpg';
import ZongliangYue from '$lib/assets/committee/Zongliang-Yue.jpg';
import Abstract from '$lib/assets/background/Chang-Su_abstract.jpg';
import logo from '$lib/assets/logo.jpg';
import AvatarCard from '../../components/AvatarCard.svelte';
import Hero from '../../components/Hero.svelte';
let coChairs = [
const coChairs = [
{
name: 'Steve Qin, PhD',
affiliation: 'Emory University',
Expand All @@ -40,7 +40,7 @@
position: 'Co-Chair'
}
];
let members = [
const members = [
{
name: 'Yongsheng Bai, PhD',
affiliation: 'Eastern Michigan University',
Expand Down Expand Up @@ -90,7 +90,7 @@
</svelte:head>

<div>
<Hero imageSrc={Abstract} headerText="Organizing Commitee" />
<Hero imageSrc={Committee} blur headerText="Organizing Commitee" />

<div class="container mx-auto m-11 space-y-5">
<!-- <blockquote class="blockquote my-5 mx-auto w-5/6">
Expand Down

0 comments on commit c70f150

Please sign in to comment.