Skip to content

Commit

Permalink
feat: add discord banner, UI improvements (#101)
Browse files Browse the repository at this point in the history
- Adds a big Discord banner in front, inspired by chakra-ui's footer
- Load smaller logos
- Meetup logo to represent meetup link on event header
- Fallback text if no upcoming events
- TBA text if no agenda
- Add 31st meetup draft page
  • Loading branch information
Sangeeth Sudheer authored Apr 7, 2021
1 parent 1bb16fa commit 3602a18
Show file tree
Hide file tree
Showing 17 changed files with 2,255 additions and 928 deletions.
201 changes: 200 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,201 @@

# Created by https://www.toptal.com/developers/gitignore/api/node,macos,windows,linux
# Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,windows,linux

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env*.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Storybook build outputs
.out
.storybook-out
storybook-static

# rollup.js default build output
dist/
node_modules/

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Temporary folders
tmp/
temp/

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/node,macos,windows,linux
n
Expand Down
147 changes: 147 additions & 0 deletions .vuepress/components/DiscordBanner.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<template>
<aside class="banner">
<div class="contents theme-default-content">
<div class="logo-text-wrapper">
<svg
class="discord-logo"
xmlns="http://www.w3.org/2000/svg"
id="Layer_1"
viewBox="0 0 245 240"
>
<style>
.st0 {
fill: #fff;
}
</style>
<path
class="st0"
d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zm36.5 0c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"
/>
<path
class="st0"
d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"
/>
</svg>
<div class="description">
<h2>Chat with us on Discord</h2>
<p>We're now on Discord! Hop in and make yourselves at home</p>
</div>
</div>

<a href="https://bit.ly/vueblr-discord" class="cta-btn"
>Join #VueBLR on Discord!</a
>
</div>
</aside>
</template>

<style scoped>
.theme-default-content:not(.custom) > *:first-child {
margin-top: 0;
}
.banner {
--c-brand: #3eaf7c;
position: relative;
width: 100vw;
left: 50%;
right: -50vw;
margin-left: -50vw;
margin-right: -50vw;
background-color: #3eaf7c;
color: #fff;
margin-top: 30px;
margin-bottom: 30px;
}
h2 {
margin: 0;
border: none;
font-weight: 800;
font-size: 1.5rem;
line-height: 1;
}
p {
margin: 0;
margin-top: 0.1rem;
line-height: 1.2;
}
.contents {
display: flex;
align-items: center;
}
.logo-text-wrapper {
display: flex;
align-items: center;
margin-right: auto;
}
.discord-logo {
height: 75px;
flex-shrink: 0;
}
.description {
margin-left: 20px;
padding-right: 20px;
}
.cta-btn {
display: block;
flex-shrink: 0;
white-space: nowrap;
text-align: center;
box-sizing: border-box;
min-width: 150px;
background-color: #fff;
border: 1px solid #eee;
box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.01), 0 2px 3px rgba(0, 0, 0, 0.1);
border-radius: 7px;
padding: 1.1rem 1.5rem;
font-weight: 600;
color: var(--c-brand);
font-size: 1.05rem;
text-decoration: none !important;
cursor: pointer;
line-height: 0.95;
}
.cta-btn:hover {
background-color: #f3f3f3;
}
.cta-btn:active {
background-color: #e5e5e5;
}
.cta-btn:focus {
outline: none;
}
.cta-btn:focus:focus-visible {
box-shadow: 0 0 0 3px var(--c-brand), 0 0 0 6px #fff;
}
@media (max-width: 720px) {
.contents {
display: block;
}
.discord-logo {
height: 55px;
}
h2 {
font-size: 1.2rem;
}
.cta-btn {
margin-top: 0.5rem;
padding: 1.05rem 1.15rem;
font-size: 1rem;
}
}
</style>
1 change: 1 addition & 0 deletions .vuepress/components/EventGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default {
}
.img {
max-height: 500px;
object-fit: contain;
}
</style>
Loading

0 comments on commit 3602a18

Please sign in to comment.