1import{_ as x,o as c,c as y,a as h,l as w,t as _,b as v,d as k,w as A,e as T}from"./Cvj6YUp_.js";import{g as I}from"./FsIr5leV.js";import{d as $}from"./pAIW8bm9.js";import{u as N,a as C}from"./DY-qDXGg.js";const S={name:"BadAdvice",components:{},data(){return{quote:"Reticulating splines...",isLoading:!0}},mounted(){this.refresh()},methods:{refresh(){this.isLoading=!0;const n=["Don't feel bad that","Don't be afraid,","It's not your fault that","Wonder about how","Remember that","Never forget that","No one ever told you that","Everyone but you knows that","It's good to keep in the back of your mind that","It's your lucky day:","There's something in the air:","Get excited.","Don't judge.","Ask yourself why","A designer once said:","Your guilty pleasure is that","Stop denying:","A good designer once said:","A mediocore designer once said:","An old colleague once said","Make a note:","Remember,","Think about the fact that","Consider:","Accept that","Nobody knows,","Never fear.","It's well known that","Everyone knows","They once told you that","Deep down, you know that","Give up. You know","Don't give up. You know","Only you know","Share the secret that","Tell everyone that","Late at night,","Against all advice,","They're dubious that","It's about time that","Whisper to your colleague:","It's your little secret that","Here's your next social media post idea:","An ancient design tip:","It's okay that","If you only knew earlier:","Go back and tell your younger self:","You once had a vivid dream that","You think it's really funny that","A client suggestion:","you may just be going through a stage in your life where","Are you in this classic designer phase:","It's not the end of the world that"],e=["you are the only one","you are not the only one","you were","you will be","you are","there is still time to try","your goal is to be","you can try to not be","you should be","you are inspired by","you find joy in","you don't find joy in","you are sick of","y
1ou can still design while","you never remember why you were","you get a kick out of","you were just joking about","you are finally","they are finally","you are still not","you have to think about","it's that time again where you are","it's probably for the best that you are","you should write a blog post about","your best trait is","your worst trait is","there is no time like the present to start","they are watching you","you'll never get sick of","there is always a time to be","there is never a time to be","there is power in","as a child, you wanted to be","as a child, you never wanted to be","it's a good time to be","it's time to try","it's great that you are finally","they should be","they may not be","they find joy in","if you ever feel bad about yourself, try","they may be","it's not about","if you are in doubt, try","you heard on a podcast that you should start","everyone is already","it's always about","you are cursed with","maybe you should have been","knowing how to code is the same as","no one has ever considered","you might finally be too old to keep","you are unironically","you are ironically"],a=["being as good as your kerning.","being completely obsessed with line height.","being 'design guy'.","accepting feedback.","accepting constructive criticism.","attending a 7 hour workshop.","reacting poorly to constructive criticism.","getting heckled by recruiters.","having a designated cry time.","adding dropshadows.","copying other people's designs.","having meetings that could be emails.","being aware that it's time for an intervention.","glaring at junior designers.","giving up on the side hustle.","illustrating children's books.","naming layers properly.","avoiding everyone in the office.","never setting foot in the office.","being a better designer.","questioning whether you really need to work.","realising the hardest part is starting.","thinking your design sucks.","telling everyone that you are a designer.","trying to explain to your parents what you do for a living.","stalking LinkedIn.","not making a decent passive income.","learning how to code.","using brown as a feature colour.","giving unsolicited design advice.","cringing at your designs from 10 years ago.","quitting and becoming a manual labourer.","spending way too much on coffee table books.","going to sleep at a reasonable time.","not using dark mode.","using maximum buzzwords.","gaining a massive Twitter following.","having a better design.","'making it pop.'","dreaming about hex codes.","converting px to rem.","having imposter syndrome.","rounding the corners.","setting the font-size to 15.339px.","writing poems instead.","upping your hourly rate.","seeing Helvetica literally everywhere.","writing a sad poem in secret.","carrying a sketchbook everywhere.","finding a problem with your padding.","accidentally stumbling across dev art.","considering typography.","having the smallest notebook.","using Microsoft Teams instead of Slack.","battling other designers.","being better at typography.","going to sleep at 3am.","domain squatting.","taking on another side hobby.","harbouring a failed side hobby.","creating a handwritten font.","sketching down every idea.","writing passive aggressive emails.","taking a break.","being interested in your whitespace.","experimenting with colour for once.","finding !important; tags everywhere.","finding the best pen.","designing with bad kerning.","creating a Helvetica ripoff.","being better than you.","designing 24/7.","sending your portfolio live.","revising your portfolio again.","just taking a 15 minute power nap.","making a terrible colour palette.","making NFT art.","being the worst designer.","unironically using Papyrus.","thinking about the time you lost their pen in 2008.","charging way too much.","wearing a black turtleneck in summer.","drawing on restaurant napkins.","being your art director.","hoarding those domains.","buying designers-r-us.com","banging on about monthly recurring revenue.","buying crypto.","being computer illiterate.","submitting to elon.","listening to your advice.","looking for remote work.","arguing about Mac vs PC.","being convinced everything looks bad.","staring at your design for too long.","watching Figma tutorials.","being a hovering art director","giving up design completely.","freelancing.","finding out you are colourblind.","using Canva.","designing in Photoshop again.","being forced to use Calibri.","still using Montserrat.","being a 'wanky' designer.","steering every conversation back to design.","making unwanted design suggestions.","designing in Microsoft Paint instead.","shirking responsibility.","taking responsibility for your bad designs.","wondering what it would be like if you didn't work here anymore.","making a lovechild of Comic Sans and Times New Roman.","creating presentations in PowerPoint.","confusing UI and UX.","asking yourself how many domains you've bought this year.","thinking freelancing is free.","working for free."],t=n[this.getRandomInt(0,n.length-1)],o=e[this.getRandomInt(0,e.length-1)],r=a[this.getRandomInt(0,a.length-1)];this.quote=t+" "+o+" "+r,setTimeout(()=>{this.isLoading=!1},1600)},getRandomInt(n,e){return n=Math.ceil(n),e=Math.floor(e),Math.floor(Math.random()*(e-n+1))+n},saveAdvice(){const n=(s,d,g)=>{const l=d.split(" "),b=[];let u=l[0];for(let f=1;f<l.length;f++){const m=l[f];s.measureText(u+" "+m).width<g?u+=" "+m:(b.push(u),u=m)}return b.push(u),b},e=document.getElementById("canvas"),a=(s=30)=>{const d=e.width,g=e.height,l=s+10;return{width:d,height:g,fontSize:s,fontSpace:s+10,heightCutOff:(g-l)*.75}};let t=a();const o=e.getContext("2d"),r=e.innerHTML;o.fillStyle="#333",o.fillRect(0,0,t.width,t.height),o.textBaseline="top",o.fillStyle="white",o.font=`${t.fontSize}px Avenir Next`;const p=t.width*.25;let i=n(o,r,t.width*.75);i.length>=6?(t=a(30),o.font=`${t.fontSize}px Avenir Next`,i=n(o,r,t.width*.75)):i.length>=5?(t=a(40),o.font=`${t.fontSize}px Avenir Next`,i=n(o,r,t.width*.75)):i.length<=5&&(t=a(45),o.font=`${t.fontSize}px Avenir Next`,i=n(o,r,t.width*.75));for(const s in i){const d=parseInt(s)+1,g=t.fontSpace*d;g<=t.heightCutOff&&o.fillText(i[s],p/2,g)}}}},L={class:"item"},M={key:0,class:"loader"},D={key:1,class:"today manic"};function j(n,e,a,t,o,r){return c(),y("div",L,[e[1]||(e[1]=h("h1",null,"Your bad design advice:",-1)),o.isLoading?(c(),y("div",M,[...e[0]||(e[0]=[h("div",{class:"spinner"},null,-1)])])):w("",!0),o.isLoading?w("",!0):(c(),y("div",D,_(o.quote),1)),e[2]||(e[2]=h("br",null,null,-1))])}const B=Object.assign(x(S,[["render",j]]),{__name:"Advice"}),R=$({components:{},setup(){const n="https://typeheist.co"+I();N({title:"Bad Design Advice",link:[{rel:"canonical",href:n}]}),C({description:"Forget everything you've been told about design. Let the Bad Design Advice Generator decipher what the design deities have in store for you today.",ogUrl:n,ogType:"website",ogTitle:"Bad Design Advice | TYPEHEIST",ogDescription:"Forget everything you've been told about design. Let the Bad Design Advice Generator decipher what the design deities have in store for you today.",ogImage:"https://typeheist.co/typeheist-bad-design-advice.jpg"})}},"$2RTEUXH5Z5"),P={class:"flex content"},E={class:"byline"};function H(n,e,a,t,o,r){const p=B,i=T;return c(),y("div",P,[v(p,{ref:"advice"},null,512),h("a",{class:"btn",onClick:e[0]||(e[0]=s=>n.$refs.advice.refresh())},"Generate another"),h("div",E,[e[2]||(e[2]=k("Proudly brought to you by ",-1)),v(i,{to:"/font/manic/",title:"Manic Font",class:"underline"},{default:A(()=>[...e[1]||(e[1]=[k("Manic Font",-1)])]),_:1})])])}const z=x(R,[["render",H]]);
1export{z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.