cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console