Skip to content

Commit

Permalink
Adds a working feed, sponsors, discord join link, and a linkable logo…
Browse files Browse the repository at this point in the history
… at the top.
  • Loading branch information
RyannosaurusRex committed Jan 12, 2024
1 parent ecb1090 commit 9af9946
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<footer>
<div class="footer-content">
<p class="site-note">
Tri-Cities Dev, non-profit CC0 on <a href="https://github.com/tricities-dev">Github</a>
TriDev is a software developer community NorthEast Tennessee. Found a bug? Contribute a fix on <a href="https://github.com/tricities-dev">Github</a>
</p>
<img
class:altTheme={ altTheme }
Expand Down
8 changes: 4 additions & 4 deletions src/components/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
link: '#member-feed',
},
{
title: 'On Discord',
link: '#on-discord',
title: 'The Meetup',
link: 'https://meetup.com/tridev'
},
{
title: 'Our Sponsors',
link: '#sponsors',
title: 'On Discord',
link: 'https://discord.gg/B3JAaXvkCt',
}
]
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/components/logo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const multiImg:string = "tridev-logo-multi.svg";
</script>

<img class="logo" src={ dark ? logoImg : multiImg } width={ width } height={ height } alt="TriDev Logo" />
<a href="/"><img class="logo" src={ dark ? logoImg : multiImg } width={ width } height={ height } alt="TriDev Logo" /></a>

<style lang="scss">
.logo {
Expand Down
16 changes: 16 additions & 0 deletions src/components/memberFeed/MemberFeed.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
<script lang="ts">
import type { memberPosts } from '../../types/feed.types';
import MemberFeedItem from "./MemberFeedItem.svelte";
import {onMount} from "svelte";
import {themeStore} from "../../stores";
onMount(() => {
fetch("https://ryanhayes.net/feed")
.then(response => response.text())
.then(str => {
let parsed = new window.DOMParser().parseFromString(str, "text/xml")
console.log(parsed)
return parsed
})
.then(data => console.log(data))
})
// TODO: Build a member RSS feed
let memberFeed:memberPosts = [
{
title: 'Azure Dev: Problem starting the plugin CredentialProvider.Microsoft [Solved]',
Expand Down
26 changes: 24 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,25 @@
</FeedContainer>
</section>
<aside>
<FeedContainer title="On Discord" id="on-discord" className="feed-container" zIndex={ 1 }/>
<FeedContainer title="Sponsors" id="sponsors" className="feed-container" zIndex={ 0 }/>
<FeedContainer title="On Discord" id="on-discord" className="feed-container" zIndex={ 1 }>
<a class="discord-join" href="https://discord.gg/B3JAaXvkCt">
<h2>Join us!</h2>
</a>
</FeedContainer>
<FeedContainer title="Sponsors" id="sponsors" className="feed-container" zIndex={ 0 }>
<a href="https://bitsum.com/">
<img src="bitsum-logo-dark.webp" alt="Bitsum" />
</a>
<a href="https://sparkplaza.com">
<img src="Spark-Plaza-logo-refresh-horizontal-2018-white.png" alt="Bitsum" />
</a>
<a href="https://www.teksystems.com/">
<img src="teksystems-logo-white.png" alt="TekSystems" />
</a>
<a href="https://dotnetfoundation.org/">
<img src="dotnet.svg" alt="The .NET Foundation" />
</a>
</FeedContainer>
</aside>
</div>
</main>
Expand All @@ -27,6 +44,11 @@
background-color: var(--primary-bg-color);
}
.discord-join {
color: white;
text-align: center;
}
.main-content {
position: relative;
display: flex;
Expand Down

0 comments on commit 9af9946

Please sign in to comment.