cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              - user = {username: "Not Brussell", avatar: "82835d49e694db89e5d3f8f4dab97492", id: "95286900801146880", "verified": true, "discriminator": "0660", "email": "hidden-email@gmail.com", "connections":[{"type":"youtube","id":"23uyo45g231_uy5g13","name":"brussell98"},{"type":"twitch","id":"19576314","name":"brussell98"}], "guilds":[{"owner":false,"permissions":104188929,"icon":"ae140f33228348df347067059474bb11","id":"41771983423143937","name":"Discord Developers"},{"owner":false,"permissions":104188929,"icon":"2aab26934e72b4ec300c5aa6cf67c7b3","id":"81384788765712384","name":"Discord API"},{"owner":true,"permissions":536345663,"icon":"8befe1dea85808be4bcbe2cddab449c9","id":"95288189362634752","name":"Weeaboo Bots"},{"owner":false,"permissions":104320001,"icon":"e1c6f2a2646995d6de9812bc11a8cfb6","id":"95288381684068352","name":"Zepplin's Server"},{"owner":false,"permissions":104324096,"icon":"983df0dfa1994fff6807331309a5e31e","id":"107915021203304448","name":"/r/anime"},{"owner":false,"permissions":104188929,"icon":"76dd2dbbd47f117b5fbb912170cd6d47","id":"110373943822540800","name":"Discord Bots"},{"owner":true,"permissions":536345663,"icon":"f94b8bed48cbf5809a87d39c4ee90b46","id":"135496553786769408","name":"The Spirit World"}]}
- youtube = user.connections.filter(function(c) { return c.type === 'youtube' }).length > 0 ? user.connections.filter(function(c) { return c.type === 'youtube' })[0].name : null;
- twitch = user.connections.filter(function(c) { return c.type === 'twitch' }).length > 0 ? user.connections.filter(function(c) { return c.type === 'twitch' })[0].name : null;
- twitch = null

mixin guildCard(guild)
	.tile.is-parent.is-4.has-text-centered
		article.tile.is-child.box
			figure.image.is-128x128.center
				img.avatar(src="https://cdn.discordapp.com/icons/#{guild.id}/#{guild.icon}.jpg")
			br
			h1.title #{guild.name}
			if guild.owner === true
				h2.subtitle You own this server

doctype html
html(lang="en")
	head
		title Discord Profile
		meta(charset="utf8")
		meta(name="author", content="Brussell")
		meta(name="description", content="#{user.username}'s Profile'")
		meta(name="viewport", content="width=device-width, initial-scale=1.0")
	body
		nav.nav.has-shadow
			.container
				.nav-left
					a.nav-item.nav-name(href="/") Discord Profile Viewer
				span.nav-toggle
					each val in [1, 2, 3]
						span
				.nav-right.nav-menu
					a.nav-item(href="profile") Profile
					a.nav-item(href="api/raw") Raw Data
					a.nav-item(href="logout") Logout
					span.nav-item
						figure.image.is-32x32: img(src="https://discordapp.com/api/users/#{user.id}/avatars/#{user.avatar}.jpg")
						p #{user.username}
		section.section.no-background
			.container.has-text-centered
				figure.image.is-128x128.center
					img.avatar(src="https://discordapp.com/api/users/#{user.id}/avatars/#{user.avatar}.jpg")
				br
				h1.title.is-2.inline=user.username
				h2.subtitle.is-2.inline ##{user.discriminator}
				br
				br
				if user.email
					if user.verified
						p <strong>Email:</strong> #{user.email} <i class="fa fa-check"></i>#[br]<strong>ID:</strong> #{user.id}
					else
						p <strong>Email:</strong> #{user.email} <i class="fa fa-times"></i>#[br]<strong>ID:</strong> #{user.id}
				else
					p <strong>ID:</strong> #{user.id}
				br
				if youtube 
					a.button.is-medium.youtube
						span.icon
							i.fa.fa-youtube-play
						span &nbsp;#{youtube}
				else
					a.button.is-medium.youtube.is-disabled
						span.icon
							i.fa.fa-youtube-play
						span &nbsp;Not Connected
				if twitch
					a.button.is-medium.twitch
						span.icon
							i.fa.fa-twitch
						span &nbsp;#{twitch}
				else
					a.button.is-medium.twitch.is-disabled
						span.icon
							i.fa.fa-twitch
						span &nbsp;Not Connected
		hr
		section.section.no-background
			.container
				- var index = 0;
				while index < user.guilds.length - 3
					.tile.is-ancestor
						+guildCard(user.guilds[index++])
						+guildCard(user.guilds[index++])
						+guildCard(user.guilds[index++])
				.tile.is-ancestor
					while index < user.guilds.length
						+guildCard(user.guilds[index++])
            
          
!
            
              .nav
	&>.container
		padding: 0 20px
	span.nav-item figure+p
		padding-left: 5px
	.nav-name
		font-size: 1.8em
	.nav-item
		font-size: 16px
		img
			max-height: none
.section.no-background
	background: transparent
.center
	margin: 0 auto
img.avatar
	border-radius: 15%
.inline
	display: inline
p
	font-size: 16px
.button+.button
	margin-left: 20px
.youtube
	background-color: #e62117
	color: #eee
	&:hover
		color: #fff
	&.is-disabled
		background-color: #e62117
.twitch
	background-color: #6441a4
	color: #eee
	&:hover
		color: #fff
	&.is-disabled
		background-color: #6441a4
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console